This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Is there a way in xsl to point to a node if only a part of its name is known?
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 22 Nov 2001 00:20:23 -0800 (PST)
- Subject: [xsl] Re: Is there a way in xsl to point to a node if only a part of its name is known?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> A text node name consists of 'tablename.fieldname' where
> tablename is the changing- and fieldname the fixed part.
>
First of all, a text node in XSLT does not have a name, the nodes in your example
are element nodes.
> Is there a way in xsl to point to a node if only a part of its name is
> known?
Use:
<xsl:template match="*[substring-after(name(), '.') = 'field1']">
<!-- Whatever processing should be performed on xxx.field1 here -->
</xsl:template>
Cheers,
Dimitre Novatchev
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list