[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Replacing a nested tag with another tag
At 03:57 PM 10/10/2000 -0700, ajain@xxxxxxxxxx wrote:
...incoming XML:
<xsl:template match="text()"/> <xsl:template match="/someroot"> <p> <xsl:value-of select="normalize-space(Intro/text()[1])"/><xsl:text> </xsl:text> <xsl:value-of select="normalize-space(RequestNumber)"/>. <xsl:value-of select="normalize-space(Intro/text()[2])"/> </p> </xsl:template> </xsl:stylesheet> (Note: I don't know what your root element is, hence the "/someroot" match pattern.) =============================================================== John E. Simpson | "He asked me if I knew what http://www.flixml.org | time it was. I said, 'Yes, but XML Q&A: http://www.xml.com | not right now.'" (Steven Wright) 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
|