[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AltovaXML and fragment identifier
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|