Problem Validating XForm Against Schema
Posted: Fri Sep 24, 2004 6:41 pm
I have an xforms file which is failing validation for no
reason I can see. The first few lines of the file are as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xforms:model
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xs:schemaLocation="http://www.w3.org/2002/xforms
http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd"
> <!-- error diagnosed on this line -->
<xforms:instance>
<credit-card>
<type/>
..... etc.
The document was developed outside Oxygen, but I believe that it
is probably valid, and that the syntax errors are probably invalid.
---------------
The validation failure is diagnosed as follows
Severity 2
Description cvc-elt.1: Cannot find the declaration of element 'xforms:model'.
Resource xforms-credit-card-model.xml
In Folder vendorSite/webRoot/WEB-INF/resources/pagesets/checkout
Location line 7
Creation Time September 24, 2004 8:25:18 AM
------------
If anybody can tell me what am I doing to cause the above error, and
how I can get the document to to validate, I would appreciate it.
Bill.[/code]
reason I can see. The first few lines of the file are as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xforms:model
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xs:schemaLocation="http://www.w3.org/2002/xforms
http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd"
> <!-- error diagnosed on this line -->
<xforms:instance>
<credit-card>
<type/>
..... etc.
The document was developed outside Oxygen, but I believe that it
is probably valid, and that the syntax errors are probably invalid.
---------------
The validation failure is diagnosed as follows
Severity 2
Description cvc-elt.1: Cannot find the declaration of element 'xforms:model'.
Resource xforms-credit-card-model.xml
In Folder vendorSite/webRoot/WEB-INF/resources/pagesets/checkout
Location line 7
Creation Time September 24, 2004 8:25:18 AM
------------
If anybody can tell me what am I doing to cause the above error, and
how I can get the document to to validate, I would appreciate it.
Bill.[/code]