I have one xml file containing repeated elements
<database><title>Database one </title><subject>Accounting</subject>
<subject>Business</subject></database>
I can apply one stylesheet "Accountingfilter.xsl" that does this :
<xsl:for-each select="databases/database[subject='Accounting']"
And get output for all records where 'accounting' is listed in subject
elements
But I want to also apply, for another link, a second stylesheet
"businessfilter.xsl" that does
<xsl:for-each select="databases/database[subject='Business']"
Accountingfilter.xsl works, subject elements containing Accounting
being listed first in the xml
Here, Businessfilter doesn't work as intended - empty display- unless I
switch the order in master.xml to : <subject>Business</subject>
<subject>BAccounting </subject></database>
.. then in this case the Accountingfilter.xsl sheet wont work as
intended.
Any advice on getting both stylesheets to work on the same xml file
with repeatable elements containinng different values, regardless of
the order listed in the xml?
Thanks
Jim Moe - 28 May 2005 19:59 GMT
> Any advice on getting both stylesheets to work on the same xml file
> with repeatable elements containinng different values, regardless of
> the order listed in the xml?
You'll get answers at comp.text.xml.

Signature
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)