OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] xi:include publisher


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
hamilton@xmlpress.net



On Jun 26, 2015, at 11:24, Peter Fleck <peterfleck@gmail.com> 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: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]