From b4d30b63603e84980fe5493e02cb400a9588c8a1 Mon Sep 17 00:00:00 2001 From: Daniel Veillard <veillard@src.gnome.org> Date: Sun, 16 Mar 2003 22:32:36 +0000 Subject: [PATCH] Added automatic generation of an XSA description, Daniel --- doc/Makefile.am | 8 ++++++-- doc/libxml2.xsa | 28 ++++++++++++++++++++++++++ doc/xsa.xsl | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 doc/libxml2.xsa create mode 100644 doc/xsa.xsl diff --git a/doc/Makefile.am b/doc/Makefile.am index cc4c366c..5eb30d40 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -22,12 +22,12 @@ EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \ tutorial/images/*.png tutorial/images/callouts/*.png \ API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \ html/*.sgml libxml2-api.xml parsedecl.py index.py search.php \ - apibuild.py + apibuild.py libxml2.xsa man_MANS = xmllint.1 xmlcatalog.1 -all: $(PAGES) $(top_srcdir)/NEWS +all: $(PAGES) $(top_srcdir)/NEWS libxml2.xsa web: $(PAGES) $(APIPAGES) @@ -39,6 +39,10 @@ $(top_srcdir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html -@(if [ -x $(bindir)/xsltproc ] ; then \ $(bindir)/xsltproc --html $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_srcdir)/NEWS ; fi ); +libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html + -@(if [ -x $(bindir)/xsltproc ] ; then \ + $(bindir)/xsltproc --html $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi ); + $(APIPAGES): libxml2-refs.xml site.xsl api.xsl -@(if [ -x $(bindir)/xsltproc ] ; then \ $(bindir)/xsltproc --html $(top_srcdir)/doc/api.xsl $(top_srcdir)/doc/xml.html ; fi ); diff --git a/doc/libxml2.xsa b/doc/libxml2.xsa new file mode 100644 index 00000000..d1bc9de7 --- /dev/null +++ b/doc/libxml2.xsa @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!DOCTYPE xsa PUBLIC "-//LM Garshol//DTD XML Software Autoupdate 1.0//EN//XML" "http://www.garshol.priv.no/download/xsa/xsa.dtd"> +<xsa> + <vendor> + <name>Daniel Veillard</name> + <email>daniel@veillard.com</email> + <url>http://veillard.com/</url> + </vendor> + <product id="libxml2"> + <name>libxml2</name> + <version>2.5.4</version> + <last-release> Feb 20 2003</last-release> + <info-url>http://xmlsoft.org/</info-url> + <changes> - Conformance testing and lot of fixes on Relax NG and XInclude + implementation + - Implementation of XPointer element() scheme + - Bug fixes: XML parser, XInclude entities merge, validity checking on + namespaces, + 2 serialization bugs, node info generation problems, a DTD regexp + generation problem. + + - Portability: windows updates and path canonicalization (Igor) + - A few typo fixes (Kjartan Maraas) + - Python bindings generator fixes (Stephane Bidoul) + +</changes> + </product> +</xsa> diff --git a/doc/xsa.xsl b/doc/xsa.xsl new file mode 100644 index 00000000..a82846dd --- /dev/null +++ b/doc/xsa.xsl @@ -0,0 +1,53 @@ +<?xml version="1.0"?> +<!-- + Stylesheet generating the XSA entry for libxml2 based on the + latest News entry. + See http://www.garshol.priv.no/download/xsa/ for a description of XSA + --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:output method="xml" + doctype-public="-//LM Garshol//DTD XML Software Autoupdate 1.0//EN//XML" + doctype-system="http://www.garshol.priv.no/download/xsa/xsa.dtd" + indent="yes"/> + + <xsl:template match="/"> +<xsa> + <vendor> + <name>Daniel Veillard</name> + <email>daniel@veillard.com</email> + <url>http://veillard.com/</url> + </vendor> + <product id="libxml2"> + <name>libxml2</name> + <version><xsl:value-of select="substring-before(//h3[2], ':')"/></version> + <last-release><xsl:value-of select="substring-after(//h3[2], ':')"/></last-release> + <info-url>http://xmlsoft.org/</info-url> + <changes> + <xsl:apply-templates select="//h3[2]/following-sibling::*[1]"/> + </changes> + </product> +</xsa> + </xsl:template> + <xsl:template match="h3"> + </xsl:template> + <xsl:template match="ul"> + <xsl:apply-templates select=".//li"/> + <xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="li"> + <xsl:text> - </xsl:text> + <xsl:value-of select="."/> + <xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="a"> + <xsl:value-of select="."/> + <xsl:text> at +</xsl:text> + <xsl:value-of select="@href"/> + <xsl:text> +</xsl:text> + </xsl:template> +</xsl:stylesheet> +