docbook-apps

  • 1.  saxon: docbookV4.5/docbookx.dtd (No such file or directory)

    Posted 03-17-2010 16:30
    Hi there,

    I am trying to understand what so different in how catalog are
    handled in between xsltproc and saxon (I need to be able to use one or
    the other). Basically is the following legal:


    "docbookV4.5/docbookx.dtd" []>

    ...

    I cannot make it work using saxon 6.5.5 on a debian machine. It fails with:

    java -cp /etc/xml/resolver:/usr/share/java/xml-commons-resolver-1.1.jar:/usr/share/java/docbook-xsl-saxon.jar:/usr/share/java/saxon.jar
    com.icl.saxon.StyleSheet -x
    org.apache.xml.resolver.tools.ResolvingXMLReader -y
    org.apache.xml.resolver.tools.ResolvingXMLReader -r
    org.apache.xml.resolver.tools.CatalogResolver -u -o toto in2.xml
    /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
    Error
    Failure reading file:////tmp/in2.xml: /tmp/docbookV4.5/docbookx.dtd
    (No such file or directory)
    Transformation failed: Run-time errors were reported

    However the following is working:


    "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">

    ...


    Looking at the catalog I have:

    $ grep "//OASIS//DTD DocBook XML" /etc/xml/catalog
    <delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"
    catalog="file:///etc/xml/docbook-xml.xml"/>

    $ grep http://www.oasis-open.org/docbook/xml /etc/xml/catalog
    <delegateSystem
    systemIdStartString="http://www.oasis-open.org/docbook/xml/"
    catalog="file:///etc/xml/docbook-xml.xml"/>

    Does this means Saxon does not take into account 'delegatePublic' ?

    Thanks,
    --
    Mathieu



  • 2.  Re: [docbook-apps] saxon: docbookV4.5/docbookx.dtd (No such file or directory)

    Posted 03-17-2010 16:41
    On Wed, Mar 17, 2010 at 9:30 AM, Mathieu Malaterre
    <mathieu.malaterre@gmail.com> wrote:
    > I cannot make it work using saxon 6.5.5 on a debian machine. It fails with:
    >
    > java  -cp /etc/xml/resolver:/usr/share/java/xml-commons-resolver-1.1.jar:/usr/share/java/docbook-xsl-saxon.jar:/usr/share/java/saxon.jar
    > com.icl.saxon.StyleSheet -x
    > org.apache.xml.resolver.tools.ResolvingXMLReader  -y
    > org.apache.xml.resolver.tools.ResolvingXMLReader -r
    > org.apache.xml.resolver.tools.CatalogResolver  -u -o toto in2.xml
    > /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl

    Do you have a CatalogManager.properties file in your CLASSPATH that
    points to your XML Catalog? IIRC, xsltproc always checks
    /etc/xml/catalog by default, but Saxon needs to have it specified.
    More in Bob Stayton's book:
    http://www.sagehill.net/docbookxsl/UseCatalog.html#UsingCatalogsSaxon


    Keith



  • 3.  Re: [docbook-apps] saxon: docbookV4.5/docbookx.dtd (No such file or directory)

    Posted 03-17-2010 16:45
    On Wed, Mar 17, 2010 at 5:40 PM, Keith Fahlgren <abdelazer@gmail.com> wrote:
    > On Wed, Mar 17, 2010 at 9:30 AM, Mathieu Malaterre
    > <mathieu.malaterre@gmail.com> wrote:
    >> I cannot make it work using saxon 6.5.5 on a debian machine. It fails with:
    >>
    >> java  -cp /etc/xml/resolver:/usr/share/java/xml-commons-resolver-1.1.jar:/usr/share/java/docbook-xsl-saxon.jar:/usr/share/java/saxon.jar
    >> com.icl.saxon.StyleSheet -x
    >> org.apache.xml.resolver.tools.ResolvingXMLReader  -y
    >> org.apache.xml.resolver.tools.ResolvingXMLReader -r
    >> org.apache.xml.resolver.tools.CatalogResolver  -u -o toto in2.xml
    >> /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
    >
    > Do you have a CatalogManager.properties file in your CLASSPATH that
    > points to your XML Catalog? IIRC, xsltproc always checks
    > /etc/xml/catalog by default, but Saxon needs to have it specified.
    > More in Bob Stayton's book:
    > http://www.sagehill.net/docbookxsl/UseCatalog.html#UsingCatalogsSaxon

    I believe the file is loaded properly, except the matching does not
    work in one case. Here is the output when I set verbosity:

    # cat /etc/xml/resolver/CatalogManager.properties
    catalogs=/etc/xml/catalog
    relative-catalogs=yes
    verbosity=99
    prefer=system
    static-catalog=yes
    allow-oasis-xml-catalog-pi=yes

    This leads to:

    Parse catalog: /etc/xml/catalog
    Loading catalog: /etc/xml/catalog
    Default BASE: file:/etc/xml/catalog
    delegatePublic: ISO 8879:1986//ENTITIES
    file:///etc/xml/sgml-data.xml
    DELEGATE_PUBLIC: ISO 8879:1986//ENTITIES
    file:/etc/xml/sgml-data.xml
    delegateSystem: /usr/share/sgml/dtd/svg
    file:///etc/xml/sgml-data.xml
    DELEGATE_SYSTEM: /usr/share/sgml/dtd/svg
    file:/etc/xml/sgml-data.xml
    delegateSystem: http://docbook.org/xml/
    file:///etc/xml/docbook-xml.xml
    DELEGATE_SYSTEM: http://docbook.org/xml/
    file:/etc/xml/docbook-xml.xml
    delegatePublic: -//OASIS//ELEMENTS DocBook
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//OASIS//ELEMENTS DocBook
    file:/etc/xml/docbook-xml.xml
    delegateSystem: http://docbook.org/xml/5
    file:///etc/xml/docbook5-xml.xml
    DELEGATE_SYSTEM: http://docbook.org/xml/5
    file:/etc/xml/docbook5-xml.xml
    delegatePublic: -//OASIS//DTD DocBook XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//OASIS//DTD DocBook XML
    file:/etc/xml/docbook-xml.xml
    delegateSystem: /usr/share/sgml/dtd/qaml-xml.dtd
    file:///etc/xml/sgml-data.xml
    DELEGATE_SYSTEM: /usr/share/sgml/dtd/qaml-xml.dtd
    file:/etc/xml/sgml-data.xml
    delegatePublic: -//GlobalTransCorp//DTD XML Catalogs V1.0-Based
    Extension V1.0//EN
    file:///etc/xml/xml-core.xml
    DELEGATE_PUBLIC: -//GlobalTransCorp//DTD XML Catalogs V1.0-Based
    Extension V1.0//EN
    file:/etc/xml/xml-core.xml
    delegatePublic: -//OASIS//DTD XML Exchange Table Model 19990315
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//OASIS//DTD XML Exchange Table Model 19990315
    file:/etc/xml/docbook-xml.xml
    delegateURI: http://docbook.sourceforge.net/release/xsl/
    file:///etc/xml/docbook-xsl.xml
    DELEGATE_URI: http://docbook.sourceforge.net/release/xsl/
    file:/etc/xml/docbook-xsl.xml
    delegateSystem: http://globaltranscorp.org/oasis/catalog/xml/tr9401.dtd
    file:///etc/xml/xml-core.xml
    DELEGATE_SYSTEM: http://globaltranscorp.org/oasis/catalog/xml/tr9401.dtd
    file:/etc/xml/xml-core.xml
    delegatePublic: -//W3C//DTD SVG
    file:///etc/xml/sgml-data.xml
    DELEGATE_PUBLIC: -//W3C//DTD SVG
    file:/etc/xml/sgml-data.xml
    delegateSystem: http://docbook.sourceforge.net/release/xsl-ns/
    file:///etc/xml/docbook-xsl-ns.xml
    DELEGATE_SYSTEM: http://docbook.sourceforge.net/release/xsl-ns/
    file:/etc/xml/docbook-xsl-ns.xml
    delegatePublic: -//Norman Walsh//DTD DocBook XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Norman Walsh//DTD DocBook XML
    file:/etc/xml/docbook-xml.xml
    delegatePublic: -//OASIS//DTD DocBook XML 5
    file:///etc/xml/docbook5-xml.xml
    DELEGATE_PUBLIC: -//OASIS//DTD DocBook XML 5
    file:/etc/xml/docbook5-xml.xml
    delegateSystem: http://xml.ascc.net/xml/resource/qaml-xml
    file:///etc/xml/sgml-data.xml
    DELEGATE_SYSTEM: http://xml.ascc.net/xml/resource/qaml-xml
    file:/etc/xml/sgml-data.xml
    delegatePublic: -//OASIS//ENTITIES DocBook
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//OASIS//ENTITIES DocBook
    file:/etc/xml/docbook-xml.xml
    delegatePublic: +//ISBN 82-7640-023//DTD Frequently Asked Questions//EN
    file:///etc/xml/sgml-data.xml
    DELEGATE_PUBLIC: +//ISBN 82-7640-023//DTD Frequently Asked Questions//EN
    file:/etc/xml/sgml-data.xml
    delegateURI: http://docbook.sourceforge.net/release/xsl-ns/
    file:///etc/xml/docbook-xsl-ns.xml
    DELEGATE_URI: http://docbook.sourceforge.net/release/xsl-ns/
    file:/etc/xml/docbook-xsl-ns.xml
    delegatePublic: +//IDN faq.org//DTD Frequently Asked Questions
    file:///etc/xml/sgml-data.xml
    DELEGATE_PUBLIC: +//IDN faq.org//DTD Frequently Asked Questions
    file:/etc/xml/sgml-data.xml
    delegateSystem: http://www.w3.org/Graphics/SVG/1.1/
    file:///etc/xml/sgml-data.xml
    DELEGATE_SYSTEM: http://www.w3.org/Graphics/SVG/1.1/
    file:/etc/xml/sgml-data.xml
    delegatePublic: -//Norman Walsh//DTD CALS Table Model XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Norman Walsh//DTD CALS Table Model XML
    file:/etc/xml/docbook-xml.xml
    delegatePublic: -//Norman Walsh//ELEMENTS DocBk XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Norman Walsh//ELEMENTS DocBk XML
    file:/etc/xml/docbook-xml.xml
    delegateSystem: http://docbook.sourceforge.net/release/xsl/
    file:///etc/xml/docbook-xsl.xml
    DELEGATE_SYSTEM: http://docbook.sourceforge.net/release/xsl/
    file:/etc/xml/docbook-xsl.xml
    delegatePublic: -//OASIS//DTD XML Catalogs V1.0//EN
    file:///etc/xml/xml-core.xml
    DELEGATE_PUBLIC: -//OASIS//DTD XML Catalogs V1.0//EN
    file:/etc/xml/xml-core.xml
    delegateSystem:
    http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd
    file:///etc/xml/xml-core.xml
    DELEGATE_SYSTEM:
    http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd
    file:/etc/xml/xml-core.xml
    delegateSystem: http://www.w3.org/TR/2001/REC-SVG-20010904/
    file:///etc/xml/sgml-data.xml
    DELEGATE_SYSTEM: http://www.w3.org/TR/2001/REC-SVG-20010904/
    file:/etc/xml/sgml-data.xml
    delegatePublic: -//Norman Walsh//DTD DocBk XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Norman Walsh//DTD DocBk XML
    file:/etc/xml/docbook-xml.xml
    delegatePublic: -//Norman Walsh//ENTITIES DocBk XML
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Norman Walsh//ENTITIES DocBk XML
    file:/etc/xml/docbook-xml.xml
    delegatePublic: -//Normal Walsh//Exchange Table Model 19960430
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//Normal Walsh//Exchange Table Model 19960430
    file:/etc/xml/docbook-xml.xml
    delegateSystem: http://www.oasis-open.org/docbook/xml/
    file:///etc/xml/docbook-xml.xml
    DELEGATE_SYSTEM: http://www.oasis-open.org/docbook/xml/
    file:/etc/xml/docbook-xml.xml
    delegateSystem: http://www.oasis-open.org/docbook/xml/5
    file:///etc/xml/docbook5-xml.xml
    DELEGATE_SYSTEM: http://www.oasis-open.org/docbook/xml/5
    file:/etc/xml/docbook5-xml.xml
    delegatePublic: -//OASIS//DTD DocBook CALS Table Model
    file:///etc/xml/docbook-xml.xml
    DELEGATE_PUBLIC: -//OASIS//DTD DocBook CALS Table Model
    file:/etc/xml/docbook-xml.xml
    resolveURI(in2.xml)
    resolveURI(in2.xml)
    Resolved URI: in2.xml
    file:////tmp/in2.xml
    resolveURI(/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl)
    resolveURI(/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl)
    Resolved URI: /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
    resolveURI(../VERSION)
    Resolved URI: ../VERSION
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/VERSION
    resolveURI(param.xsl)
    Resolved URI: param.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/param.xsl
    resolveURI(../lib/lib.xsl)
    Resolved URI: ../lib/lib.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/lib/lib.xsl
    resolveURI(../common/l10n.xsl)
    Resolved URI: ../common/l10n.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/l10n.xsl
    resolveURI(../common/common.xsl)
    Resolved URI: ../common/common.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/common.xsl
    resolveURI(../common/utility.xsl)
    Resolved URI: ../common/utility.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/utility.xsl
    resolveURI(../common/labels.xsl)
    Resolved URI: ../common/labels.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/labels.xsl
    resolveURI(../common/titles.xsl)
    Resolved URI: ../common/titles.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/titles.xsl
    resolveURI(../common/subtitles.xsl)
    Resolved URI: ../common/subtitles.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/subtitles.xsl
    resolveURI(../common/gentext.xsl)
    Resolved URI: ../common/gentext.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/gentext.xsl
    resolveURI(../common/olink.xsl)
    Resolved URI: ../common/olink.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/olink.xsl
    resolveURI(../common/targets.xsl)
    Resolved URI: ../common/targets.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/targets.xsl
    resolveURI(../common/pi.xsl)
    Resolved URI: ../common/pi.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/pi.xsl
    resolveURI(autotoc.xsl)
    Resolved URI: autotoc.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/autotoc.xsl
    resolveURI(autoidx.xsl)
    Resolved URI: autoidx.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/autoidx.xsl
    resolveSystem(file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/entities.ent)
    resolveURI(lists.xsl)
    Resolved URI: lists.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/lists.xsl
    resolveURI(callout.xsl)
    Resolved URI: callout.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/callout.xsl
    resolveURI(verbatim.xsl)
    Resolved URI: verbatim.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/verbatim.xsl
    resolveURI(graphics.xsl)
    Resolved URI: graphics.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/graphics.xsl
    resolveURI(xref.xsl)
    Resolved URI: xref.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/xref.xsl
    resolveURI(formal.xsl)
    Resolved URI: formal.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/formal.xsl
    resolveURI(table.xsl)
    Resolved URI: table.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/table.xsl
    resolveURI(../common/table.xsl)
    Resolved URI: ../common/table.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/table.xsl
    resolveURI(htmltbl.xsl)
    Resolved URI: htmltbl.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/htmltbl.xsl
    resolveURI(sections.xsl)
    Resolved URI: sections.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/sections.xsl
    resolveURI(inline.xsl)
    Resolved URI: inline.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/inline.xsl
    resolveSystem(file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/entities.ent)
    resolveURI(footnote.xsl)
    Resolved URI: footnote.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/footnote.xsl
    resolveURI(fo.xsl)
    Resolved URI: fo.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/fo.xsl
    resolveURI(fo-rtf.xsl)
    Resolved URI: fo-rtf.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/fo-rtf.xsl
    resolveURI(info.xsl)
    Resolved URI: info.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/info.xsl
    resolveURI(keywords.xsl)
    Resolved URI: keywords.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/keywords.xsl
    resolveURI(division.xsl)
    Resolved URI: division.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/division.xsl
    resolveURI(index.xsl)
    Resolved URI: index.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/index.xsl
    resolveURI(toc.xsl)
    Resolved URI: toc.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/toc.xsl
    resolveURI(refentry.xsl)
    Resolved URI: refentry.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/refentry.xsl
    resolveURI(math.xsl)
    Resolved URI: math.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/math.xsl
    resolveURI(admon.xsl)
    Resolved URI: admon.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/admon.xsl
    resolveURI(component.xsl)
    Resolved URI: component.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/component.xsl
    resolveURI(biblio.xsl)
    Resolved URI: biblio.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/biblio.xsl
    resolveURI(biblio-iso690.xsl)
    Resolved URI: biblio-iso690.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/biblio-iso690.xsl
    resolveURI(glossary.xsl)
    Resolved URI: glossary.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/glossary.xsl
    resolveSystem(file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/entities.ent)
    resolveURI(block.xsl)
    Resolved URI: block.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/block.xsl
    resolveURI(task.xsl)
    Resolved URI: task.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/task.xsl
    resolveURI(qandaset.xsl)
    Resolved URI: qandaset.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/qandaset.xsl
    resolveURI(synop.xsl)
    Resolved URI: synop.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/synop.xsl
    resolveURI(titlepage.xsl)
    Resolved URI: titlepage.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.xsl
    resolveURI(titlepage.templates.xsl)
    Resolved URI: titlepage.templates.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xsl
    resolveURI(pagesetup.xsl)
    Resolved URI: pagesetup.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/pagesetup.xsl
    resolveURI(pi.xsl)
    Resolved URI: pi.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/pi.xsl
    resolveURI(spaces.xsl)
    Resolved URI: spaces.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/spaces.xsl
    resolveURI(ebnf.xsl)
    Resolved URI: ebnf.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/ebnf.xsl
    resolveURI(../html/chunker.xsl)
    Resolved URI: ../html/chunker.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunker.xsl
    resolveURI(annotations.xsl)
    Resolved URI: annotations.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/annotations.xsl
    resolveURI(../common/stripns.xsl)
    Resolved URI: ../common/stripns.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/common/stripns.xsl
    resolveURI(fop.xsl)
    Resolved URI: fop.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/fop.xsl
    resolveURI(fop1.xsl)
    Resolved URI: fop1.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/fop1.xsl
    resolveURI(passivetex.xsl)
    Resolved URI: passivetex.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/passivetex.xsl
    resolveURI(xep.xsl)
    Resolved URI: xep.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/xep.xsl
    resolveURI(axf.xsl)
    Resolved URI: axf.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/axf.xsl
    resolveURI(ptc.xsl)
    Resolved URI: ptc.xsl
    file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/ptc.xsl
    resolveSystem(file:////tmp/docbookV4.5/docbookx.dtd)
    resolvePublic(-//OASIS//DTD DocBook XML
    V4.5//EN,file:////tmp/docbookV4.5/docbookx.dtd)


    Thx
    --
    Mathieu



  • 4.  Re: [docbook-apps] saxon: docbookV4.5/docbookx.dtd (No such file or directory)

    Posted 03-17-2010 16:54
    On Wed, Mar 17, 2010 at 9:45 AM, Mathieu Malaterre
    <mathieu.malaterre@gmail.com> wrote:
    > I believe the file is loaded properly, except the matching does not
    > work in one case. Here is the output when I set verbosity:
    >
    > # cat /etc/xml/resolver/CatalogManager.properties
    > catalogs=/etc/xml/catalog
    > relative-catalogs=yes
    > verbosity=99
    > prefer=system
    > static-catalog=yes
    > allow-oasis-xml-catalog-pi=yes

    From your catalog file, it looks like you may want prefer=public. Does
    that change the behavior?


    Keith



  • 5.  Re: [docbook-apps] saxon: docbookV4.5/docbookx.dtd (No such file or directory)

    Posted 03-17-2010 17:00
    On Wed, Mar 17, 2010 at 5:54 PM, Keith Fahlgren <abdelazer@gmail.com> wrote:
    > On Wed, Mar 17, 2010 at 9:45 AM, Mathieu Malaterre
    > <mathieu.malaterre@gmail.com> wrote:
    >> I believe the file is loaded properly, except the matching does not
    >> work in one case. Here is the output when I set verbosity:
    >>
    >> # cat /etc/xml/resolver/CatalogManager.properties
    >> catalogs=/etc/xml/catalog
    >> relative-catalogs=yes
    >> verbosity=99
    >> prefer=system
    >> static-catalog=yes
    >> allow-oasis-xml-catalog-pi=yes
    >
    > From your catalog file, it looks like you may want prefer=public. Does
    > that change the behavior?

    D'oh !
    I actually *did* read this file, but I simply discarded this option.

    Thanks and sorry for the noise,
    --
    Mathieu



  • 6.  Public/System doctype IDs misbehaving in Eclipse output (1.73)

    Posted 03-17-2010 22:59
    Hi all,

    I'm trying to generate eclipse help, and am running into an odd problem.


    I can define either chunker.output.doctype-public OR
    chunker.output.doctype-system as seen below, and everything works with
    the exception of a malformed doctype statement.

    <xsl:param name="chunker.output.doctype-public">-//W3C//DTD XHTML 1.0
    Transitional//EN</xsl:param>
    <xsl:param
    name="chunker.output.doctype-system">http://www.w3.org/TR/xhtml1/DTD/xht
    ml1-transitional.dtd</xsl:param>

    If I try defining them *both*, however, they get inserted into the
    plugin.xml and toc.xml in addition to all the html files. This breaks
    the plugin.

    Any clues on why this is happening?

    Thanks,
    Jeff.




  • 7.  RE: [docbook-apps] Public/System doctype IDs misbehaving in Eclipse output (1.73)

    Posted 03-18-2010 01:28
    I was never able to get around that (but I don't think it occurred to me
    to ask here). I ended up post-processing the plugin.xml and toc.xml
    files to remove the doctype.

    I'll be interested in hearing if there's a right way. I have a vague
    idea/memory that this is a saxon thing.

    David




  • 8.  Re: [docbook-apps] Public/System doctype IDs misbehaving in Eclipse output (1.73)

    Posted 03-18-2010 14:15
    On Wed, Mar 17, 2010 at 6:27 PM, David Cramer <dcramer@motive.com> wrote:
    > I was never able to get around that (but I don't think it occurred to me
    > to ask here). I ended up post-processing the plugin.xml and toc.xml
    > files to remove the doctype.
    >
    > I'll be interested in hearing if there's a right way. I have a vague
    > idea/memory that this is a saxon thing.

    I ran into the same problem with the ePub stylesheets. Under the hood,
    this uses the template named "write.chunk". From a quick look at the
    SVN trunk, I think you'd want to add two paramaters to the call to
    write.chunk that generates these files and overrides the doctype
    you're setting elsewhere:

    Index: eclipse.xsl
    ===================================================================
    --- eclipse.xsl (revision 8582)
    +++ eclipse.xsl (working copy)
    @@ -114,6 +114,8 @@
    <xsl:with-param name="encoding" select="'utf-8'"/>
    <xsl:with-param name="indent" select="'yes'"/>
    <xsl:with-param name="quiet" select="$chunk.quietly"/>
    + <xsl:with-param name="doctype-public" select="''"/>
    + <xsl:with-param name="doctype-system" select="''"/>
    <xsl:with-param name="content">
    <xsl:choose>

    @@ -207,6 +209,8 @@
    <xsl:with-param name="encoding" select="'utf-8'"/>
    <xsl:with-param name="indent" select="'yes'"/>
    <xsl:with-param name="quiet" select="$chunk.quietly"/>
    + <xsl:with-param name="doctype-public" select="''"/>
    + <xsl:with-param name="doctype-system" select="''"/>
    <xsl:with-param name="content">
    <plugin name="{$eclipse.plugin.name}"
    id="{$eclipse.plugin.id}"


    ...that said, I've never used the Eclipse output, so this is just a
    guess based on what is in SVN...



    Keith



  • 9.  RE: [docbook-apps] Public/System doctype IDs misbehaving in Eclipse output (1.73)

    Posted 03-18-2010 19:12
    That addressed the problem quite nicely, thank you very much. I would
    have been groping for that for quite a while.




  • 10.  RE: [docbook-apps] Public/System doctype IDs misbehaving in Eclipse output (1.73)

    Posted 03-19-2010 20:12
    Spoke a little too soon on this one; the change took care of the problem
    in html output, it remains stubbornly persistent in xhtml.

    Interestingly, if I pass a value to doctype-public and doctype-system
    when generating the plugin, the values are reproduced, but if I try
    passing the parameters as blank values, the global values are used.

    I'm going to keep picking at this, but any further suggestions would be
    welcome.

    Thanks,
    Jeff.