docbook-apps

  • 1.  RE: [docbook-apps] Imagedata and XInclude

    Posted 11-06-2007 12:44
    OK - does "empty" mean that there should be another wrapper that wraps the MathML code?

    I am assuming that "empty" does not mean "nothing", as that would be senseless?


    ________________________________

    From: Dave Pawson [mailto:davep@dpawson.co.uk]
    Sent: Tue 11/6/2007 1:53 AM
    To: Nelson, Dean
    Cc: docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Imagedata and XInclude



    Nelson, Dean wrote:
    > Greetings!
    > I am puzzled by the benign error that I get in validating XIncluded
    > content with Oxygen. Here is the section of code:
    >
    > <equation >
    > <mediaobject>
    > <imageobject>
    > <imagedata align="center">
    > <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    > href="EEC-Math-template.xml"/>
    > </imagedata>
    > </imageobject>
    > </mediaobject>
    > </equation>
    >
    > and I get the following error in validation:
    >
    > SystemID: C:\doc\userman\xml\EEC-Section-Template.xml
    > Location: 300:12
    > Description: The content of element type "imagedata" must match "EMPTY".

    Take a look at the schema.
    The imagedata element *must* be empty.

    regards




    --
    Dave Pawson
    XSLT, XSL-FO and Docbook FAQ
    http://www.dpawson.co.uk <http://www.dpawson.co.uk/>






  • 2.  Re: [docbook-apps] Imagedata and XInclude

    Posted 11-06-2007 13:24
    Dear Dean,

    Place the caret on imagedata
    Contextual menu (right click on Windows, CTRL+click on Mac)
    Select the last entry: Show Definition

    should get you to




    The ho parameter entity is defined as



    So, the content of imagedata is empty as in nothing.

    Best Regards,
    George
    ---------------------------------------------------------------------
    George Cristian Bina - http://aboutxml.blogspot.com/
    <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
    http://www.oxygenxml.com


    Nelson, Dean wrote:
    > OK - does "empty" mean that there should be another wrapper that wraps the MathML code?
    >
    > I am assuming that "empty" does not mean "nothing", as that would be senseless?
    >
    >
    > ________________________________
    >
    > From: Dave Pawson [mailto:davep@dpawson.co.uk]
    > Sent: Tue 11/6/2007 1:53 AM
    > To: Nelson, Dean
    > Cc: docbook-apps@lists.oasis-open.org
    > Subject: Re: [docbook-apps] Imagedata and XInclude
    >
    >
    >
    > Nelson, Dean wrote:
    >> Greetings!
    >> I am puzzled by the benign error that I get in validating XIncluded
    >> content with Oxygen. Here is the section of code:
    >>
    >> <equation >
    >> <mediaobject>
    >> <imageobject>
    >> <imagedata align="center">
    >> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    >> href="EEC-Math-template.xml"/>
    >> </imagedata>
    >> </imageobject>
    >> </mediaobject>
    >> </equation>
    >>
    >> and I get the following error in validation:
    >>
    >> SystemID: C:\doc\userman\xml\EEC-Section-Template.xml
    >> Location: 300:12
    >> Description: The content of element type "imagedata" must match "EMPTY".
    >
    > Take a look at the schema.
    > The imagedata element *must* be empty.
    >
    > regards
    >
    >
    >
    >
    > --
    > Dave Pawson
    > XSLT, XSL-FO and Docbook FAQ
    > http://www.dpawson.co.uk <http://www.dpawson.co.uk/>
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



  • 3.  Re: [docbook-apps] Imagedata and XInclude

    Posted 11-06-2007 14:01
    Nelson, Dean wrote:
    > OK - does "empty" mean that there should be another wrapper that wraps the MathML code?
    >
    > I am assuming that "empty" does not mean "nothing", as that would be senseless?

    Which version of DocBook you are using 4.x or 5.0? MathML embedded
    inside imagedata is supported only in 5.0.

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------