Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Apr 2005 22:43:51 -0500
From:      Rob Austein <sra@isc.org>
To:        ports@FreeBSD.org
Subject:   textproc/db2latex duplicate template bug (and patch)
Message-ID:  <20050402034351.5AE3C41ED@thrintun.hactrn.net>

next in thread | raw e-mail | index | archive | help
--Multipart_Fri_Apr__1_22:42:20_2005-1
Content-Type: text/plain; charset=US-ASCII

There's a known problem with the db2latex package: the template name
"question.answer.label" is used in two different stylesheets.
Apparently old versions of whatever XSLT processor the authors were
using didn't complain about this, but the current version of xsltproc
(correctly) rejects it.

Fix is to get rid of one of the templates.  They're almost identical,
but not quite, and one of them can't possibly work (well, unless Oasis
adds a <latex.qanda.label/> element to Docbook, which seems unlikely),
so it's pretty clearly the one that should go away.

Patch attached.


--Multipart_Fri_Apr__1_22:42:20_2005-1
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename="patch-duplicate-template-bug"
Content-Transfer-Encoding: base64

LS0tIHhzbC9xYW5kYXNldC5tb2QueHNsLn4xfglTdW4gSmFuICA0IDA4OjIyOjI3IDIwMDQKKysr
IHhzbC9xYW5kYXNldC5tb2QueHNsCUZyaSBBcHIgIDEgMjI6MzA6MjAgMjAwNQpAQCAtMzYzLDUz
ICszNjMsNCBAQAogCTwvZG9jOnRlbXBsYXRlPgogCTx4c2w6dGVtcGxhdGUgbWF0Y2g9InJldmhp
c3RvcnkiIG1vZGU9InFhbmRhdG9jLm1vZGUiLz4KIAotPHhzbDp0ZW1wbGF0ZSBuYW1lPSJxdWVz
dGlvbi5hbnN3ZXIubGFiZWwiPgotCTwhLS0gdmFyaWFibGU6IGRlZmxhYmVsIC0tPgotICA8eHNs
OnZhcmlhYmxlIG5hbWU9ImRlZmxhYmVsIj4KLSAgCTwhLS0gY2hjayB3aGV0aGVyIHNvbWVvbmUg
aGFzIGEgZGVmYXVsdGxhYmVsIGF0dHJpYnV0ZSAtLT4KLSAgICA8eHNsOmNob29zZT4KLQkJPHhz
bDp3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hLS0gbm90aGlu
ZyAtLT4KLSAgICA8L3hzbDpvdGhlcndpc2U+Ci0gIDwveHNsOmNob29zZT4KLTwveHNsOnRlbXBs
YXRlPgotCiA8L3hzbDpzdHlsZXNoZWV0Pgo=

--Multipart_Fri_Apr__1_22:42:20_2005-1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050402034351.5AE3C41ED>