[gtk-doc] devhelp: readd the xml namespace
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] devhelp: readd the xml namespace
- Date: Tue, 19 May 2015 19:01:39 +0000 (UTC)
commit a0b6f5b205968a446f2116deeb2ef3ce0b56c60f
Author: Stefan Sauer <ensonic users sf net>
Date: Tue May 19 21:00:24 2015 +0200
devhelp: readd the xml namespace
Inline the xsd attributes. Apparently unqualified attribute namespaces don't
work with referenced attributes.
devhelp2.xsd | 180 +++++++++++++++++++++++++++++-----------------------------
devhelp2.xsl | 2 +-
2 files changed, 92 insertions(+), 90 deletions(-)
---
diff --git a/devhelp2.xsd b/devhelp2.xsd
index f436087..b90d2ad 100644
--- a/devhelp2.xsd
+++ b/devhelp2.xsd
@@ -4,7 +4,10 @@ get http://xml.fiforms.org/xs3p/ and generate docs
xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
-->
<xsd:schema
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.devhelp.net/book"
+ xmlns="http://www.devhelp.net/book"
+ elementFormDefault="qualified">
<xsd:annotation>
<xsd:documentation>
@@ -50,79 +53,6 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
</xsd:restriction>
</xsd:simpleType>
- <xsd:attribute name="title" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Title of the reference manual.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="link" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Entry point to the manual. Can be given as a relative path to the
- location of the devhelp2 file..
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="author" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Author of the document. Multiple authors are separated by ','.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="name" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Short name of the manual.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="version" type="xsd:integer">
- <xsd:annotation>
- <xsd:documentation>
- Version of the devhelp xml specification (2).
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="language" type="language-type">
- <xsd:annotation>
- <xsd:documentation>
- Programing language this manual refers to.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
-
- <xsd:attribute name="type" type="keyword-type">
- <xsd:annotation>
- <xsd:documentation>
- Type of the keyword.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="since" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Version since that the keyword is part of the API.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="deprecated" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Marks the keyword as deprecated.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="stability" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- Document the stability status.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
-
<xsd:element name="sub">
<xsd:annotation>
@@ -134,8 +64,8 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
<xsd:sequence>
<xsd:element ref="sub" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
- <xsd:attribute ref="name" use="required"/>
- <xsd:attribute ref="link" use="required"/>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="link" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
@@ -160,12 +90,48 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
- <xsd:attribute ref="type" use="required"/>
- <xsd:attribute ref="name" use="required"/>
- <xsd:attribute ref="link" use="required"/>
- <xsd:attribute ref="since"/>
- <xsd:attribute ref="deprecated"/>
- <xsd:attribute ref="stability"/>
+ <xsd:attribute name="type" type="keyword-type" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Type of the keyword.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="name" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Keyword name.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="link" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Relative link for the keyword.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="since" type="xsd:string">
+ <xsd:annotation>
+ <xsd:documentation>
+ Version since that the keyword is part of the API.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="deprecated" type="xsd:string">
+ <xsd:annotation>
+ <xsd:documentation>
+ Marks the keyword as deprecated.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="stability" type="xsd:string">
+ <xsd:annotation>
+ <xsd:documentation>
+ Document the stability status.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
</xsd:complexType>
</xsd:element>
@@ -195,13 +161,49 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
<xsd:element ref="chapters" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="functions" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
- <xsd:attribute ref="title" use="required"/>
- <xsd:attribute ref="link" use="required"/>
- <xsd:attribute ref="author" use="required"/>
- <xsd:attribute ref="name" use="required"/>
- <xsd:attribute ref="version" use="required"/>
- <xsd:attribute ref="language" />
+ <xsd:attribute name="title" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Title of the reference manual.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="link" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Entry point to the manual. Can be given as a relative path to the
+ location of the devhelp2 file.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="author" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Author of the document. Multiple authors are separated by ','.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="name" type="xsd:string" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Short name of the manual.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="version" type="xsd:integer" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Version of the devhelp xml specification (2).
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="language" type="language-type">
+ <xsd:annotation>
+ <xsd:documentation>
+ Programing language this manual refers to.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:schema>
-
diff --git a/devhelp2.xsl b/devhelp2.xsl
index 7854894..c832034 100644
--- a/devhelp2.xsl
+++ b/devhelp2.xsl
@@ -1,7 +1,7 @@
<?xml version='1.0'?> <!--*- mode: xml -*-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
- xmlns=""
+ xmlns="http://www.devhelp.net/book"
xmlns:str="http://exslt.org/strings"
exclude-result-prefixes="str">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]