From cbfd9578d73f93e47b282bdf4e298067c4a9bf79 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Thu, 16 Jul 2009 17:15:14 -0400 Subject: fix a bunch of xml validation errors https://bugs.freedesktop.org/show_bug.cgi?id=20232 --- configure.ac | 3 ++ doc/dbus/Makefile.am | 5 ++- doc/dbus/ck-design.xml | 58 ++++++++++++------------ doc/dbus/spec-to-docbook.xsl | 72 +++++++++++++++++------------- src/org.freedesktop.ConsoleKit.Manager.xml | 2 +- src/org.freedesktop.ConsoleKit.Seat.xml | 5 ++- 6 files changed, 82 insertions(+), 63 deletions(-) diff --git a/configure.ac b/configure.ac index 6dbca0f..f7b62fc 100644 --- a/configure.ac +++ b/configure.ac @@ -277,6 +277,9 @@ fi AM_CONDITIONAL(DOCBOOK_DOCS_ENABLED, test x$enable_docbook_docs = xyes) AC_MSG_RESULT(yes) +AC_ARG_VAR([XMLTO],[Define/override the `xmlto' location.]) +AC_ARG_VAR([XMLTO_FLAGS],[Define/override `xmlto' options, like `--skip-validation'.]) + dnl --------------------------------------------------------------------------- dnl Check for xsltproc dnl --------------------------------------------------------------------------- diff --git a/doc/dbus/Makefile.am b/doc/dbus/Makefile.am index d8bb0ee..4f8f3e7 100644 --- a/doc/dbus/Makefile.am +++ b/doc/dbus/Makefile.am @@ -16,7 +16,7 @@ htmldocdir = $(docdir)/spec htmldoc_DATA = ConsoleKit.html ConsoleKit.html : $(SPEC_XML_FILES) - $(XMLTO) xhtml-nochunks -m $(top_srcdir)/doc/dbus/config.xsl ConsoleKit.xml + $(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks -m $(top_srcdir)/doc/dbus/config.xsl ConsoleKit.xml endif # DOCBOOK_DOCS_ENABLED @@ -44,3 +44,6 @@ MAINTAINERCLEANFILES = \ clean-local: rm -f *~ *.ref.xml rm -f ConsoleKit.html + +check-local: + xmllint --noout --noent --valid ConsoleKit.xml diff --git a/doc/dbus/ck-design.xml b/doc/dbus/ck-design.xml index 1148773..8aca968 100644 --- a/doc/dbus/ck-design.xml +++ b/doc/dbus/ck-design.xml @@ -38,16 +38,16 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To open a new Session. + To open a new Session. - To set properties for the Session. + To set properties for the Session. - To maintain a connection to the D-Bus system bus. + To maintain a connection to the D-Bus system bus. - To close the Session at logout. + To close the Session at logout. @@ -58,25 +58,25 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To determine which Seat it is running on. + To determine which Seat it is running on. - To know if the current seat supports session switching. + To know if the current seat supports session switching. - A list of all sessions on the current Seat. + A list of all sessions on the current Seat. - To know which session is active for the current Seat. + To know which session is active for the current Seat. - To know when the session active state changes. + To know when the session active state changes. - To know when sessions are added or removed. + To know when sessions are added or removed. - Access to the metadata for any open Session. + Access to the metadata for any open Session. @@ -87,10 +87,10 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To know if any user sessions are open. + To know if any user sessions are open. - To know if the system is currently being used. + To know if the system is currently being used. @@ -101,16 +101,16 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To determine what hardware is associated with a Seat. + To determine what hardware is associated with a Seat. - To determine what Session is active and inactive on a particular Seat. + To determine what Session is active and inactive on a particular Seat. - To know when the session active state changes. + To know when the session active state changes. - To determine what Session a process belongs to. + To determine what Session a process belongs to. @@ -121,28 +121,28 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To determine which session it is running in. + To determine which session it is running in. - To determine which Seat it is running on. + To determine which Seat it is running on. - To know if the current seat supports session switching. + To know if the current seat supports session switching. - A list of all sessions on the current Seat. + A list of all sessions on the current Seat. - Which session is active for the current Seat. + Which session is active for the current Seat. - To know when the session active state changes. + To know when the session active state changes. - Access to the metadata for any open Session. + Access to the metadata for any open Session. - To know when sessions are added or removed. + To know when sessions are added or removed. @@ -153,10 +153,10 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To determine which session it is running in. + To determine which session it is running in. - To know when the session active state changes. + To know when the session active state changes. @@ -167,10 +167,10 @@ The Session will remain open until the Session Leader disconnects from the D-Bus - To determine which session it is running in. + To determine which session it is running in. - To know when the session active state changes. + To know when the session active state changes. diff --git a/doc/dbus/spec-to-docbook.xsl b/doc/dbus/spec-to-docbook.xsl index 1864414..f69bebd 100644 --- a/doc/dbus/spec-to-docbook.xsl +++ b/doc/dbus/spec-to-docbook.xsl @@ -74,9 +74,15 @@ Description - - - + + + + + + + + + @@ -115,13 +121,17 @@ - - + + + + : - - + + + + @@ -143,23 +153,25 @@ '' - - - + - - + + + + : - - + + + + @@ -179,10 +191,8 @@ <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>::<xsl:value-of select="@name"/></xsl:attribute></anchor>The <xsl:value-of select="@name"/> signal () - - - + @@ -238,10 +248,10 @@ - + - + @@ -371,20 +381,24 @@ See also: - - + + + + : - - + + + + - + Errors @@ -394,16 +408,16 @@ See also: - + - + Permissions - + @@ -422,10 +436,8 @@ See also: <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>.<xsl:value-of select="@name"/></xsl:attribute></anchor><xsl:value-of select="@name"/> () () - - - + diff --git a/src/org.freedesktop.ConsoleKit.Manager.xml b/src/org.freedesktop.ConsoleKit.Manager.xml index f405c25..c4d3dd5 100644 --- a/src/org.freedesktop.ConsoleKit.Manager.xml +++ b/src/org.freedesktop.ConsoleKit.Manager.xml @@ -158,7 +158,7 @@ - This gets a list of all the Sessions + This gets a list of all the Sessions that are currently present on the system. Each Session ID is an D-Bus object path for the object that implements the Session interface. diff --git a/src/org.freedesktop.ConsoleKit.Seat.xml b/src/org.freedesktop.ConsoleKit.Seat.xml index 0e13a0f..d95990b 100644 --- a/src/org.freedesktop.ConsoleKit.Seat.xml +++ b/src/org.freedesktop.ConsoleKit.Seat.xml @@ -17,7 +17,8 @@ seat at a time. - Returns the ID for Seat. + + Returns the ID for Seat. @@ -76,7 +77,7 @@ seat at a time. - Used to determine whether the seat supports session activation. + Used to determine whether the seat supports session activation. -- cgit