File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" xmlns =" http://www.w3.org/1999/xhtml" xmlns : mml =" http://www.w3.org/1998/Math/MathML" targetNamespace =" http://www.w3.org/1999/xhtml" elementFormDefault =" qualified" attributeFormDefault =" unqualified" >
2
+ <xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" xmlns =" http://www.w3.org/1999/xhtml" xmlns : mml =" http://www.w3.org/1998/Math/MathML" xmlns : svg = " http://www.w3.org/2000/svg " targetNamespace =" http://www.w3.org/1999/xhtml" elementFormDefault =" qualified" attributeFormDefault =" unqualified" >
3
3
4
4
<xs : import namespace =" http://www.w3.org/1998/Math/MathML" schemaLocation =" mathml3/mathml3.xsd" />
5
+ <xs : import namespace =" http://www.w3.org/2000/svg" schemaLocation =" svg/SVG.xsd" />
5
6
6
7
<xs : element name =" html" >
7
8
<xs : complexType >
1330
1331
<xs : element ref =" ol" />
1331
1332
<xs : element ref =" p" />
1332
1333
<xs : element ref =" pre" />
1333
- <!-- ToDo: Add separate schema for SVG ref here?
1334
- <xs:element ref="svg:svg"/> -->
1334
+ <xs : element ref =" svg:svg" />
1335
1335
<xs : element ref =" table" />
1336
1336
<xs : element ref =" ul" />
1337
1337
<xs : element ref =" video" />
Original file line number Diff line number Diff line change 1
- < ?xml-model href="../htmlbook.xsd" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
2
1
< html xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance "
3
2
xsi:schemaLocation ="http://www.w3.org/1999/xhtml ../htmlbook.xsd "
4
3
xmlns ="http://www.w3.org/1999/xhtml ">
@@ -97,8 +96,12 @@ <h5>Test</h5>
97
96
< img src ="image.png " id ="an_image " lang ="en "/>
98
97
</ figure >
99
98
99
+ <!-- Some embedded MML -->
100
100
< math xmlns ="http://www.w3.org/1998/Math/MathML "> < mn > 2</ mn > < mo > +</ mo > < mn > 2</ mn > < mo > =</ mo > < mn > 4</ mn > </ math >
101
101
102
+ <!-- Some embedded SVG -->
103
+ < svg xmlns ="http://www.w3.org/2000/svg " width ="300 " height ="200 "> < desc > SVG content goes here...</ desc > </ svg >
104
+
102
105
<!-- Oh boy, let's do a couple tables -->
103
106
<!-- No <tbody> -->
104
107
< table border ="" id ="skeleton_of_a_table " accesskey ="A a d ">
You can’t perform that action at this time.
0 commit comments