i've tried:
<xsl:template match="fields[descendant::field[contains(@id,'Metadata') and
contains(@id,'.subject.')]]" >...</xsl:template>
That's legal,but the XPath
descendant::field[contains(@id,'Metadata') and contains(@id,'.subject.')]
selcts those fields for wich the id attribute contains both 'Metadata'
and '.subject.' But I (guessing here) think that you want to test if the
parent alement has one field with @id that contains 'Metadata' and one
field with id that contains .subject. so that would be
fields[field[contains(@id,'Metadata')] and field[contains(@id,'.subject.')]]
I'm assuming here that you don't need descendant:: and that the defualt
child:: axis is enough, but you can put descendant:: back (twice) if
you need it.
David
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--