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

RE: To convert content into XML tag.

Subject: RE: To convert content into XML tag.
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Mon, 19 Aug 2002 15:44:04 +0100
xml tag underscore
use the <xsl:element/> tag with translate

<xsl:template match="element">

<xsl:element name="translate(.,' ','_')"/>

</xsl:template>

this is a template that creates an element and uses translate to replace
spaces with the underscore char

untested !

htht, jim fuller


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Shaikh,
> Neelkamal (MED, Oracle)
> Sent: 19 August 2002 15:30
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  To convert content into XML tag.
>
>
>
> Hi,
>
> How can we convert content of an XML tag to an XML tag.
>
> Input XML
>
> <TEST>This should become XML tag</TEST>
>
> Output after xsl transformation should be
>
> <This should become XML tag> </This should become XML tag>
>
> More over xml tag should not have spaces in between, how to remove them.
>
> Please let me know.
>
> Thanks and Regards,
> Neel.
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.