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

Re: UBB Code and XSLT

Subject: Re: UBB Code and XSLT
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sun, 11 Jan 2004 19:10:43 +0100
ubb parser
Karl J. Stubsjoen wrote:
Mix of text and UBB code within CDATA
==transform UBB with XSLT==
Result is HTML

Example of XML:
<x>
     <y><![CDATA[This is an [b]EXAMPLE[/b]]]></y>
</x>

HTML Result:
  This is an <b>EXAMPLE</b>

Again, that's not too difficult with an S&R template. (BTW in this case, the CDATA is redundant). Problems arise for text like This is [ an [ill/formed] [b=http://stuff:]EXAMPLE[/u]] Note that the brackets are even balanced :-) Building a parser which gets well formed XHTML out of this isn't easy whether in XSLT or any other language. In XSLT it will additionally take a lot of source code lines and is likely to be slow too.

J.Pietschmann

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.