Re: [xsl] Match on Element Value?

Subject: Re: [xsl] Match on Element Value?
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 11 Aug 2004 08:36:21 -0600
Sure...

<xsl:template match="name[. = 'name']">
..process
</xsl:template>

Best of luck!

<M:D/>

Peter Charles wrote:

Hello,

I know that it is easy to create a match pattern that utilizes an attributes
value, but is there a good way to create a template that matches on an
element with a specific value?

Something like this:

<template match="name='name'">
	.....
</template>

<document type="test">
<name>name</name
<author>john</author>
<text>text</text>
</document>


Thanks

Peter

Current Thread