Hi Richard,
JIng gives me error: element "publisher" not allowed here; expected
element .... and a long list.
I was using xsltproc
The start of the publisher.xml file is:
<?xml version='1.0' encoding='UTF-8'?>
<publisher xmlns='http://docbook.org/ns/docbook'
xmlns:svg='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:xi='http://www.w3.org/2001/XInclude' version="5.1"
xml:lang="en" xml:id="publisher">
It works fine for <legalnotice> which gets included in the output,
publisher does not.
So I have
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude" version="5.1" xml:lang="en"
xml:id="idname">
<info>
<title>Book Title</title>
<subtitle>Subtitle</subtitle>
<author>
<personname>
<firstname>Bob</firstname>
<surname>Smith</surname>
</personname>
</author>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="http://......./publisher.xml">
<xi:fallback>Publisher Missing</xi:fallback>
</xi:include>
Thanks,
Peter
On 26/06/15 20:30, Richard Hamilton wrote:
Hi Peter,
What error did you get and what software were you using to do the includes?
Best regards,
Richard Hamilton
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
[email protected]
On Jun 26, 2015, at 11:24, Peter Fleck <[email protected]> wrote:
HI,
I moved our common xml files to a webserver and now publisher does not get
included.
I'm using the following syntax:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="http://..../publisher.xml"/>
It works great for <legalnotice>, for <colophon> etc and it worked when the
file was local (though that doesn't mean it was correct).
Is it because <publisher> is not a block item? Is there a better way of including the
common <publisher> across documents?
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]