List Info

Thread: Entity in db5 with xinclude ...




Entity in db5 with xinclude ...
user name
2006-12-20 11:00:26
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"
         xmlnsl=&qu
ot;http://www.w3.org/
1999/xlink"
         xmlns:mml="http://www.w
3.org/1998/Math/MathML" 
         xmlnsi=&qu
ot;http://www.w3.o
rg/2001/XInclude"
         version="5.0" xml:lang="fr">

<xi:include xmlnsi='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-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )