Hello,
I want to do that :
======================= main xml file
=======================
<?xml version='1.0' encoding='iso-8859-15'?>
<!DOCTYPE article [
<!ENTITY version "5.0b6">
<!ENTITY % myentities SYSTEM
"./src-cours/C-signaux-entity.xml">
%myentities;
]>
<article xmlns="http://docbook.or
g/ns/docbook"
xmlns l=&qu
ot;http://www.w3.org/
1999/xlink"
xmlns:mml="http://www.w
3.org/1998/Math/MathML"
xmlns i=&qu
ot;http://www.w3.o
rg/2001/XInclude"
version="5.0" xml:lang="fr">
<xi:include xmlns i='http://www.w3.org/200
1/XInclude' encoding="ISO-8859-15"
href="./src-cours/C-signaux-articleinfo.xml"/>
</article>
======================= =======================
And in my : ./src-cours/C-signaux-articleinfo.xml i have
some entity ...
============= ./src-cours/C-signaux-articleinfo.xml
=============
<info xmlns="http://docbook.or
g/ns/docbook"
version="5.0"><title>BTS-IRIS] Les
signaux</title>
<author><personname><firstname>Bruno</f
irstname><surname>Guégan</surname></person
name></author>
<authorinitials>BG</authorinitials>
<copyright>
<year>&years;</year>
...
...
======================= =======================
The problem is that &years; is define in my
./src-cours/C-signaux-entity.xml
but its don't work :
Error on line 6 column 15 of
file:/home/bruno/Travail/DocBook5.0/C-prog_systeme_linux/C-s
ignaux-classiques/src-cours/C-signaux-articleinfo.xml:
Error reported by XML parser: The entity "years"
was referenced, but not
declared.
I use :
java -cp
"/usr/share/java/xslthl.jar:/usr/share/java/saxon.jar:/
home/bruno/Travail/DocBook5.0/libs/docbook-xsl-1.71.1/extens
ions/saxon65.jar:/usr/share/java/xercesImpl.jar"
-Dxslthl.config=file:///home/bruno/Travail/DocBook5.0/libs/d
ocbook-xsl-1.71.1/highlighting/xslthl-config.xml
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces
.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.
SAXParserFactoryImpl
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.ap
ache.xerces.parsers.XIncludeParserConfiguration
com.icl.saxon.StyleSheet -o
/home/bruno/Travail/DocBook5.0/_out/C-signaux/fo/C-signaux.f
o
C-signaux.xml
/home/bruno/Travail/DocBook5.0/styles/_mystyle_fo.xsl
Any ideas ?
Best regards,
Bruno
--
Celui qui ne prévoit pas les choses lointaines s'expose à
des malheurs
prochains.
Confucius
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|