Subject: Re: [xsl] Text markup for web forums, eg. [b]bold text[/b] From: George Cristian Bina <george@xxxxxxx> Date: Tue, 01 Jun 2004 13:31:12 +0300 |
<?xml version="1.0" encoding="UTF-8"?> <text> <value>Text may < contain [b]bold text[/b], [i]italics[/i] or both [b][i]bold and italics[/i][/b].</value> </text>
<processedValue>Text may [ contain <b>bold text</b>, <i>italics</i> or both <b><i>bold and italics</i></b>.</processedValue>
Best Regards, George ----------------------------------------------- George Cristian Bina <oXygen/> XML Editor & XSLT Editor/Debugger http://www.oxygenxml.com
In rethinking through this and then testing it it occured to me that this solution creates some issues with output escaping. Ive got to attend to some other things this morning but will take a look at this again later.
Best regards,
<M:D/>
----- Original Message ----- From: "M. David Peterson" <m.david@xxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, June 01, 2004 2:47 AM Subject: Re: [xsl] Text markup for web forums, eg. [b]bold text[/b]
Sometimes the most obvious solutions are the ones that get overlooked. Although you would obviously have to process this further for tags like [QUOTE] and [email]. But once the conversion to XML has taken place thats obviously not an issue.
Give me a sec to update the code and Ill repost a much more elegant solution.
Thanks George!
<M:D/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Text markup for web forum, Daniel Joshua | Thread | Re: [xsl] Text markup for web forum, Wendell Piez |
RE: [xsl] Text markup for web forum, Daniel Joshua | Date | O/P redirection to file, Vikram Barate |
Month |