|
Re: XSD Validation [message #222627 is a reply to message #222626] |
Sat, 11 October 2008 12:57 |
Ed Merks Messages: 33264 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.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04138 seconds