-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Many thanks to Christian. I pushed his patch. I have also updated the BSA on the website. - -- Greetings, Rob Snelders Op 19-10-12 15:22, Christian Lohmaier schreef: > Hi *, > > On Fri, Oct 19, 2012 at 12:25 PM, Christian Lohmaier > <lohmaier+libreoff...@googlemail.com> wrote: >> [...] The additional html tags in the wiki-output on the <html> >> tag makes the removal of the xmlns tag that is added by tidy >> fail. >> >> i.e. perl -pe 's|xmlns="http://www.w3.org/1999/xhtml"||' does >> nothing, since it is not <html .. >> xmlns="http://www.w3.org/1999/xhtml" ..> but >> >> <html ... xmlns=<newline/> "http://www.w3.org/1999/xhtml"> >> >> so remove the xmlns declaration and just run the xslt commands >> manually or fix the regular expression or something like that. > > Or better - instead of trying to search and replace, also use xslt > to process the xml: > > stripnamespace.xsl: > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output > indent="yes" encoding="UTF-8" method="xml" > omit-xml-declaration="yes"/> > > <xsl:template match="*"> <xsl:element name="{name()}"> > <xsl:apply-templates select="node()|@*"/> </xsl:element> > </xsl:template> > > <xsl:template match="@*"> <xsl:copy/> </xsl:template> > </xsl:stylesheet> > > > --- a/bug/Makefile +++ b/bug/Makefile @@ -18,7 +18,8 @@ all: > extract compose > > extract: mkdir -p build - curl --silent > http://wiki.documentfoundation.org/BugReport_Details | tidy > --numeric-entities yes -asxhtml 2>/dev/null | perl -pe > 's|xmlns="http://www.w3.org/1999/xhtml"||' > > build/BugReport_Details.xhtml + curl --silent > http://wiki.documentfoundation.org/BugReport_Details | tidy > --numeric-entities yes -asxhtml 2>/dev/null > build/tidyout.xhtml > || echo "ignoring tidy error" + xsltproc --encoding UTF-8 > --novalid stripnamespace.xsl build/tidyout.xhtml > > build/BugReport_Details.xhtml xsltproc --encoding UTF-8 --novalid > component_comments.xsl build/BugReport_Details.xhtml > > build/component_comments.xhtml xsltproc --encoding UTF-8 --novalid > subcomponents.xsl build/BugReport_Details.xhtml > > build/subcomponents.xhtml xsltproc --encoding UTF-8 --novalid > components.xsl build/BugReport_Details.xhtml > > build/components.xhtml > > > ciao Christian _______________________________________________ > LibreOffice mailing list LibreOffice@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libreoffice > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBAgAGBQJQhxCrAAoJEGs78UIq7mKyMzYH/A7bML7aLdBVpD+aAaqD2+oS KqfVcIYOGGoi/aonurGjmaHLi7kLmqiMCvY4DwvQR5psJ++xHokA5VfD7KZpQmGr QPDpAquOSkVUFpnBGuJaNhPFjMMKKO6i8UT0smsPkadYDKGmZNtUrSYLO1J9fFqK tvarh6SUzzBxEKnpT7QeSy8kQLudW8Bk2+hrIkT2/ecR9M0SplzI5FPFtFTdblVg OKw+88TfrNhaFGeClZDRjEW6lgD1ujK2CN3pem/plXHz8yDMf7vlqIAzlFuV6m4h fdlNEg2KSefU32q++f4CVol4JqwRLAw3whbFYzOjCCADfOBmvaFRcBzFZdIFTYw= =6net -----END PGP SIGNATURE----- _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice