[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: template match : node-set paring through multiple-

Subject: RE: template match : node-set paring through multiple-axis relationships
From: Américo Albuquerque <melinor@xxxxxxx>
Date: Wed, 4 Jun 2003 18:52:11 +0100
xsl multiple match
Hi.

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Jonathan Sprinkle
> Sent: Wednesday, June 04, 2003 3:21 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: RE:  template match : node-set paring through 
> multiple-axis relationships
> 
> 
> > Try this:
> >  <!-- get all 'b's -->
> >  <xsl:key name="Bs" match="b" use="'B'"/>
> >  
> 
> Hi (Americo?)

Yes, my name is Americo :)

> 
> This is very interesting, could you tell me more about in 
> what context this 'b' is selected?  I would guess it has to 
> be from the root node context, but I do not understand why 
> there is no '//' prefix.  This is a very interesting solution 
> that I will examine further,
> 

You could compare <xsl:key name="whatever" match="b" use="c"/>
To

whatever.xsl:
<xsl:stylesheet ...>
 <xsl:template match="b[c]">
  Result of key usage :)
 </xsl:template>
</xsl:stylesheet>

Since keys can't be selected before matched as templates can, it has the
same effect has using match="//b"

Hope this helps you



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.