why?

U

Useko Netsumi

The following failed to run in Mozilla 1.6a but ran find in ie6. Thanks


ex1.xml
=======
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="./ex1.xsl"?>
<Addressbook>
<entry>
<confidential>FOR YOUR EYES ONLY!</confidential>
<CATEGORIES>Signs</CATEGORIES>
<FIRSTNAME>Alf</FIRSTNAME>
<LASTNAME>Della</LASTNAME>
<JOBTITLE1>Double Agent</JOBTITLE1>
</entry>
<entry>
<confidential>PUBLIC</confidential>
<CATEGORIES>Connectors</CATEGORIES>
<FIRSTNAME>John</FIRSTNAME>
<LASTNAME>Smith</LASTNAME>
<JOBTITLE1>Accountant</JOBTITLE1>
</entry>
</Addressbook>


ex1.xsl
=====
<?xml version='1.0' encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="white">
<tr>
<th>confidential</th>
<th>CATEGORIES</th>
<th>FIRSTNAME</th>
<th>LASTNAME</th>
<th>JOBTITLE1</th>h
</tr>
<xsl:for-each select="Addressbook/entry">
<tr>
<td><xsl:value-of select="confidential"/></td>
<td><xsl:value-of select="CATEGORIES"/></td>
<td><xsl:value-of select="FIRSTNAME"/></td>
<td><xsl:value-of select="LASTNAME"/></td>
<td><xsl:value-of select="JOBTITLE1"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top