Nice! So you use the mod Xpath function (of which I hadn't heard before) to divide the position by 2, then if the remainder is 0 you get Color A and if it is 1 you get Color B.
I am currently doing an xsl:for-each statement to read part of an xml file that's being output into html and would like to alternate the background color for alternate table rows of data to make things easier to read on the user end.
As the number of rows of data varies, how would I go about...
Huh, when I used the information you gave me last time, it gave me the value of the attribute (which is indeed what I was looking for) but not the name of the attribute itself. For instance:
<Combine target="A" type="OneToOne" sourceCount="1" sourceCount1="CL-1CA39N2" CL-1CA39N2="S" />
In my...
Very similar question as I had a few threads down, but this time, I don't know what the name of the attribute is going to be and would like to display it (the name of the attribute itself, not the value of the attribute)
Example:
XML
<Combine target="A" type="OneToOne" sourceCount="1"...
Tom,
Thank you very much. It may have been easy for you but it has been holding me back from finishing something for 2 days now. I've figured out most everything I needd to know with XML/XSL but the XPath stuff was throwing me. Your help is greatly appreciated.
I am trying to use XSL to transform an XML element's attribute and value, however the attribute is always different but always in the same place (it is the fifth attribute in the element). Is there a way to display this attribute and its value knowing its place (5th attribute) but not its name...
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.