Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XSD Validation
XSD Validation [message #222626] Sat, 11 October 2008 11:24 Go to next message
Steffen Heil is currently offline Steffen Heil
Messages: 2
Registered: July 2009
Junior Member
Hi

I have a problem with xsd validation importing xhtml xsds. I put a small
testcase together, listed below.
I always get the following error:

Referenced file contains errors
(http://www.w3.org/MarkUp/SCHEMA/xhtml-ruby-1.xsd).

Am I doing something wrong? How can I solve this? Is this a bug?

Regards,
Steffen



<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:testcase="http://www.example.com/testcase"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
targetNamespace="http://www.example.com/testcase"
elementFormDefault="qualified"
attributeFormDefault="unqualified">

<xs:import namespace="http://www.w3.org/1999/xhtml"
schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
/>

<!-- root -->
<xs:element name="testcase" type="testcase:testcase"/>
<xs:complexType name="testcase">
<xs:sequence>
<xs:element name="script" type="xhtml:xhtml.script.type"
minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>

</xs:schema>


<?xml version="1.0" encoding="utf-8"?>
<testcase xmlns="http://www.example.com/testcase">
<script type="text/javascript"><![CDATA[

alert( 'test' );

]]></script>
</testcase>
Re: XSD Validation [message #222627 is a reply to message #222626] Sat, 11 October 2008 12:57 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030505060003030203060802
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Steffen,

Those schemas just don't appear to be in good shape. The ones mentioned
here seem a lot better:

http://www.w3.org/TR/xhtml1-schema/#schemas



Steffen Heil wrote:
> Hi
>
> I have a problem with xsd validation importing xhtml xsds. I put a
> small testcase together, listed below.
> I always get the following error:
>
> Referenced file contains errors
> (http://www.w3.org/MarkUp/SCHEMA/xhtml-ruby-1.xsd).
>
> Am I doing something wrong? How can I solve this? Is this a bug?
>
> Regards,
> Steffen
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:testcase="http://www.example.com/testcase"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
> targetNamespace="http://www.example.com/testcase"
> elementFormDefault="qualified"
> attributeFormDefault="unqualified">
> <xs:import namespace="http://www.w3.org/1999/xhtml"
>
> schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" />
> <!-- root -->
> <xs:element name="testcase" type="testcase:testcase"/>
> <xs:complexType name="testcase">
> <xs:sequence>
> <xs:element name="script" type="xhtml:xhtml.script.type"
> minOccurs="0" maxOccurs="1"/>
> </xs:sequence>
> </xs:complexType>
>
> </xs:schema>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <testcase xmlns="http://www.example.com/testcase">
> <script type="text/javascript"><![CDATA[
>
> alert( 'test' );
>
> ]]></script>
> </testcase>
>
>
>
>

--------------030505060003030203060802
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steffen,<br>
<br>
Those schemas just don't appear to be in good shape.
Previous Topic:Does "Regenerate Binding" in WSDL Editor work
Next Topic:Missing DocumentProvider by using XML editor plugin
Goto Forum:
  


Current Time: Thu Oct 23 09:22:08 GMT 2014

Powered by FUDForum. Page generated in 0.02657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software