Here is the plan... my xml file is structured like this
[node]
[issue]
[number]1[/number]
[detail]some text[/detail]
[/issue]
[issue]
[number]2[/number]
[detail]some text[/detail]
[/issue]
[issue]
[number]3[/number]
[detail]some text[/detail]
[/issue]
[/node]
basically, im trying to get inside the javascript between the head tags of an xsl page to repeat this pattern
messages[0]=""
where the 0 becomes the "number" node and the "" is filled with the corresponding value of the detail node. This is all inside a javascript array. any ideas?
here is what i came up with ... but it is apparantly not working...
messages=new Array()
<xsl:for-each select="mckinney/site/issues" order-by="number">
messages[
<xsl:value-of select="mckinney/site/issues/number" />
]="
<xsl:value-of select="mckinney/site/issues/detail" />
"
</xsl:for-each>
and, does it matter that this is all in a CDATA section?
just wondering
[node]
[issue]
[number]1[/number]
[detail]some text[/detail]
[/issue]
[issue]
[number]2[/number]
[detail]some text[/detail]
[/issue]
[issue]
[number]3[/number]
[detail]some text[/detail]
[/issue]
[/node]
basically, im trying to get inside the javascript between the head tags of an xsl page to repeat this pattern
messages[0]=""
where the 0 becomes the "number" node and the "" is filled with the corresponding value of the detail node. This is all inside a javascript array. any ideas?
here is what i came up with ... but it is apparantly not working...
messages=new Array()
<xsl:for-each select="mckinney/site/issues" order-by="number">
messages[
<xsl:value-of select="mckinney/site/issues/number" />
]="
<xsl:value-of select="mckinney/site/issues/detail" />
"
</xsl:for-each>
and, does it matter that this is all in a CDATA section?
just wondering