T
tjakopec
Hi to all!
Situation:
First document (data.xml):
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
....
</data>
Second document (data.xsl)
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html"/>
<xsl:template match="/">
....
</xsl:template>
</xsl:stylesheet>
when these two documents are in same directory on my local disk
everyting is OK, BUT what I want is:
data.xml is on my local disk
data.xsl is somewhere on web (http://www.myweb.com/data.xsl)
load to my web browser (firefox) data.xml and see tranformed data via
data.xsl
then data.xml will look like
<?xml-stylesheet type="text/xsl" href="http://www.myweb.com/data.xsl"?>
and data.xsl is on http://www.myweb.com/data.xsl
This combination dont work!
What I am doing wrong?
Situation:
First document (data.xml):
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
....
</data>
Second document (data.xsl)
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html"/>
<xsl:template match="/">
....
</xsl:template>
</xsl:stylesheet>
when these two documents are in same directory on my local disk
everyting is OK, BUT what I want is:
data.xml is on my local disk
data.xsl is somewhere on web (http://www.myweb.com/data.xsl)
load to my web browser (firefox) data.xml and see tranformed data via
data.xsl
then data.xml will look like
<?xml-stylesheet type="text/xsl" href="http://www.myweb.com/data.xsl"?>
and data.xsl is on http://www.myweb.com/data.xsl
This combination dont work!
What I am doing wrong?