|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: Spam: Stripping out non-*ML tags?
> > Strictly for readability, I need to strip or at least minimize > > the amount of that stuff that gets past my XSL. I would be > > perfectly happy to replace, in regex terms, \[[^\]]\] with "". > > That is, just delete all of the tags, so that "[b]text[/b]" > > becomes "text" > > If you can use XSLT 2.0, you can actually use regular > expressions. That's > one of 2.0's very welcome features. If you can switch to 2.0 or are > already using it, look at xsl:analyze-string. Another way of tackling this input would be to replace the [] characters by <> (using the translate function), and then use saxon:parse() or a similar extension function to parse the resulting character string as XML. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








