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]
Other format: [Raw text]

Re: Is there a way in xsl to point to a node if only a part of its name is known?


> 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


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