[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: special charracters in stylesheet parameter - agai

Subject: Re: special charracters in stylesheet parameter - again
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 26 Jan 2005 10:21:27 GMT
xml stylesheet parameter
	<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 &#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.

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.