Subject: Re: [xsl] looking for an attribute From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 14 Sep 2006 13:47:53 +0200 |
Hi Aaron,In addition, I'd like to add, that if you have multiple elements on the same axis with the name "focusedTab", than the statement will return true whenever *any* of these elements holds an attribute @name with the value "Login". To prevent that (not sure if this is a requirement), and to only process the nodes with the given requirement, it is almost always best to do the selection with "apply-template", instead of using an all-encompassing xsl:choose statement in a named or unnamed template. An example will clarify:
You'll need to add (and know) what the context node is. Suppose the following (expecting "navigation" to be your root node):
Cheers, Abel Braaksma http://abelleba.metacarpus.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] looking for an attribute, Abel Braaksma | Thread | [xsl] Grouping the elements, Arulraj |
Re: [xsl] looking for an attribute, Abel Braaksma | Date | Re: [xsl] looking for an attribute, David Carlisle |
Month |