docbook-apps

  • 1.  lost in namespaces (and invalid Atom feed)

    Posted 04-07-2009 11:39
    Hello,

    I am trying to produce a simple (mainly) XSLT-based system for
    producing Atom feed (to be published on wordpress.com, but I try
    to be as platform-independent as possible) from Docbook. Current
    state of the project is on
    http://mcepl.fedorapeople.org/tmp/atom-wordpress/

    However, I am confused by http://tinyurl.com/cqw2p8 ...

    How come



    is undefined content element, when it is in well defined
    namespace?

    Could somebody suggest to me some articles on XSLT, Atom and
    namespaces ... all I could find on the xml.com and similar places
    seems to me too simple?

    Thank you very much for any hints.

    Matej Cepl

    P.S.: sorry, for slightly off-topic post to docbook NG, but this
    is part of my project how to write blog in Docbook, so hopefully
    at least somebody might be interested.




  • 2.  Re: [docbook-apps] lost in namespaces (and invalid Atom feed)

    Posted 04-07-2009 17:30
    Matej Cepl wrote:

    > How come
    >
    >

    >
    > is undefined content element, when it is in well defined
    > namespace?

    I think that for XHTML content inside Atom you have to change

    <atom:content type="html" xml:lang="en">

    to

    <atom:content type="xhtml" xml:lang="en">

    IIRC, type="html" expects escaped HTML.

    Jirka

    --
    ------------------------------------------------------------------
    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
    ------------------------------------------------------------------