Problem Validating xhtml against schema
Posted: Sat Sep 25, 2004 6:56 pm
Validating the following document in Oxygen, shows what appear to be errors caused by parsing the processing instruction on line 1, and w3c xml... attribute values on lines 3 and 5, according to the XML schema instance specified in line 5. The errors diagnose '-' characters as invalid syntax.
1. On line 5, URL http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd is correctly de-referenced by a browser to the schema code.
2. However, oxygen flags three errors, similar to the following, for the above document.
3. Escaping the - in line 1 makes it impossible to store and validate the document.
4. Escaping the - in lines 3 or 5, prevents location of the schema, which prevents diagnosis of the '-' chars as bad syntax, but also prevents validation of the document with error
Questions
---------
a. Is there a workaround for validating xhtml ?
b. I have been composing the above 'form' presentation of errors manually in a text editor, by copy and paste from the Problems tab. Is there an automatic way of doing this in Oxygen?
Bill.
If I am totally off the wall here, I apologize in advance.
Code: Select all
01 <?xml version="1.0" encoding="UTF-8"?>
02 <xhtml:html
03 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
04 xsi:schemaLocation="http://www.w3.org/1999/xhtml
05 http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd"
06 xmlns:xhtml="http://www.w3.org/1999/xhtml"
07 >
08 <xhtml:head><xhtml:title>Some title</xhtml:title></xhtml:head>
09 <xhtml:body>
10 <xhtml:p>Some text</xhtml:p>
11 </xhtml:body>
12 </xhtml:html>
2. However, oxygen flags three errors, similar to the following, for the above document.
Code: Select all
Severity 2
Description InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)'
is not a valid regular expression. The reported error
was: ''-' is an invalid character range. Write '\-'.'.
SystemID: http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd Line: 230
Resource xhtml-using-xforms.xml
In Folder vendorSite/webRoot/WEB-INF/resources/pagesets/checkout
Location line 1
Creation Time September 24, 2004 5:35:56 PM
4. Escaping the - in lines 3 or 5, prevents location of the schema, which prevents diagnosis of the '-' chars as bad syntax, but also prevents validation of the document with error
Code: Select all
Severity 2
Description cvc-elt.1: Cannot find the declaration of element 'xhtml:html'.
Resource xhtml-using-xforms.xml
In Folder vendorSite/webRoot/WEB-INF/resources/pagesets/checkout
Location line 8
Creation Time September 25, 2004 8:21:29 AM
---------
a. Is there a workaround for validating xhtml ?
b. I have been composing the above 'form' presentation of errors manually in a text editor, by copy and paste from the Problems tab. Is there an automatic way of doing this in Oxygen?
Bill.
If I am totally off the wall here, I apologize in advance.