[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: passing through special characters
Steve Morrison wrote: > I'm trying to generate wml from xml. In the xml I have this: > <url name="next">http://server.com/file?C=books&T=boston</url> > > I want the resulting wml to contain the & and not expand it to &. & or & in your XML means "&" and will be reported to the XSL processor as "&" by the XML parser, as part of the character data for the entire URL. > It's currently outputing: http://server.com/file?C=books&T=boston Internally it should look like that, but when it is output using the HTML or XML output methods, it should be coming out as either http://server.com/file?C=books&T=boston or http://server.com/file?C=books&T=boston ...unless you have specified disable-output-escaping on xsl:value-of, or you're using SAXON and have used its equivalent for disabling output escaping on attributes. What XSL processor are you using? How exactly are you getting it to not escape the "&"? This is really weird because it is exactly the *opposite* problem that most people ask about. They usually think they need it to not be escaped, which usually isn't ever necessary. - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://www.skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|