mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-19 18:50:25 +08:00
Added automatic generation of an XSA description, Daniel
This commit is contained in:
parent
fd573f18a5
commit
b4d30b6360
@ -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 );
|
||||
|
28
doc/libxml2.xsa
Normal file
28
doc/libxml2.xsa
Normal file
@ -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>
|
53
doc/xsa.xsl
Normal file
53
doc/xsa.xsl
Normal file
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user