This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Element Text
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Element Text
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 9 Feb 2000 21:39:46 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
Try:
<xsl:template match="runmode[@name='debug']">
start:
<xsl:copy-of select="node()"/>
end:
</xsl:template>
The description of xsl:copy-of is notoriously misplaced in the spec, I think
it was originally designed to do a much more specialised job and then
generalised later, so it's not surprising you failed to spot it.
Mike Kay
> In my XML document, I have the following:
> <runmode name="debug">
> <any_element>
> <sub_element/>
> <sub_element/>
> </any_element>
> </runmode>
>
> I would like my XSL stylesheet to output the entire text of
> the runmode
> element, so it may look like the following:
> <xsl:template match="runmode[@name='debug']">
> start:
> <!-- This is where I would like to output the text
> elements -->
> end:
> </xsl:template>
>
> and my output document would contain:
>
> start:
> <any_element>
> <sub_element/>
> <sub_element/>
> </any_element>
> end:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list