[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AltovaXML and fragment identifier

Subject: AltovaXML and fragment identifier
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 17 Mar 2009 16:14:43 +0100
 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.