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

< and >

Subject: < and >
From: "Sharmila Pandith" <sharmila@xxxxxxxxx>
Date: Wed, 28 Apr 1999 17:44:57 -0400
< and >
Hi,

I am using XSL to transfer one form to XSL to an other.
For Ex:
If I have
<Advertisement>
	<advertiser>
		<name>Ross Gheller</name>
	</advertiser>
</Advertisement>

should transform to:
<adex>
	<ad-info>
		<name>Ross Gheller</name>
	</ad-info>
</adex>

The way I am doing right now is:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<!--  Root xsl:template - start processing here -->
<xsl:template match="/">
	<xsl:pi name="xml">version="1.0"</xsl:pi>

	<xsl:if test="advertisement">
		<xsl:text>&lt;adex&gt;</xsl:text>
			<xsl:if test="advertisement/advertiser">
				&lt;ad-info&gt;
				<xsl:value-of select="advertisement/advertiser/name">
				&lt;/ad-info&gt;
			</xsl:if>
		<xsl:text>&lt;/adex&gt;</xsl:text>
	</xsl:if>
</xsl:template>
</xsl:stylesheet>

instead of using &lt; and &gt; is there any way i could print "<" and ">" in
the transformed xml code?

Thanks in advance,
S 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.