This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:

<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@hotmail.com


_________________________________________________________________
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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]