Creating and publishing customized content with MarkLogic
Dave Gafford, UI Developer, Tuesday 19th May 2009
Ixxus recently worked on a project for a client utilising MarkLogic Server’s capabilities for content aggregation and custom publishing of XML content. Using a combination of standard XQuery and MarkLogic built-in and module extensions we built an application that takes structured XML content, allows the user to browse or search the content and pull out relevant snippets of information to create their own documents tailored to their needs.
Key features of the implementation:
Content Aggregation
- Various formats of structured xml source documents are loaded into the MarkLogic server via an XQuery script utilising the xdmp:document-load MarkLogic built-in function.
- User generated content (in the form of comments in this instance) can be submitted via an html form and saved in an xml file separate to the source document.
- Users can pick and choose various chunks of documents and combine them to make their own customised document tailored to their needs.
Custom Publishing
- Online delivery (web/mobile) using semantic XHTML and progressively enhanced using AJAX requests.
- PDF conversion using XSL-FO and MLJAM (open source XQuery & Java library)
Role based Security Model
- Users created and allocated role(s) via the Marklogic admin interface
- Roles given permissions (used in doc creation/loading), privileges (Execute & URI) and Default collections
Collections
- Collections are used to organize the documents in the database and optimize query performance.
- In this project we used collections to assist user profile searching, so users with certain roles can restrict their search to certain collections of documents.
Full text search including user profile filtering
- Using a combination of the role based security model and the collection features of MarkLogic to restrict searches to certain documents within the database.
- MarkLogic automatically indexes words and the structure of content as it is loaded into the database and allows full text search capabilities including stemming, tokenisation, proximity, relevance, weighting etc.
Realise the true value of your content
By using the features on offer as standard in MarkLogic server you can rapidly create new products from your existing sources of content. You can enable your customers to interactively engage with your content and create their own publications both online and in printed media from the content you provide.







Comments
Be the first to comment.
Add your comment