[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Stripping out non-*ML tags?

Subject: Stripping out non-*ML tags?
From: "Talley, Brooks" <brooks@xxxxxxxx>
Date: Mon, 14 Nov 2005 15:03:28 -0800
frnk technology group
I have an application that's using XSL to render text that was
originally put into an online message board system.

Unfortunately, the message board system uses its own proprietary "forum
code", which people who've used such systems will probably be familiar
with.  IE [b] for start bold, [/b] for end bold, etc.

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"

Is there any reasonable way to do this in XSL?  By reasonable, I mean
something that won't clobber performance.  If necessary, I could move
the stripping to the DB side, but I'd really rather not do that.

Thanks,
Brooks Talley
FRNK Technology Group

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.