 |
 |
 |
> <xsl:template match="CONDITION">
> ...
> </xsl:template>
>
> At the CONDITION, when I tried this:
>
> <xsl:value-of select="//EXPIRE" />
>
> It only print out the first TICKET's EXPIRE value
When you do not see the behavior you expect, consult the specs.
http://www.w3.org/TR/xslt#value-of
"The xsl:value-of element is instantiated to create a text node in the
result tree. The required select attribute is an expression; this
expression is evaluated and the resulting object is converted to a string
as if by a call to the string function."
http://www.w3.org/TR/xpath#function-string
"The string function converts an object to a string as follows:
A node-set is converted to a string by returning the string-value of the
node in the node-set that is first in document order."
So that is why xsl:value-of only gets the value of the first EXPIRE.
This:
<xsl:for-each select="//EXPIRE">
<xsl:value-of select="."/>
</xsl:for-each>
...is probably not exactly what you want, but you only asked for a hint :)
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
 | 



|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |