[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: < and >
> -----Original Message----- > From: Sharmila Pandith [mailto:sharmila@xxxxxxxxx] > Sent: 28 April 1999 22:45 > To: XSL List > Subject: < 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><adex></xsl:text> > <xsl:if test="advertisement/advertiser"> > <ad-info> > <xsl:value-of > select="advertisement/advertiser/name"> > </ad-info> > </xsl:if> > <xsl:text></adex></xsl:text> > </xsl:if> > </xsl:template> > </xsl:stylesheet> > > instead of using < and > is there any way i could print > "<" and ">" in > the transformed xml code? > try this: <xsl:template match="Advertisement"> <adex><xsl:apply-templates/></adex> </xsl:template> <xsl:template match="advertiser"> <ad-info><xsl:apply-templates/></ad-info> </xsl:template> <xsl:template match="name"> <name><xsl:apply-templates/></name> </xsl:template> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|