[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Possible bug in libxml2?
- From: Daniel Leidert <daniel leidert spam gmx net>
- To: ml_gnome-xml <xml gnome org>
- Subject: Re: [xml] Possible bug in libxml2?
- Date: Sun, 04 Feb 2007 03:22:10 +0100
Am Sonntag, den 04.02.2007, 03:16 +0100 schrieb Daniel Leidert:
> I wanted to create a gettext portable object template (.pot) file from
> Norman Walsh's "DocBook: The Definitive Guide". Therefor I used:
>
> xml2po -e -o book.pot book.xml
>
> in http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/defguide/en/
> and received a segmentation fault. So I started gdb and got the attached
> backtrace. Can any of you say, where the segmentation fault is produced
> - in xml2po or libxml2/python-libxml2 - so I can file a bug-report?
> xmllint validates the XML source if you fix the <tag> element in
> refpages/elements/equation/refentry.xml (should be an sgmltag element).
I forget. See the attached Makefile (and replace the
defguide/en/Makefile with the attached one) to create bookinfo.xml with
xsltproc and you don't need any further stuff from upstreams SVN to
create all files to reproduce the bug. Just run
make bookinfo.xml
xml2po -e -o book.pot book.xml
to try to reproduce the bug.
Regards, Daniel
SSTITLEPG=stylesheets/html-titlepage.xsl
SSCHUNK=stylesheets/chunk.xsl
SSFO=stylesheets/tdgfo.xsl
SOURCE=tdg.xml
BASEDIR=html/
ROOTID=
FORESULT=chunk.fo
XSLT=xsltproc
DIFFVER=
FMGO=-N
ifeq ($(SOURCE),tdgex.xml)
STYLEOPT="--stringparam output.type unexpanded"
HTMLEXT="-x.html"
else
STYLEOPT=
HTMLEXT=".html"
endif
ifeq ($(ROOTID),)
ROOTIDPARAM=
else
ROOTIDPARAM=rootid=$(ROOTID)
endif
all: chunks
test:
xjparse $(SOURCE)
tdg.xml: bookinfo.xml WhatsNew
xsltproc --output $@ stylesheets/identity.xsl book.xml
tdgex.xml: bookinfo.xml WhatsNew
xsltproc --output $@ stylesheets/identity.xsl unexbook.xml
bookinfo.xml: VERSION.xml
xsltproc --output $@ $< $<
# $(XSLT) $< $< $@
chunks: $(SSTITLEPG) $(SOURCE)
xsltproc --stringparam base.dir $(BASEDIR) \
--stringparam html.ext $(HTMLEXT) \
$(STYLEOPT) $(SSCHUNK) $(SOURCE)
xsltproc --stringparam base.dir $(BASEDIR) \
--stringparam html.ext $(HTMLEXT) \
--stringparam rootid "index" \
$(STYLEOPT) $(SSCHUNK) $(SOURCE)
# $(XSLT) $(SOURCE) $(SSCHUNK) /dev/null base.dir=$(BASEDIR) html.ext=$(HTMLEXT) $(STYLEOPT)
# $(XSLT) $(SOURCE) $(SSCHUNK) /dev/null base.dir=$(BASEDIR) html.ext=$(HTMLEXT) rootid=index $(STYLEOPT)
chunk: $(SSTITLEPG)
$(XSLT) $(SOURCE) $(SSCHUNK) /dev/null base.dir=$(BASEDIR) html.ext=$(HTMLEXT) $(ROOTIDPARAM) $(STYLEOPT)
index: $(SSTITLEPG)
$(XSLT) $(SOURCE) $(SSCHUNK) /dev/null base.dir=$(BASEDIR) html.ext=$(HTMLEXT) rootid=index
stylesheets/html-titlepage.xsl: stylesheets/html-titlepage.xml
xsltproc -o $@ http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl $<
# $(XSLT) $< http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl $@
fochunks:
$(XSLT) $(SOURCE) $(SSFO) partI.fo rootid=docbook-intro $(STYLEOPT)
$(XSLT) $(SOURCE) $(SSFO) partII.fo rootid=docbook-reference $(STYLEOPT)
$(XSLT) $(SOURCE) $(SSFO) partIII.fo rootid=docbook-apps $(STYLEOPT)
fochunk:
$(XSLT) $(SOURCE) $(SSFO) $(FORESULT) $(ROOTIDPARAM) $(STYLEOPT)
%.pdf: %.fo
xep $<
tdg.fo: tdg.xml
$(XSLT) $< $(SSFO) $@ $(ROOTIDPARAM) $(STYLEOPT)
tdg.pdf: tdg.fo
xep $< $@
clean:
rm -f tdg.{html,fo,pdf} tdg.xml tdgex.xml $(SSTITLEPG)
freshmeat:
$(XSLT) VERSION.xml VERSION.xml /tmp/fm-docbook-tdg freshmeat=1
grep -v "<?xml" /tmp/fm-docbook-tdg | freshmeat-submit $(FMGO)
WhatsNew:
# svn update
# /usr/local/svn2cl/svn2cl.sh --group-by-day --output=$@
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]