Help check: validate the help files on compilation against a derivated docbook schema
[scilab.git] / scilab / modules / helptools / schema / scilab.rng
1 <?xml version="1.0" encoding="utf-8"?>
2 <grammar  xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://docbook.org/ns/docbook">
3 <!-- DocBook Scilab schema used per help file -->
4
5   <include href="docbook.rng">
6       <!-- Reduce entry point to a refentry only-->
7       <start>
8           <ref name="db.refentry"/>
9       </start>
10       
11       <!-- Disable link idref checking as we are only checking files -->
12         <define name="db.linkend.attribute">
13         <attribute name="linkend">
14           <a:documentation>Points to an internal link target by identifying the value of its xml:id attribute</a:documentation>
15           <data type="string"/>
16         </attribute>
17       </define>
18       
19       <!-- Add support for latex as mathematical expression -->
20       <define name="db.math.inlines">
21         <choice>
22             <ref name="db.inlineequation"/>
23             <ref name="sci.inlinelatex"/>
24         </choice>
25       </define>
26       
27   </include>
28
29   <define name="sci.inlinelatex">
30     <a:documentation>An inlined latex equation</a:documentation>
31     <element name="latex">
32         <text/>
33     </element>
34   </define>
35
36 </grammar>