Hi,
I am working on an XSL stylesheet and I have a loop within a loop where I need to compare element values from the inside loop to values from the outer loop (see bolded line in XSL below). The inside loop references elements from a second XML document, which makes this especially difficult (at least difficult for me).
The outermost (first) loop references elements in the Primary XML file (the one to which the XSL is applied directly)...
User Profile
Collapse
-
How to reference values from outer loop??
-
How to test if node name matches given string value
Hi,
I am trying to figure out how to see if any of a given set of childnodes equals a given string. For example, in the XML and XSL code below, I want the text in the "xsl:when" statement to output when any of the childnodes of <FormulaValue > equal the string "Value". How can I do this?? I am trying to use XPath code but I can't get it to work.
Thank you!!
Christine
XSL code:
... -
Compare Current Value to Preceeding Values
Hi,
I am trying to create an XSL document which will output the word "Header" only if the <StepRecipeID > string for the current step is not equal to the <StepRecipeID > from previous steps. Thus, for the XML below, the word "Header" should be output twice (once for each of the two steps in the XML) since each step has a different string value for the <StepRecipeID >. Likewise, if the <StepRecipeID >... -
how to see if current element value matches previous
Hi,
I am trying to create a table to display the values in the XML below. THe XSL provided works on the XML when there is only one <Step> but not three. Of the three steps in the XML below, two have the same table column headers (found in <FormulaValue > <Name>) and also the same <StepRecipeID >. The third step has different column headers and a different StepRecipeID.
So my question is: how do I tell the... -
Dynamic Rows and Columns in XSL Table
Hi,
I am trying to create a table in XSL in which the number of columns depends on a given XML. For example, the XML below needs to have three columns, each with the title of the corresponding <Name> (but the number of columns needs to depend on the number of <FormulaValue > elements present a given XML).
I appreciate all help...I've been trying to figure this out for days.
Thank you,
... -
Help with XSL code (I think I need a loop??)
Hi,
I am trying to create an XSL file that can be applied to numerous XML files (all XML files have similar structure but varying length). The XSL and abbreviated XML codes are below. Within the XSL I need to create some sort of conditional statements that will produce a number of columns equal to the number of <FormulaValue > subsets in the XML code (this number will need to change depending on the XML). I also need to name each column... -
Trying to use XSLT to convert XML to HTML
I am trying to make an html from an xml sheet using an xslt. I cannot seem to get the data displayed individually. I think it is because of the schema in the xml. How can I change my xsl to display (for example) just the <Abstract>?
Thank you!
The XML:
[CODE=xml] <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Tank_Sip header.xsl"?>...
No activity results to display
Show More