[xml/sgml] Re: Bug#382505: fo output does not respect /etc/papersize

W. Borgert debacle at debian.org
Wed Aug 16 08:19:21 UTC 2006


On Wed, Aug 16, 2006 at 03:39:57AM +0200, Daniel Leidert wrote:
> Any ideas or opinions?

I would suggest to write an update-papersize.xml script (in pure
/bin/sh to avoid additional dependencies), that generates a file
/etc/papersize.xml from /etc/papersize and could be automatically
called when dpkg-reconfiguring libpaper1. The content could be:

<?xml version='1.0' encoding='utf-8'?>
<!-- automatically generated by ... do not edit -->
<papersize>
  <papername>a4</papername>
</papersize>

That would allow for additional (e.g. height and width) information,
if the need arises in the future. On the XSLT side this file has
still to be parsed and some papernames have to be mapped (letter vs.
USletter).

Cheers, WB




More information about the Debian-xml-sgml-devel mailing list