Format text within a XML tag...
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:
<div style="font-weight: bold; color: #494B95"><xsl:eval language="VBScript">f_Comment(me)</xsl:eval></div>
If somebody has an solution or suggestion, please let me know.
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
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