XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Adam Van den HovenSubject: incorrect handling of fragments in document()?
Author: Adam Van den Hoven
Date: 08 Oct 2002 06:03 PM
I've attached two trivial files that show how the internal xslt enging seems to be getting a part of the xsl rec wrong.

Specifically from http://www.w3.org/TR/xslt#function-document:
"If the URI reference does contain a fragment identifier, the function returns a node-set containing the nodes in the tree identified by the fragment identifier of the URI reference."

In the example, I generate 4 ids, all of which I expect to be equal. The first two are. The last two throw "document could not be found" errors.

Adam


Documenttest(5).xsl
xsl test

Documentsrc.xml
source doc

Postnext
Minollo I.Subject: Re: incorrect handling of fragments in document()?
Author: Minollo I.
Date: 08 Oct 2002 06:23 PM
I guess I'm missing something?

I can only see two ids generated, and they are equal.

{xsl:template match="/"}
{xsl:value-of select="generate-id(test/content[@id='content2'])"/}
{xsl:value-of
select="generate-id(document('src.xml')/test/content[@id='content2'])" /}
{/xsl:template}

Minollo

Postnext
Adam Van den HovenSubject: Re: incorrect handling of fragments in document()?
Author: Adam Van den Hoven
Date: 08 Oct 2002 07:18 PM
Oops I took these lines out when I was checking something and forgot to put them back in:

{xsl:value-of select="generate-id(document(test/reference/@xlink:href))" /}
{xsl:value-of select="generate-id(document('#content2'))" /}

Posttop
Alberto MassariSubject: Re: incorrect handling of fragments in document()?
Author: Alberto Massari
Date: 09 Oct 2002 09:37 AM
Hi Adam,
Stylus does not support document fragment identifiers, mainly because the
specs are not clear on what this mean:

"The semantics of the fragment identifier is dependent on the media type of
the result of retrieving the URI.....An XSLT processor is not required to
support any particular media types"

We'll file a PCR to see if we can add at least text/xml to the list of
supported media types.

Thanks,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.