MarkLogic doesn't store doctypes with XML documents. As I understand it this is 
mostly because they don't exist in the XQuery data model: 
http://www.w3.org/TR/xpath-datamodel/

Have you looked at Justin's post http://markmail.org/message/qmsos7np64ohyctp 
already? That approach presumes you can run everything through an output module 
in XQuery or XSLT (or maybe even JavaScript now?).

The app-server output options might help too, but I'm not sure if those can 
handle an HTML5 doctype.

-- Mike

> On 18 Feb 2015, at 12:43 , Keith Breinholt <[email protected]> wrote:
> 
> We have a requirement to store and retrieve well formed HTML5 documents in 
> MarkLogic using Java API or REST API.
> 
> Each document has an '.html' extension and the standard HTML5 doctype 
> <!DOCTYPE html>.  When documents are inserted, by default they get stored as 
> text documents.
> 
> We would like to use all the goodness that MarkLogic provides for search and 
> manipulation of the documents as if they were XHTML, but we need to preserve 
> the HTML5 doctype and .html extension for compatibility with other tools.  I 
> am sure we are not the only ones to have encountered this scenario.
> 
> We have tried changing the html mimetype to xml but when documents are 
> inserted the doctype gets replaced with the XML doctype.  Is there a way to 
> insert and retrieve well formed HTML5 documents without losing the doctype?
> 
> Keith Breinholt
> "If you cannot describe what you are doing as a process, you don't know what 
> you are doing." - W. Edwards Deming
> 
> 
> NOTICE: This email message is for the sole use of the intended recipient(s) 
> and may contain confidential and privileged information. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not the 
> intended recipient, please contact the sender by reply email and destroy all 
> copies of the original message.
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to