Newbie problem with XSLT...

B

Brian Wohldmann

I'm working on a XML/XSL markup for class. Upon finishing it, I
couldn't get IE to display the transformed XML output to me, all I
kept getting was the untransformed XML Tree View that IE uses.

My XML is well-formed and validated. I transformed the files with a
program called 'XMLSpy', and it worked fine (using both the built-in
XSLT processor and the MSXML processor).

So why can't I get IE to properly display the XML? Any help would be
greatly appreciated. The files can be viewed:

http://www.atthefrontsystems.com/xls/flight.xml
http://www.atthefrontsystems.com/xls/tablestyle.xsl

----
Head of flight.xml
----
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml"
href="http://www.atthefrontsystems.com/xls/tablestyle.xsl"?>

<!DOCTYPE FLIGHTINFO [
..
..
..


----
Head of tablestyle.xsl
----
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/FLIGHTINFO">
..
..
..
 
R

Ray Tayek

Brian said:
I'm working on a XML/XSL markup for class. Upon finishing it, I
couldn't get IE to display the transformed XML output to me, all I
kept getting was the untransformed XML Tree View that IE uses.
...
http://www.atthefrontsystems.com/xls/flight.xml

i'm a newbie also, but the above file looks like a nice table when
viewed with mozilla, so maybe it's something peculiar to ie. try some
other browsers and see what happens.

hth
 
D

Dimitre Novatchev

Change:

to

<?xml-stylesheet type="text/xsl"
href="http://www.atthefrontsystems.com/xls/tablestyle.xsl"?>


and then IE will perform the transformation.




=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




Brian Wohldmann said:
I'm working on a XML/XSL markup for class. Upon finishing it, I
couldn't get IE to display the transformed XML output to me, all I
kept getting was the untransformed XML Tree View that IE uses.

My XML is well-formed and validated. I transformed the files with a
program called 'XMLSpy', and it worked fine (using both the built-in
XSLT processor and the MSXML processor).

So why can't I get IE to properly display the XML? Any help would be
greatly appreciated. The files can be viewed:

http://www.atthefrontsystems.com/xls/flight.xml
http://www.atthefrontsystems.com/xls/tablestyle.xsl

----
Head of flight.xml
----
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml"
href="http://www.atthefrontsystems.com/xls/tablestyle.xsl"?>

<!DOCTYPE FLIGHTINFO [
.
.
.


----
Head of tablestyle.xsl
----
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/FLIGHTINFO">
.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top