xsl-list
[Top] [All Lists]

Re: Match on Element Value?

2004-08-11 07:36:21
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



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>