This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Format text within a XML tag...
- From: "Anders Wasen" <a_wasen at hotmail dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Tue, 18 Jun 2002 11:15:07 +0200
- Subject: [xsl] Format text within a XML tag...
- Reply-to: xsl-list at lists dot mulberrytech dot com
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