I ran a schema against my XHTML document and got an error message.

Ted Hickox <[email protected]> Thu, 25 Jul 2024 22:59:02 -0500
Newsgroups gmane.text.xml.exist
Message-ID <CAAsp6CZk6f2OekzKTx3bNJpKVzhwvR11mv7OcLFJB7RiqSWp-A@mail.gmail.com>
I got an error message when I ran an xquery against my XHTML document.
Here is the error:

[image: image.png]

Here is my XHTML:

<html xmlns="http://www.w3.org/1999/xhtml">
    <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 xmlns="http://www.w3.org/2000/svg" id="My_SVG" height="500"
width="500">
         <path id="Bezier_Curve_1"/>
         <path id="Bezier_Curve_2">
         </path>
    </svg>
    </body>
</html>

And 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"/>
        </sequence>
        <attribute name="onload" type="string"/>
    </complexType>
    <complexType name="SvgType">
        <sequence>
            <attribute name="id" type="string"/>
            <attribute name="height" type="string"/>
            <attribute name="width" type="string"/>
            <element name="path" type="PathType"/>
            <element name="path" type="PathType"/>
        </sequence>
        <attribute name="id" 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>

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open
image.png (image/png, 73.6 KB) - not displayed