Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / May 2005



Tip: Looking for answers? Try searching our database.

(newbie) How 2 make  <xsl:for-each select="parent/child[element='value']"> 2 stylesheets, repeated elements - order is interfering

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emailchas@gmail.com - 28 May 2005 04:27 GMT
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)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.