M
Mike_August
Could someone help me out with the following?
I've got
1)an xml file
2)an xsl
3)a schema
My namespaces are as follow
molecular_db.xml
<database
xmlns="http://www.mine.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mine.com mdb_schema.xsd"
mdb_schema.xsd
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.mine.com"
targetNamespace="http://www.mine.com"
elementFormDefault="qualified">
dB_ss.xsl
<xsl:stylesheet version = "1.0"
xmlns="http://www.mine.com"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
When I try it out in XMLWriter I keep getting an error that states I
can't use xs:element in the context defined as
xsi:schemaLocation="http://www.mine.com mdb_schema.xsd".
Hence, all I get for output are the headers I defined in the xsl. Take
away the xsd declarations and everything is fine. Better yet, take-away
the xmlns declaration in my xml file and it doesn't look for the xsd and
the file displays fine, headers and data all formatted by the xsl.
What's wrong with my file and how do I fix it?
I've got
1)an xml file
2)an xsl
3)a schema
My namespaces are as follow
molecular_db.xml
<database
xmlns="http://www.mine.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mine.com mdb_schema.xsd"
mdb_schema.xsd
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.mine.com"
targetNamespace="http://www.mine.com"
elementFormDefault="qualified">
dB_ss.xsl
<xsl:stylesheet version = "1.0"
xmlns="http://www.mine.com"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
When I try it out in XMLWriter I keep getting an error that states I
can't use xs:element in the context defined as
xsi:schemaLocation="http://www.mine.com mdb_schema.xsd".
Hence, all I get for output are the headers I defined in the xsl. Take
away the xsd declarations and everything is fine. Better yet, take-away
the xmlns declaration in my xml file and it doesn't look for the xsd and
the file displays fine, headers and data all formatted by the xsl.
What's wrong with my file and how do I fix it?