[Home] [By Thread] [By Date] [Recent Entries]
At 2007-11-28 10:46 -0500, Terry Ofner wrote:
I do have a more general question/clarification that perhaps someone can address. Yes. The value of an element node is the concatenation in document order of all descendent text nodes. To avoid stripping content mark-up, I need to use <xsl:copy-of select "para"/>. When I do that, however, I get two <para> tags. You could use <xsl:copy-of select="para/node()"/> if you don't need to intervene on the descendent nodes, but perhaps using apply-templates and the identity template you would have a more general solution. With copy-of, is it still possible to replace elements and attributes? No. I suspect that I am missing something very basic. Some clarification would be great. copy-of copies the nodes without an opportunity for intervention ... for intervention, use apply-templates. I hope this helps. . . . . . . . . . . . . Ken -- Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



