[xsl] Template priority

Subject: [xsl] Template priority
From: Brian Grainger <granam@xxxxxxx>
Date: Mon, 17 Jun 2002 20:34:08 -0600
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



Current Thread