This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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
Author

use same xml file with different xsl-stylesheets

Tom Brown
Greenhorn

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
example:
<?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" />
<TECHCARD ID="TNT0073" NAME="STELPRIM" />
</SUBTYPE>
<SUBTYPE NAME="product2">
<TECHCARD ID="00002" NAME="pr1"/>
</SUBTYPE>
</HTYPE>
Lasse Koskela
author
Sheriff

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


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
wood burning stoves
 
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