[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Text based stage play scripts to XML
Subject: Re: [xsl] Text based stage play scripts to XML From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx> Date: Mon, 24 Jan 2011 13:28:36 +0200 |
I am not trying to get someone to write my solution for me. I simply gave a full account of my problem in the hope that an expert may give me proper guidance. It's better to describe a complete problem to an expert, than to try and guess a solution and ask an expert to guide you further down the (possibly wrong) track. The solution you are describing is similar to http://www.dpawson.co.uk/xsl/rev2/regex2.html#d15957e181 given by Dave and Michael. My problem is more complex than that. In short: I need to identify strings of text (probably using regular expressions) and wrap them as XML elements. However, the problem is sufficiently complex that I may need to find text based on text- and structural patterns before and after the text. I then need to encapsulate this text with tags. Example pattern and replacement: <pattern-before>XXYY</pattern-before> <pattern-after>---</pattern-after> <wrap-with>cool</pattern> So in this sample text: bla bla bla bla XXYY this is the stuff --- ??After using whatever XSLT solution.?? Result will be: bla bla bla bla XXYY <cool> this is the stuff </cool> --- I can't find the solution to this in a manual or online. Regards, Jacobus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Text based stage play scr, Andrew Welch | Thread | Re: [xsl] Text based stage play scr, jeroen |
Re: [xsl] Text based stage play scr, Andrew Welch | Date | Re: [xsl] Text based stage play scr, jeroen |
Month |