[Home] [By Thread] [By Date] [Recent Entries]
Mike,
At 02:45 PM 9/8/2005, you wrote: >> Part of your problem is that you are using xsl:value-of rather than xsl:copy-of, value-of always That's correct: copy-of copies a node and all its attributes and descendants, unchanged, to the result tree in that position. value-of copies the string value of a node to the result. The string value of a text node is the text in the node; the string value of an element node is the concatenation of all its text node descendants. So the value of <p>Hey this is <sarcasm>fun</sarcasm>!</p> is "Hey this is fun!" (losing the <sarcasm>.) If more than one node is selected by value-of, only the string value of the first of the nodes (in document order) is copied to the result. Cheers, Wendell
|

Cart



