Seems like it'd be pretty easy to write an XInclude expansion rule as
well if that's what you need.
Wayne.
On 07/09/2011 12:03 AM, Geert Josten wrote:
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
--
Wayne Feick
Principal Engineer
MarkLogic Corporation
[email protected]
Phone: +1 650 655 2378
www.marklogic.com
This e-mail and any accompanying attachments are confidential. The information
is intended solely for the use of the individual to whom it is addressed. Any
review, disclosure, copying, distribution, or use of this e-mail communication
by others is strictly prohibited. If you are not the intended recipient, please
notify us immediately by returning this message to the sender and delete all
copies. Thank you for your cooperation.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general