On Sat, Sep 06, 2003 at 01:44:28PM +0700, Alex Sergeyev wrote:Can someone explain? Is that XSLT rule to use escaping?
The { and } characters are used for attribute value templates, which are XPath expressions that generate raw text. Using curleys outside that context is a syntax error.
Consider the following:
<xsl:template match="a"> <xsl:copy-of select="document('[EMAIL PROTECTED]')"/> </xsl:template>
Actually, that's only true of attributes that are *not* excluded from Attribute Value Template interpolation. Attributes that contain an "expression", such as xsl:copy/@select, are all in the excluded set.
In this case you are not allowed to use curlies because document expect a URI, and those characters are not allowed to appear unescaped in URIs, as can be seen in section 2.4.3 of RFC 2396.
Alex, that's the document you want to read if you need to be up to date on that topic. Curlies are part of the "unwise" class:
unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"
-- Robin Berjon <[EMAIL PROTECTED]> Research Scientist, Expway http://expway.com/ 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
