use multiple xsl files with one xml document
Posted
by paracaudex
on Stack Overflow
See other posts from Stack Overflow
or by paracaudex
Published on 2010-04-17T20:20:36Z
Indexed on
2010/04/17
20:23 UTC
Read the original article
Hit count: 265
I have a single xml document (data.xml), which I display as HTML using an XSLT document (transform.xsl) with the following line in data.xml.
<?xml-stylesheet type="text/xsl" href="transform.xsl"?>
Suppose, however, I want to display this information in two different ways, one at http://www.domain.com/data.xml and one at http://www.domain.com/data2.xml. Both of these displays will use the same xml document but with different xsl's. Is there a way to do this without duplicating the xml file?
© Stack Overflow or respective owner