Thankyou.
If I don't know how many pereceding nodes that don't have a ref-attribute, I seem need to predefine as many as hard coding color. Is there any flexible way to deal with a such color value?
Is there any implicit method to use array to store the attribute values of a specified element?
My task is to check if there is a previous value exists such that there could be different expressions for them. For example, my xml is like this:
<p>
<c id=1>A</c>
<c id=2 ref=1>B</c>
<c...
How can I use XSL to view the following XML like this:
1<font color="0000FF">2</font>3<font color="0000FF">4</font>5
============= test.xml =====================
<?xml version = "1.0"?>
<?xml:stylesheet type = "text/xsl" href = "test.xsl"?>
<!DOCTYPE format [
<!ELEMENT p ( #PCDATA | s )*...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.