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

Format text within a XML tag...

Subject: Format text within a XML tag...
From: "Anders Wasen" <a_wasen@xxxxxxxxxxx>
Date: Tue, 18 Jun 2002 11:15:07 +0200
vbscript bold text
Hi,
I have a formatting issue on hand...

I have a XML tag similar to this:

<objectrule>
 IF(COUNT(ABS)) > 1, PARSE(Node), /*Parse if no. of ABS is more than 1*/
 NONE) /*Else do nothing*/
</objectrule>

What I want to do is high-light the "comment part", i.e. between the "/*" and "*/", with an alternate color and bold text, and leave the othertext as is...

I have looked into solving it with a script and deviding the string into peaces like rule/comment and then add text formating tags around the comment part(s), but the problem is that I don't know how many comments there is... this will only support one comment:

<xsl:eval language="VBScript">f_BeforeComment(me)</xsl:eval></font>
<div style="font-weight: bold; color: #494B95"><xsl:eval language="VBScript">f_Comment(me)</xsl:eval></div>
<xsl:eval language="VBScript">f_AfterComment(me)</xsl:eval>


If somebody has an solution or suggestion, please let me know.

Thanks,
Anders


________________________________________________________ Anders Wasén a_wasen@xxxxxxxxxxx


_________________________________________________________________
Kom med i världens största e-posttjänst med MSN Hotmail. http://www.hotmail.com



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.