L
Larry Lindstrom
Hi Experts:
I've decided to go through ZVON.org's XSLT tutorial.
The first XSLT example is at:
www.zvon.org/xxl/XSLTutorial/Output/example1_ch1.html
Here is the XML, with a reference to the stylesheet
and other syntactic sugar added at the front:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="page_01_01.xsl"?>
<source>
<title>XSL</title>
<author>John Smith</author>
</source>
Here is the XSL, unchanged from the example:
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<h1>
<xsl:value-of select="//title"/>
</h1>
<h2>
<xsl:value-of select="//author"/>
</h2>
</xsl:template>
</xsl:stylesheet>
The transform to be performed is obvious, but I
decided to cut and paste it into my website so I
could watch it work.
The expected output is "XSL" in H1 font, followed
on the next line by "John Smith" in H2 font.
Mozilla 1.3 running on Solaris, displays this as
"XSLJohn Smith", on the first line, plain text, no
visible format or font processing.
Internet Explorer, running on Win 2000, displays
the XML as expected, with H1 and H2 fonts.
So, what am I doing wrong?
A couple of other questions, while I have your
attention:
I've looked at Mozilla's tools and haven't been
able to find anything that will display the XSLT
output, or the DOM for an XML page. Is there a
way to see these?
What do the question marks (<?...?>) in the first
lines of the XML file signify?
Thanks
Larry
I've decided to go through ZVON.org's XSLT tutorial.
The first XSLT example is at:
www.zvon.org/xxl/XSLTutorial/Output/example1_ch1.html
Here is the XML, with a reference to the stylesheet
and other syntactic sugar added at the front:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="page_01_01.xsl"?>
<source>
<title>XSL</title>
<author>John Smith</author>
</source>
Here is the XSL, unchanged from the example:
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<h1>
<xsl:value-of select="//title"/>
</h1>
<h2>
<xsl:value-of select="//author"/>
</h2>
</xsl:template>
</xsl:stylesheet>
The transform to be performed is obvious, but I
decided to cut and paste it into my website so I
could watch it work.
The expected output is "XSL" in H1 font, followed
on the next line by "John Smith" in H2 font.
Mozilla 1.3 running on Solaris, displays this as
"XSLJohn Smith", on the first line, plain text, no
visible format or font processing.
Internet Explorer, running on Win 2000, displays
the XML as expected, with H1 and H2 fonts.
So, what am I doing wrong?
A couple of other questions, while I have your
attention:
I've looked at Mozilla's tools and haven't been
able to find anything that will display the XSLT
output, or the DOM for an XML page. Is there a
way to see these?
What do the question marks (<?...?>) in the first
lines of the XML file signify?
Thanks
Larry