[svn r2144] r2222@freebird: fabien | 2006-08-10 16:47:23 -0400 poesie
authorfabien
Thu, 10 Aug 2006 16:55:06 -0400
branchpoesie
changeset 30 fa0c9cb0ea30
parent 29 812a7a38b95a
child 31 b05681f420f4
[svn r2144] r2222@freebird: fabien | 2006-08-10 16:47:23 -0400 r2216@freebird: fabien | 2006-08-10 16:37:49 -0400 Small correction for correct compilation.
Makefile
alpha.xml
--- a/Makefile	Thu Aug 10 16:54:47 2006 -0400
+++ b/Makefile	Thu Aug 10 16:55:06 2006 -0400
@@ -5,10 +5,17 @@
 
 TOP=$(shell pwd)
 INSTALL_DIR=$(TOP)/install
-SRCS=poetry.xml
+SRCS=poetry.xml 
+
+# Currently, those sections doesn't compiled because of an invalid
+# link references.  I have a similar problem with the nargir source
+# book and ecjdr.  I should find a solutions for this kind of "mixed"
+# (internal|external) links when using xinclude.  Better would be to
+# not used xinclude at all.
+
+SECTIONS=alpha.xml				\
+	chronology.xml
 SRC_DEPS=					\
-	alpha.xml				\
-	chronology.xml				\
 	themes.xml				\
 	abzoodre.xml				\
 	amoureux.xml				\
@@ -91,7 +98,7 @@
 debug:
 	echo $(PRINT_STYLES)
 
-%.fo: %.xml $(PRINT_STYLES) $(SRC_DEPS)
+%.fo: %.xml $(PRINT_STYLES) $(SRC_DEPS) $(SECTIONS)
 	xsltproc --catalogs --xinclude			\
 		-o $@ $(STYLES_DIR)/poetry_print.xsl $<
 
@@ -101,12 +108,12 @@
 	fop $< $@
 #	rm $@.tmp.fo
 
-%.html: %.xml $(HTML_STYLES) $(SRC_DEPS)
+%.html: %.xml $(HTML_STYLES) $(SRC_DEPS) $(SECTIONS)
 	xsltproc --catalogs --xinclude				\
 		--stringparam css-base-dir '/~fabien/styles/'	\
 		-o $@ $(STYLES_DIR)/poetry_html.xsl $<
 
-%/index.html: %.xml $(HTML_STYLES) $(SRC_DEPS)
+%/index.html: %.xml $(HTML_STYLES) $(SRC_DEPS) $(SECTIONS)
 	rm -rf $(dir $@)
 	mkdir -p $(dir $@)
 	xsltproc --catalogs --xinclude				\
--- a/alpha.xml	Thu Aug 10 16:54:47 2006 -0400
+++ b/alpha.xml	Thu Aug 10 16:55:06 2006 -0400
@@ -1,10 +1,11 @@
 <?xml version="1.0"?>
 <!DOCTYPE section PUBLIC "-//Fabien Ninoles//DTD Poetry XML V1.0//EN"
   "http://www.tzone.org/~fabien/dtd/poetry.dtd">
-<section id="salpha" lang="fr"
-  xmlns:xi="http://www.w3.org/2003/XInclude">
+<section id="salpha" lang="fr">
   <title>Index alphabétique</title>
 
+  <para>Ceci est l'index alphabétique de mes poèmes.</para>
+
   <section id="A">
     <title>A</title>
     <list>