This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Template priority
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 18 Jun 2002 09:02:14 +0100
- Subject: RE: [xsl] Template priority
- Reply-to: xsl-list at lists dot mulberrytech dot com
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