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

RE: how to get < sign in output of an xslt

Subject: RE: how to get < sign in output of an xslt
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Mon, 6 Jan 2003 11:45:08 -0500
xslt output sign
[Sai, Mukundan]

> i have an xslt which is outputting a text ...
> i want  '< ' symbol to appear in the text output ...
> when i use  &lt; it is outputted as '&lt;' only not as '<' .. 
> only if i view the ouput in ie do i get '<' symbol .. can 
> anybody tell me how 
> to get '<' in the text output of an xslt ..
> thanks in advance  

The solution depends on what you want to achieve.  If you want the
output to **look like** "<" in a browser, you do not have to do
anything.  The html or xml output will actually contain "&lt;" but it
will **display** as you want in the browser.

If you want to produce text output (for the entire output document), and
not html or xml,  then specify method='text' in the xsl:output element,
and a real "<" will be emitted.

If you want to have an actual "<" in xml or html output, you cannot have
that.  This is a fundamental thing about xml (and html).

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.