This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: To convert content into XML tag.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]