C
celerystick
This is an xsl question, comp.infosystems.www.authoring.stylesheets
were not able to help , here goes ....
With one xml file containing repeated element <subject>:
....<subject>Accounting</subject>
<subject>Business</subject>..
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 context, a second stylesheet
"businessfilter.xsl" that does
<xsl:for-each select="databases/database[subject='Business']"
Whenever I dont have <subject>business</subject> listed first in order
it does not work ....
..... unless I
switch the order in the xml to :
<subject>Business</subject>
<subject>Accounting </subject></database>
... then in this case the Accountingfilter.xsl sheet wont work as
intended.
How can I do this to get both to work regardless of the order of the
repeated element
<subject> ??
Thanks !!
were not able to help , here goes ....
With one xml file containing repeated element <subject>:
....<subject>Accounting</subject>
<subject>Business</subject>..
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 context, a second stylesheet
"businessfilter.xsl" that does
<xsl:for-each select="databases/database[subject='Business']"
Whenever I dont have <subject>business</subject> listed first in order
it does not work ....
..... unless I
switch the order in the xml to :
<subject>Business</subject>
<subject>Accounting </subject></database>
... then in this case the Accountingfilter.xsl sheet wont work as
intended.
How can I do this to get both to work regardless of the order of the
repeated element
<subject> ??
Thanks !!