I don't see this in the MarkLogic 5 documentation, so here goes: are there any
MarkLogic system properties that can be passed to an XSLT script using
fn:system-property()?
I'd like to be able to parameterize which XSLT modules are called depending on
where MarkLogic is running. That's easy enough to do outside the XSLT via
something like
if ($host eq 'A') then xdmp:xslt-invoke("HostA.xsl", $node)
else xdmp:xslt-invoke("default.xsl", $node)
but it might be more elegant to have a single XSLT module and then be able to
do
something like
<xsl:include href="HostA.xsl" use-when="system-property('ml:hostname') eq
'HostA'"/>
David
--
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 400314, Charlottesville, VA 22904-4314 USA
Email: [email protected] Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general