On 27.10.03 Jens Krämer (jens.kraemer@gmx.net) wrote:
Moin,
Ich würde das mit xslt machen. Ein simples Stylesheet fuer den Einstieg könnte so aussehen:
Ein Aufruf von xsltproc (apt-get install xsltproc) ergibt dann etwa sowas:
drachi:[t1] >xsltproc book.xsl bookindex.xml bookindex.xml:3: error: SystemLiteral " or ' expected [ ^ bookindex.xml:3: error: xmlParseExternalID: PUBLIC, no URI [ ^ bookindex.xml:94: error: Entity 'mdash' not defined schedule—which slipped quite a lot anyway. He's been an ^ bookindex.xml:143: error: Entity 'mdash' not defined kernel is one of the most fun parts of all—at least, for those ^ bookindex.xml:685: error: Entity 'mdash' not defined interesting development system for the VR4181 processor—that's a ^ bookindex.xml:848: error: Entity 'mdash' not defined policy applies. The floppy driver is policy free—its role is ^ bookindex.xml:1066: error: Entity 'mdash' not defined charge of specific tasks—a module is said to belong to a ^ bookindex.xml:1142: error: Entity 'mdash' not defined device—it permits the transfer of any number of bytes at a ^ bookindex.xml:1384: error: Entity 'mdash' not defined friend—if you wouldn't run a precompiled binary as root, then ^ bookindex.xml:1560: error: Entity 'mdash' not defined include the source code in the distribution—people acquiring ^ bookindex.xml:1567: error: Entity 'mdash' not defined kernel releases—even minor stable releases—often break ^ bookindex.xml:1567: error: Entity 'mdash' not defined kernel releases—even minor stable releases—often break ^ bookindex.xml:1606: error: Entity 'mdash' not defined critical review as well—they will be the first people you will ^ bookindex.xml:1743: error: xmlParsePI: PI lb space expected <chapter id="building"><title>Building and<?lb>Running Modules</title> ^ bookindex.xml:47578: error: xmlParsePI: PI lb never end ...
^ bookindex.xml:47578: error:
Segmentation fault drachi:[t1] >dpkg -l xsltproc Desired=Unknown/Install/Remove/Purge/Hold |Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii xsltproc 1.0.16-0.1 XSLT command line processor
TIA, H.