This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: To convert content into XML tag.
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 19 Aug 2002 15:44:04 +0100
- Subject: RE: [xsl] To convert content into XML tag.
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Shaikh,
> Neelkamal (MED, Oracle)
> Sent: 19 August 2002 15:30
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] 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