Subject: RE: [xsl] XSL : how to turn <name> into <data elem="name"> From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Thu, 8 Feb 2001 09:21:49 -0000 |
> The only transformation is to do > > <name>value<name/> INTO <data elem="name">value</data> > > for all tags in incoming XML. How can I do this ? Assuming you want this for every "name": <xsl:template match="*"> <data elem="{name()}"> <xsl:apply-templates/> </data> </xsl:template> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL : how to turn <name> into, by way of Mulberry T | Thread | RE: [xsl] XSL : how to turn <name> , Ben Robb |
RE: [xsl] So THAT'S what CDATA is f, Michael Kay | Date | Re: [xsl] viewing XSL + XML in ie5., David Carlisle |
Month |