|
Subject: Re: [xsl] Using XSLT to do a search & replace From: Michael Kay <mike@xxxxxxxxxxxx> Date: Thu, 21 Apr 2011 22:41:44 +0100 |
Hi,
I have a XML file that I want to transform. I want to be able to do a search& replace on elements in the XML and replace them. For example:
Replace<para> with [ParaStyle:para] Replace<text> with [ParaStyle:text]
etc...
<xsl:template match="para"> [ParaStyle:para]<xsl:apply-templates/>[/ParaStyle:para] </xsl:template>
<xsl:template match="text"> [ParaStyle:text]<xsl:apply-templates/>[/ParaStyle:text] </xsl:template>
Michael Kay Saxonica
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Using XSLT to do a search, Brandon Ibach | Thread | [xsl] Getting previous node in node, Steve Fogel |
| Re: [xsl] Using XSLT to do a search, Brandon Ibach | Date | Re: [xsl] Variations in XML to CSV, Bridger Dyson-Smith |
| Month |