docbook-apps

  • 1.  Getting a list of Docbook Block Level elements --can the following xpath gather a block-level list from the xsd?

    Posted 01-06-2012 11:04
    Hi,

    I've been googling now for a while trying to get a complete list of
    block-level elements for docbook but thus far haven't found it easy to come
    across. Anyone know what the list is or where to find it?

    Would the following xpath get all the block-level elements from the
    docbook.xsd or is it too inclusive?

    //xs:element[exists(descendant::xs:element)]/@name

    I just went on the assumption that a block level element would have another
    element with it however I'm not familiar enough with docbook to know if the
    resulting list which clearly contains a lot of block-level elements is
    accurate.

    Regards


    --
    Alex Muir
    Instructor | Program Organizer - University Technology Student Work
    Experience Building
    University of the Gambia
    http://sites.utg.edu.gm/alex/<https://sites.google.com/a/utg.edu.gm/utsweb/>

    Software engineers needed to lecture part-time at UTG for 2012. Please
    contact me if interested.

    Low budget software development benefiting development in the Gambia, West
    Africa
    Experience of a lifetime, come to Gambia and Join UTSWEB -
    http://sites.utg.edu.gm/utsweb/<https://sites.google.com/a/utg.edu.gm/utsweb/>



  • 2.  Re: [docbook-apps] Getting a list of Docbook Block Level elements --can the following xpath gather a block-level list from the xsd?

    Posted 01-06-2012 17:20
    Alex,

    I don't think that this xpath will do what you want, since many inlines allow other inlines as child elements.

    I suggest checking out the DocBook Definitive Guide, which has a section titled: "Logical Divisions: The Categories of Elements in DocBook," which lists the Block and Inline elements.

    The Definitive Guide can be found online at:

    http://docbook.org/tdg/en/html/docbook.html

    Best Regards,
    Richard Hamilton
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net

    On Jan 6, 2012, at 3:04 AM, Alex Muir wrote:

    > Hi,
    >
    > I've been googling now for a while trying to get a complete list of block-level elements for docbook but thus far haven't found it easy to come across. Anyone know what the list is or where to find it?
    >
    > Would the following xpath get all the block-level elements from the docbook.xsd or is it too inclusive?
    >
    > //xs:element[exists(descendant::xs:element)]/@name
    >
    > I just went on the assumption that a block level element would have another element with it however I'm not familiar enough with docbook to know if the resulting list which clearly contains a lot of block-level elements is accurate.
    >
    > Regards
    >
    >
    > --
    > Alex Muir
    > Instructor | Program Organizer - University Technology Student Work Experience Building
    > University of the Gambia
    > http://sites.utg.edu.gm/alex/
    >
    > Software engineers needed to lecture part-time at UTG for 2012. Please contact me if interested.
    >
    > Low budget software development benefiting development in the Gambia, West Africa
    > Experience of a lifetime, come to Gambia and Join UTSWEB - http://sites.utg.edu.gm/utsweb/
    >
    >
    >










  • 3.  Re: [docbook-apps] Getting a list of Docbook Block Level elements --can the following xpath gather a block-level list from the xsd?

    Posted 01-07-2012 15:38
    Thanks Richard, ended up making the following list

    Block Elements:
    CalloutList | ItemizedList | OrderedList | SegmentedList | SimpleList |
    VariableList | Caution | Important | Note | Tip | Warning | Address |
    LiteralLayout | ProgramListing | Screen | ScreenShot | Synopsis | Example |
    InformalExample | Figure | InformalFigure | Table | InformalTable | Para |
    SimPara | FormalPara | Equation | InformalEquation | Figure | ScreenShot |
    Graphic | MediaObject | QandASet | BlockQuote | CmdSynopsis | Epigraph |
    FuncSynopsis | Highlights | MsgSet | Procedure | Sidebar


    Regards

    On Fri, Jan 6, 2012 at 5:20 PM, Richard Hamilton <hamilton@xmlpress.net>wrote:

    > Alex,
    >
    > I don't think that this xpath will do what you want, since many inlines
    > allow other inlines as child elements.
    >
    > I suggest checking out the DocBook Definitive Guide, which has a section
    > titled: "Logical Divisions: The Categories of Elements in DocBook," which
    > lists the Block and Inline elements.
    >
    > The Definitive Guide can be found online at:
    >
    > http://docbook.org/tdg/en/html/docbook.html
    >
    > Best Regards,
    > Richard Hamilton
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    > On Jan 6, 2012, at 3:04 AM, Alex Muir wrote:
    >
    > > Hi,
    > >
    > > I've been googling now for a while trying to get a complete list of
    > block-level elements for docbook but thus far haven't found it easy to come
    > across. Anyone know what the list is or where to find it?
    > >
    > > Would the following xpath get all the block-level elements from the
    > docbook.xsd or is it too inclusive?
    > >
    > > //xs:element[exists(descendant::xs:element)]/@name
    > >
    > > I just went on the assumption that a block level element would have
    > another element with it however I'm not familiar enough with docbook to
    > know if the resulting list which clearly contains a lot of block-level
    > elements is accurate.
    > >
    > > Regards
    > >
    > >
    > > --
    > > Alex Muir
    > > Instructor | Program Organizer - University Technology Student Work
    > Experience Building
    > > University of the Gambia
    > > http://sites.utg.edu.gm/alex/
    > >
    > > Software engineers needed to lecture part-time at UTG for 2012. Please
    > contact me if interested.
    > >
    > > Low budget software development benefiting development in the Gambia,
    > West Africa
    > > Experience of a lifetime, come to Gambia and Join UTSWEB -
    > http://sites.utg.edu.gm/utsweb/
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
    >
    >


    --
    Alex Muir
    Instructor | Program Organizer - University Technology Student Work
    Experience Building
    University of the Gambia
    http://sites.utg.edu.gm/alex/<https://sites.google.com/a/utg.edu.gm/utsweb/>

    Low budget software development benefiting development in the Gambia, West
    Africa
    Experience of a lifetime, come to Gambia and Join UTSWEB -
    http://sites.utg.edu.gm/utsweb/<https://sites.google.com/a/utg.edu.gm/utsweb/>



  • 4.  RE: [docbook-apps] Getting a list of Docbook Block Level elements --can the following xpath gather a block-level list from the xsd?

    Posted 01-07-2012 17:58
    Richard Hamilton [mailto:hamilton@xmlpress.net] wrote:

    > I suggest checking out the DocBook Definitive Guide, which has a
    > section titled: "Logical Divisions: The Categories of Elements in
    > DocBook," which lists the Block and Inline elements.


    Perhaps a better way to characterize that is that the Definitive Guide lists the elements that are usually expected to be presented as blocks. This should match what is output by DocBook XSL. But it is not the only way to handle many DocBook elements.


    *************************
    Rob Cavicchio
    rob.cavicchio@emc.com

    Principal Technical Writer & Information Architect
    Information Intelligence Group
    EMC Corporation

    The opinions expressed here are my personal opinions. Content published here is not read or approved in advance by EMC and does not necessarily reflect the views and opinions of EMC.



  • 5.  Re: [docbook-apps] Getting a list of Docbook Block Level elements --can the following xpath gather a block-level list from the xsd?

    Posted 01-07-2012 19:14
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 01/07/2012 11:57 AM, rob.cavicchio@emc.com wrote:
    > Richard Hamilton [mailto:hamilton@xmlpress.net] wrote:
    >
    >> I suggest checking out the DocBook Definitive Guide, which has a
    >> section titled: "Logical Divisions: The Categories of Elements
    >> in DocBook," which lists the Block and Inline elements.
    >
    >
    > Perhaps a better way to characterize that is that the Definitive
    > Guide lists the elements that are usually expected to be presented
    > as blocks. This should match what is output by DocBook XSL. But it
    > is not the only way to handle many DocBook elements.
    >
    >
    > ************************* Rob Cavicchio rob.cavicchio@emc.com

    Indeed and for some elements it might depend on context. E.g.
    glossterm might be formatted as block when the child of a glossentry
    and inline elsewhere.

    David
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJPCJmQAAoJEMHeSXG7afUhtpsIAIS2uZtUpvIPoihb/TmOvOon
    YPp+F36oK4NS4IiVjRawoH8ssiG7+panfw9vb+FHJ4brV5OtL6ByM58WEuXCg8Tt
    n8GjyhHjhGmcx7CsdCNvF0izOu8rhxFxgfHlSOP/XdtcnUNgYgIx45FrwrRrSN79
    xperL5Ra0injPLsCc9nH8ofou8B9snFF+JjmyueIGUe2x1oZAsVrXRaOlTkkGroF
    xVP7SSySU5DskQnSUQVFVm6iklTY/lonvg+kA/n6xH15qoIxzsbib7DqwDVvyy+M
    8VZIa/wuglKJKd8o+rT+J3EekTxzW3mnUWPdgF1PBXX0bFieTwnopmvhOEc3Jsg=
    =0lr9
    -----END PGP SIGNATURE-----