This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: produce a list


Thanks Ben, it worked fine.

Paal Steven

>From: Ben Robb <Ben@cscape.com>
>Reply-To: xsl-list@mulberrytech.com
>To: "'xsl-list@mulberrytech.com'" <xsl-list@mulberrytech.com>
>Subject: RE: produce a list
>Date: Fri, 7 Apr 2000 15:21:44 +0100
>
><xsl:template match="*">
>	<xsl:choose>
>		<xsl:when test="@id">
>			<xsl:value-of select="@id"/>
>		</xsl:test>
>		<xsl:otherwise>
>			<xsl:value-of select="."/>
>		</xsl:otherwise>
>	</xsl:choose>
>		<xsl:apply-templates/>
></xsl:template>
>
><!-- negate the default text template -->
><xsl:template match="text()" />
>
>
>should work (though I haven't tested it)
>
>Rgs,
>
>Ben
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]