Subject: Re: [xsl] Using XSLT to do a search & replace From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> Date: Thu, 21 Apr 2011 14:17:28 -0400 |
This sounds like something that would be easy to do with an XSLT identity transform with a template for each pattern that needs to be replaced with something else. However, I don't quite understand the meaning of your examples. What do the square brackets mean? Can you provide a short sample of input and the corresponding output? -Brandon :) On Thu, Apr 21, 2011 at 2:09 PM, Bubba O'Reily <killswi7ch1@xxxxxxxx> wrote: > > > > > 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... > > I would like to have all the search & replace in one file which is > called or imported by the main script. Does something like this already > exist? I've been searching the internet but can't find a nice example.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using XSLT to do a search & r, Bubba O'Reily | Thread | Re: [xsl] Using XSLT to do a search, Michael Kay |
[xsl] Using XSLT to do a search & r, Bubba O'Reily | Date | Re: [xsl] Using XSLT to do a search, Michael Kay |
Month |