[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
I have input XML which transforms to an output XML. The transformation works fine, but I need to fill in one field that is dependent on the number of nodes in a section of the *output *document. Due to confidentiality, I can't post the actual document. Here is what the output looks like:
The number of elements within <data> is variable. I need to calculate the dataCount attribute from the number of <data> elements. What is a good solution for this? I'd rather not use a second transform step unless absolutely necessary.
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] Need to fill in number of output nodes...
Subject: [xsl] Need to fill in number of output nodes... From: Steve Freeman <smfreeman@xxxxxxxxxxx> Date: Thu, 11 Sep 2003 09:09:41 -0400 |
I have input XML which transforms to an output XML. The transformation works fine, but I need to fill in one field that is dependent on the number of nodes in a section of the *output *document. Due to confidentiality, I can't post the actual document. Here is what the output looks like:
<doc> <header> ... </header> <body> <data> <elem1/> <!-- actual names vary --> <elem2/> </data> <summary dataCount="2"/> </body> </doc>
The number of elements within <data> is variable. I need to calculate the dataCount attribute from the number of <data> elements. What is a good solution for this? I'd rather not use a second transform step unless absolutely necessary.
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XMLFilter in a URIResolve, Andrew Welch | Thread | RE: [xsl] Need to fill in number of, Michael Kay |
RE: [xsl] XMLFilter in a URIResolve, Andrew Welch | Date | RE: [xsl] XMLFilter in a URIResolve, Michael Kay |
Month |
Keywords