Subject: RE: [xsl] base uri and % encoding From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 11 Sep 2006 12:03:13 +0100 |
There's been a very recent decision on this, that the base URI shouldn't be %-encoded. (XML Base says it should but Infoset says it shouldn't). I don't guarantee that Saxon 8.8 implements this decision - I need to check. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: David Carlisle [mailto:davidc@xxxxxxxxx] > Sent: 11 September 2006 11:25 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] base uri and % encoding > > > Somewhere between the xsl, xquery, xdm, xml base and xml > infoset drafts I got confused about when and if the values returned by > base-uri() and friends are % encoded. > > using saxonB 8.8j as a reference, in XQuery > > > declare base-uri "data:,"""; > static-base-uri() > > returns > > data:," > > > while the XSL > > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xml:base="data:,""> > <xsl:template name="main"> > <xsl:value-of select="static-base-uri()"/> > </xsl:template> > </xsl:stylesheet> > > returns > > data:,%22 > > > > > Are both those answers correct? > If so, is it possible for _any_ XSL stylesheet to produce the > same output as the first XQuery? > If not, which one is wrong? > > David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] base uri and % encoding, David Carlisle | Thread | Re: [xsl] base uri and % encoding, David Carlisle |
RE: [xsl] How expensive is //?, Michael Kay | Date | Re: [xsl] base uri and % encoding, David Carlisle |
Month |