I have an XML document in the form of
<root>
<foo xml:id="f1">foo 1</foo>
</root>
where there is a 'foo' element with an id 'f1' and an XSLT 2.0
stylesheet with that id in a fragment identifier in a URI passed to the
document function:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:template match="/">
<xsl:copy-of select="document('test2009031701.xml#f1')"/>
</xsl:template>
</xsl:stylesheet>
Saxon (9.1.0.5) and Gestalt (version 3.7) run that without problems and
return the 'foo' element with xml:id="f1" but AltovaXML (Version 2009)
complains with
XTDE1170: Error in XPath 2.0 expression at xsl:copy-of - select
and with
Error retrieving resource - 'C:\SomePath\test2009031701.xml#f1' -
document
Isn't that error XTDE1170 only supposed to be thrown if a fragment
identifier is used in a URI passed to the unparsed-text function?
Is an XSLT processor allowed to fail on a fragment identifier if it can
receive the resource without the fragment identifier without problems?
AltovaXML does
<xsl:copy-of select="id('f1', document('test2009031701.xml'))"/>
for instance just fine.
--
Martin Honnen
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--