Trying to get xml/xsl/xsd working using linux, apache, axkit and ie5.5
AxKit is translating the xml file to html using xsl file ok
When I add reference to xsd file it goes pearshaped - get 500 internal server error
############ XML FILE ################
<?xml version="1.0"?>
<?xml-stylesheet href="lob.xsl" type="text/xsl"?>
<note xmlns:xsi="
http://www.w3.org/2000/XMLSchema" xsi:noNamespaceSchemaLocat
ion="lob.x
sd">
<listofcons>
<consultant>
<Title>Mr</Title>
<GivenName>John</GivenName
>
<MiddleName>B</MiddleName>
<FamilyName>Smith</FamilyN
ame>
</consultant>
</listofcons>
##########################
##########
###
########### XSL FILE ##################
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<html>
<head><title>Harry</title>
</head>
<body>
<table bgcolor="#CCFFFF" width="600" border="1">
<tr bgcolor="#FFCCCC">
<th>Title</th>
<th>Firstname</th>
<th>Surname</th>
</tr>
<xsl:for-each select="listofcons">
<xsl:apply-templates select="./consultant" />
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="consultant">
<tr>
<td><xsl:value-of select="./Title" /></td>
<td><xsl:value-of select="./GivenName" /></td>
<td><xsl:value-of select="./FamilyName" /></td>
</tr>
</xsl:template>
</xsl:stylesheet>
##########################
##########
##########
#####
############ XSD FILE ##########################
###
<xsd:schema xmlns:xsd="
http://www.w3.org/2000/08/XMLSchema">
<xsd:annotation>
<xsd:documentation>
My first xml schema
</xsd:documentation>
</xsd:annotation>
<xsd:element name="listofcons" type="NameList">
<xsd:complexType name="NameList">
<xsd:sequence>
<xsd:element name="consultant" type="structured_name">
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="structured_name">
<xsd:sequence>
<xsd:element name="Title" type="xsd:string">
<xsd:element name="GivenName" type="xsd:string">
<xsd:element name="MiddleName" type="xsd:string">
<xsd:element name="FamilyName" type="xsd:string">
</xsd:element>
</xsd:complexType>
##########################
##########
##########
########
This is what I get in error_log
############## ERROR_LOG ##########################
##
[Wed Jan 23 09:10:52 2002] [error] [client 150.24.1.249] [AxKit] [Error] xmlParse returned error: 77, Premature end of data in tag venName>
<MiddleName>B</Midd
[Wed Jan 23 09:10:52 2002] [error] [client 150.24.1.249] [AxKit] From: /usr/lib/perl5/site_perl/5
.6.1/i386l
inux/Apach
e/AxKit/Ex
ception.pm
: 9
[Wed Jan 23 09:10:52 2002] [error] ErrorStylesheet: No module mapping found for type ''
##########################
##########
##########
#######
Where am I going wrong ?