wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: use same xml file with different xsl-stylesheets
Similar Threads
JSP for transforming XML using XSL
xsl: html: getting attribute from other frame with refresh: Update info
getting information (xml attribute) in frame with HTML code from other frame
Simple XSL problem: parent attributes
xsl: Send/remember xml to show in other frame/xsl-stylesheet