I'm having trouble validating my XHTML document.
Ted Hickox <[email protected]> Sat, 27 Jul 2024 14:13:37 -0500
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <CAAsp6CYGcYREJA6AMCL0Q9k4be2k4jXNAKhOj5ydXg2C9EZypw@mail.gmail.com> |
Here is my XHTML:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="
http://www.w3.org/2000/svg" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.TedTheSpeedlearner.com SVG_Bezier_Curve_Webpage_XML_Schema.xsd">
<head>
<title>SVG_Bezier_Curve</title>
<link rel="stylesheet" type="text/css" href="
http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Bezier_Curve.css
"/>
<script language="javascript" src="
http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Bezier_Curve_2.js
">
</script>
</head>
<body onload="Setup()">
<input type="button" id="Bezier_Curve_Button" value="Click Me!"
onclick="Setup2()"/>
<svg:svg id="My_SVG" height="500" width="500">
<svg:path id="Bezier_Curve_1"/>
<svg:path id="Bezier_Curve_2"/>
</svg:svg>
</body>
</html>
Here is my XML Schema:
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:target="
http://www.TedTheSpeedlearner.com" targetNamespace="
http://www.TedTheSpeedlearner.com" elementFormDefault="qualified">
<complexType name="HeadType">
<sequence>
<element name="head" type="target:TitleType"/>
<element name="body" type="target:BodyType"/>
</sequence>
</complexType>
<complexType name="TitleType">
<sequence>
<element name="title" type="string"/>
<element name="link" type="target:LinkType"/>
<element name="script" type="target:ScriptType"/>
</sequence>
</complexType>
<complexType name="LinkType">
<attribute name="rel" type="string"/>
<attribute name="type" type="string"/>
<attribute name="href" type="string"/>
</complexType>
<complexType name="ScriptType">
<attribute name="language" type="string"/>
<attribute name="src" type="string"/>
</complexType>
<complexType name="BodyType">
<sequence>
<element name="input" type="target:InputType"/>
<element name="svg" type="target:SvgType"/>
<element name="path" type="PathType"/>
<element name="path" type="PathType"/>
</sequence>
<attribute name="onload" type="string"/>
</complexType>
<complexType name="SvgType">
<attribute name="xmlns" type="string"/>
<attribute name="id" type="string"/>
<attribute name="height" type="string"/>
<attribute name="width" type="string"/>
</complexType>
<complexType name="InputType">
<attribute name="id" type="string"/>
<attribute name="onclick" type="string"/>
</complexType>
<complexType name="PathType">
<attribute name="id" type="string"/>
</complexType>
<element name="html" type="target:HeadType"/>
</schema>
And here is my Xquery:
xquery version "3.0";
import module namespace validation="http://exist-db.org/xquery/validation";
let $schema :=
xs:anyURI('/db/apps/HTML_Student/SVG_Bezier_Curve_Webpage_XML_Schema.xsd')
let $instance := xs:anyURI('/db/apps/HTML_Student/SVG_Bezier_Curve.xhtml')
return
(validation:jaxp-report($instance, xs:boolean("false"), $schema))
When I run the Xquery, the following error occurs:
[image: image.png]
I don't know what that error is so I don't know how to fix it. Please
assist me.
_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open
image.png
(image/png, 75.8 KB) - not displayed