Subject: Re: [xsl] Xalan Vs. Output Escaping From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 23 Jan 2002 22:40:39 GMT |
XML Source : ..... & ....... & ....... %3A ..... value-of doe="no" : ..... & ... & ... %3A ..... value-of doe="yes": ..... & ....... & ....... %3A ..... curly braces {} : ..... & ....... & ....... %253A ... You've given almost no information as to what your input doc or stylesheet looked like, but I'll try to make some guesses. curly braces are the syntax of attribute value templates, which means that an XPath can be evaluated inside an attribute value.. The have no effect at all on the way characters are linearised. You say the XML source has ... & ... here I can't guess what you have as an unquoted & is a syntax error. perhaps you have one of the equivalent forms & or <![CDATA&]]> the two examples of value-of are what I'd expect given an input of & in one case the & is escaped, and in the other it is not. % is not special in XML or XSL so %3A is just character data and goes through just like any other simple character string... Unless you are using the html output method and this is a uri attribute (href or src etc) in which case ascii characters that are not allowed unquoted in URI will be quoted using URI conventions. So % comes out as %25, leaving the 3A. Although even here & should have come out as &. So I don't see how you can get either the input you state or the third output. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Xalan Vs. Output Escaping, Matthew Jaquish | Thread | RE: [xsl] Xalan Vs. Output Escaping, Julian Reschke |
Re: [xsl] how to increment a variab, David Carlisle | Date | Re: [xsl] which XML parser is the f, Bill Han |
Month |