W3C home > Mailing lists > Public > www-dom-ts@w3.org > August 2001

RE: copy.xsl that implies <subject>'s from context

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Fri, 17 Aug 2001 10:29:51 -0600
Message-ID: <70E215722F6AD511820A000103D141D40AA4E3@thor.aeathtl.com>
To: "'www-dom-ts@w3.org'" <www-dom-ts@w3.org>
I had overlooked two (non-metadata) elements that have significant text content, comment and member.  Adding the following template will process those two elements.  All other whitespace will be
discarded.

<xsl:template match="*[local-name() = 'comment' or local-name() = 'member']">
	<xsl:element namespace="http://www.w3.org/2001/DOM-Test-Suite/Level-1"
	             name="{local-name(.)}">
	     <xsl:apply-templates select="@*"/>
	     <xsl:apply-templates select="text()"/>
	</xsl:element>
</xsl:template>
Received on Friday, 17 August 2001 12:32:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:03 UTC