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(_at_)nag(_dot_)co(_dot_)uk]
Sent: 11 September 2006 11:25
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--