Subject: Re: [xsl] special charracters in stylesheet parameter - again From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 26 Jan 2005 10:21:27 GMT |
<xsl:output method="text" encoding="windows-1250"/> ^^^^^^^^^^^^^ In text output there are no markup characters, so there are no special characters that need to be escaped (and no way of escaping any character) <xsl:value-of select="$test" disable-output-escaping="yes"/> so d-o-e has no effect. Of course it is (normally) bad style to use it even for xml output. Xalan -p test "'test á test'" data.xml stylesheet.xsl produces "test á test" As expected. The input parameter is a string so it is not parsed as XML so & # 2 5 5 ; is not a reference to a acute but rather the 6 characters ampersand hash 2 5 5 semicolon. On output those characters are just output as themselves in text mode, there is no escaping being done. If you need to input in XML syntax, place teh string in an XML file and process it using the document() function. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] special charracters in styles, Dusan Zatkovsky | Thread | Re: [xsl] special charracters in st, Dusan Zatkovsky |
[xsl] special charracters in styles, Dusan Zatkovsky | Date | Re: [xsl] special charracters in st, Dusan Zatkovsky |
Month |