Subject: RE: [xsl] To convert content into XML tag. From: "James Fuller" <james.fuller@xxxxxxxxxx> Date: Mon, 19 Aug 2002 15:44:04 +0100 |
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: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] To convert content into XML t, Shaikh, Neelkamal (M | Thread | Re: [xsl] To convert content into X, Jeni Tennison |
[xsl] To convert content into XML t, Shaikh, Neelkamal (M | Date | [xsl] exclude-result-prefixes, Tevoi Andrea |
Month |