comments content in xsl-value-of
Added by Anonymous about 17 years ago
Legacy ID: #4537792 Legacy Poster: jawad chlyah (jawch)
hi, I use saxon 8.7 when I do this <xsl:value-of select="."/> on a node that contains comments. The returned string does not contain comments content. This is not correct in xslt. Is this a bug or am I wrong? best regards Jawad
Replies (1)
RE: comments content in xsl-value-of - Added by Anonymous about 17 years ago
Legacy ID: #4537882 Legacy Poster: Michael Kay (mhkay)
>I use saxon 8.7 The current version is 8.9.0.4, please upgrade >when I do this <xsl:value-of select="."/> on a node that contains comments. I assume by "node" you mean "element", for example <e>The <!--fat--> cat sat on the mat</e> The string value of an element node (and its typed value, for that matter) is obtained by concatenating the content of its text node descendants. Attributes, comments, and processing instructions do not contribute to the string value. Michael Kay http://www.saxonica.com/
Please register to reply