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: Template priority


Use match="x/z" and match="y/z" on the two template rules.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Brian Grainger
> Sent: 18 June 2002 03:34
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] Template priority
> 
> 
> I need to apply two different templates respectively against 
> two different 
> elements, both of which unfortunately have the same name, but 
> different 
> parents and attribute sets.
> 
> The input xml is of the general form
> 
> <root>
>    <x>
>      <z bunny="bugs farmer="fudd"/>
>    </x>
>    <y>
>      <z birdy="tweety" puddytat="sylvester"/>
>    </y>
> </root>
> 
> What would be the recommended way to differentiate the two templates? 
> Parentage? Priority? Mode? Something else?
> 
> Any pointers greatly appreciated.
> 
> Regards,
> Brian
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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]