This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes use same xml file with different xsl-stylesheets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "use same xml file with different xsl-stylesheets" Watch "use same xml file with different xsl-stylesheets" New topic

use same xml file with different xsl-stylesheets

Tom Brown

Joined: Sep 25, 2003
Posts: 22
hey there
i'm trying to make a whole website with xml and xsl without any frames.
is it possible to get one xml file in the browers, that in the first part shows the navigation and when you click an item it shows the same xml-file with an other stylesheet and other information, and also the navigation ofcourse.
the first time i want to show the HTYPE and SUBTYPE in the left table.
when i click the href on the subtype i want to show the product in an other table, so i have to reuse the xml-file with an other reference to an xsl-file...
how can ik do this?
thanks a lot
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="newtest.xsl"?>
<TOC lang="NL">
<HTYPE TYPE="001" NAME="product">
<SUBTYPE NAME="product1">
<TECHCARD ID="00001" NAME="pr1" />
<SUBTYPE NAME="product2">
<TECHCARD ID="00002" NAME="pr1"/>
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
What kind of server-side technology are you using?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Have you checked out Aspose?
subject: use same xml file with different xsl-stylesheets
jQuery in Action, 3rd edition