Re: [xsl] special charracters in stylesheet parameter - again

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

		<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 &#225; test'" data.xml stylesheet.xsl produces
   "test &#225; 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.


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:

Current Thread