Dear Paul,

No I think it shouldn't. The XSLT rec doesn't specify how XIncludes should be 
handled. In fact, I expect that in Oxygen it is not the transform, but the xml 
reader before that, that is doing the actual xinclude expansion. So, by calling 
xinc:node-expand() before passing the document into xdmp:xslt-eval you are 
doing it the same way as Oxygen..

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens Williams, Paul
Verzonden: vrijdag 8 juli 2011 21:41
Aan: [email protected]
Onderwerp: [MarkLogic Dev General] Xinclude in XSLT

I have web page content in the form of docbook xml files that are being 
transformed to xhtml via a stylesheet using xdmp:xslt-eval().  The docbook 
content uses an xinclude to incorporate a common module that provides a sidebar 
element for the page.  Running this content through an xslt transformer in 
Oxygen produces the expected xhtml output without fail.  But in MarkLogic, the 
xinclude does not import the external module during the transform operation.

As a workaround, I'm now invoking xinc:node-expand() on the document before 
passing it to xdmp:xslt-eval().  Shouldn't I be able to expect the transformer 
in Marklogic to handle xincludes for me?

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

Reply via email to