Philippe Batailler <[EMAIL PROTECTED]> écrivait : « .... « « With the file you attached ex-test.sgml, I found an error with « a <legalnotice> tag that debiandoc2dbxml inserts inside <copyright> tag. « But this does not seem to be related with what you say about <para> tag. « « Emacs said: nsgmls:ex-test.xml:27:17:E: end tag for "legalnotice" which is not finished « « I will corect this soon.
Here is a patch for the file /usr/share/sgml/debiandoc2dbxml/book.xml which corrects the problem. @@ -135,7 +135,11 @@ </xsl:comment> </holder> </copyright> -<legalnotice><xsl:apply-templates/></legalnotice> + <xsl:if test="child::p"> +<legalnotice> +<xsl:apply-templates/> +</legalnotice> +</xsl:if> </xsl:template> <xsl:template match="copyrightsummary"/> I attach the file. And I will make a new package. Regards, -- Philippe Batailler
--- /usr/share/sgml/debiandoc2dbxml/book.xml.old 2005-10-02 15:08:41.000000000 +0200 +++ /usr/share/sgml/debiandoc2dbxml/book.xml 2005-10-02 18:26:15.000000000 +0200 @@ -135,7 +135,11 @@ </xsl:comment> </holder> </copyright> -<legalnotice><xsl:apply-templates/></legalnotice> + <xsl:if test="child::p"> +<legalnotice> +<xsl:apply-templates/> +</legalnotice> +</xsl:if> </xsl:template> <xsl:template match="copyrightsummary"/>

