|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Apply-templates - how to omit top level element ta
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








