schema pairs/namespaces

wxdqz

New Member
I hope someone here can help me out with this problem.
As simple as it looks i simply cannot solve it.
I am a newcomer to XMl and have read through various pieces on schemas, namespaces etc..but this has just stumped me !!!

-------------------------------
I keep getting the following error mesages..depending on the changes i make to it:

"The file is not valid. The schema constraint/validation rule that failed was: Schema/schemaLocation/pairs'

or

"unable to locate a reference to a supported schema"
-------------------------------------------------------------

Here is schema syntax from the XMl file:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href=http://www.webdeveloper.com/forum/archive/index.php/"C:\Documents and Settings\ZakJones\Desktop\assignment\assign1.xsl"?>
<Products xmlns="http://www.my-company.com/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.my-company.com/namespace/assign1.xsd">

XSL File:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="assign1.xml"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2000/10/Schema-instance" xsi:SchemaLocation="http://www.my-company.com namespace/assign1.xsd">

XSD file:
<xs:schema xmlns="http://www.my-company.com/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.my-company.com/namespace" elementFormDefault="qualified" attributeFormDefault="unqualified"

Any help would be much appreciated. Zak
 
Back
Top