It depends how much you know of that shared structure, eg you could
replace
match="ArrayOfBooks | ArrayOfMagazines"
by
match="/*"
and
match="Book | Magazine"
by
match="/*/*"
In general rather than write a stylesheet that matches two different
document types it is often easier to write it just for one, and write a
stylesheet for the other than transforms to the first document type,
so that gets transformed as a two stage process. that way if teh
structure isn't completley identical you can transform away any small
differences in the first pass.
David
--
http://www.dcarlisle.demon.co.uk/matthew
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list