[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

XML hjælp!



Det lugter til at vi skal smide FTAV-bøgerne over til XML/DocBook.

Jeg har sådan set konverteret "friheden" hjemme - men jeg har lidt 
der driller. Hjælp modtages gerne :))))))


Til forskel i forhold til SGML/DocBook 3.1 som vi hidtil har kørt så er
der følgende forskelle
* Tags skrives med små bogstaver (undtagen <!ENTITY ...>) 
* De første par linier laves om
* xref skrives <xref linkend="ID-tag"/> og ikke
  <xref linkend="ID-tag">
* <indexterm> skal være under en <para> ikke udenfor!

Her er min bog.xml:

---KLIP--------------------------------------------->
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!-- $Id: bog.xml,v 1.1 2003/08/04 21:09:18 pto Exp $ -->
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" [
<!ENTITY stikord SYSTEM "stikord.xml">
]>

<book ID="index" lang="da">
  <bookinfo>
    <title>Testbog</title>
  </bookinfo>

<toc id="friheden-toc"></toc>

<chapter id="intro">
<title>Intro</title>
<para>
<indexterm><primary>Leg</primary></indexterm>
I <xref linkend="install"/> så vi at YY
</para>
</chapter>

<chapter id="install">
<title>Installation</title>
<para>
<indexterm><primary>Dims</primary></indexterm>
I <xref linkend="intro"/> så vi at XX
</para>
</chapter>

&stikord;

</book>
<---KLIP---------------------------------------------

Her er min Makefile, hvor "make html" virker fint,
men der er noget med "make pdf" som halter.

---KLIP--------------------------------------------->
html: 
	collateindex.pl -g -i stikord -N -o stikord.xml
	jw -V html-index -f docbook -b html -o bog bog.xml
	collateindex.pl -g -i stikord  -o stikord.xml bog/HTML.index
	rm -rf bog/
	mkdir bog
	db2html  -V  %use-id-as-filename%  bog.xml

pdf: 
	collateindex.pl -g -i stikord -N -o stikord.xml
	jw -V html-index -V nochunks -f docbook -b html -o bog bog.xml
	collateindex.pl -g -i stikord  -o stikord.xml bog/HTML.index
	db2pdf bog.xml; db2pdf bog.xml; db2pdf bog.xml
<---KLIP---------------------------------------------


(Ja der mangler options "-s Symboler -t Stikordsregister" til
collateindex.pl - never mind)


-- 
Peter Toft, Ph.D. sslug@sslug http://pto.linux.dk

  First they ignore you, then they laugh at you, 
  then they fight you, then you win. 
  -- Mahatma Ghandi



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:52 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *