docbook-apps

  • 1.  local.l10n.xml working in the xslt 2.0 stylesheets?

    Posted 07-20-2012 03:04
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi there,
    Using the latest xslt 2.0 stylesheets, I've added the following to my
    customization layer for html output:

    <xsl:param name="local.l10n.xml" select="document('')"/>
    <i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    <l:l10n
    xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
    language="en"
    english-language-name="English">
    <l:context name="xref">
    <l:template name="section" text="%t"/>
    </l:context>
    </l:l10n>
    </i18n>

    Surprisingly, it doesn't seem to have any effect. Is this feature
    working for anyone else?

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

    iQEcBAEBAgAGBQJQCMqwAAoJEMHeSXG7afUhPX4H/iwiwPCDY6UHIE6mMKOgLzbM
    rcCKMJZvW6fnD7CvGHbyvkdqG9vWXCyfu0lAAtUwMO4oQ5Xj97c50jPd3O95LV1i
    n/cBO+UJsgd0AruGbMjgPIrYOukqSTB79NtlITLWiuMKMSe4hqzemtMD646cdLFv
    CSqlZKswVCf31u59Sop8oUgo6RBJYQFSi5N8kVTUeaX2nJRalEiIdUdW2VOsveZn
    5CrvV63QXQ425fFg7VFLA5LDW/ON4s2rv/vdbArUCSy4pX+OTny21mzqNVUv5xa3
    WZHSwFrW/uiF9PkEU7eXaSycIdWcA0yoPxZqNw/3lsi3XA0sOpEA/Rn9AMSdlHA=
    =YFh1
    -----END PGP SIGNATURE-----



  • 2.  Re: [docbook-apps] local.l10n.xml working in the xslt 2.0 stylesheets?

    Posted 07-20-2012 18:30
    On 07/19/2012 10:04 PM, David Cramer wrote:
    > Hi there,
    > Using the latest xslt 2.0 stylesheets, I've added the following to my
    > customization layer for html output:
    >
    > <xsl:param name="local.l10n.xml" select="document('')"/>
    > <i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    > <l:l10n
    > xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
    > language="en"
    > english-language-name="English">
    > <l:context name="xref">
    > <l:template name="section" text="%t"/>
    > </l:context>
    > </l:l10n>
    > </i18n>
    >
    > Surprisingly, it doesn't seem to have any effect. Is this feature
    > working for anyone else?

    Btw., the entire customization layer is here:

    https://github.com/rackspace/clouddocs-maven-plugin/blob/webhelpwar/src/main/resources/cloud/war/docbook.xsl

    David



  • 3.  Re: [docbook-apps] local.l10n.xml working in the xslt 2.0 stylesheets?

    Posted 07-20-2012 21:31
    On 20.7.2012 5:04, David Cramer wrote:

    > <l:context name="xref">
    >
    > Surprisingly, it doesn't seem to have any effect. Is this feature
    > working for anyone else?

    There are two other contexts for xrefs -- "xref-number" and
    "xref-number-and-title". Are you sure that your customization sets
    parameters in a way that "xref" context is invoked?

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




  • 4.  Re: [docbook-apps] local.l10n.xml working in the xslt 2.0 stylesheets?

    Posted 07-21-2012 15:52
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 07/20/2012 04:31 PM, Jirka Kosek wrote:
    > There are two other contexts for xrefs -- "xref-number" and
    > "xref-number-and-title". Are you sure that your customization sets
    > parameters in a way that "xref" context is invoked?

    So, the in the contexts xref-number and xref-number-and-title, the
    entry for section does not contain the phrase "the section called".
    Also, to clinch it, if I edit en.xml and change only the entry for
    section in the xref context, it works, but if I put the gentext stuff
    in my customization layer [1], it doesn't.

    Is it working for you? If so, I'll keep digging in my customization
    layer. I'd be surprised if such a basic thing were broken in the xsls
    though. Someone else would certainly have run across it.

    Thanks,
    David

    https://github.com/rackspace/clouddocs-maven-plugin/blob/webhelpwar/src/main/resources/cloud/war/docbook.xsl

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

    iQEcBAEBAgAGBQJQCtAtAAoJEMHeSXG7afUhbBkIAIM/SYj/iKjrPsqz9UYhrX2C
    HAHirtdusCLKJM0ElxAEddkpvRUKBepOXPrNGImgWHDFGJSpLHqhsZnq9Rs0gW6T
    9uF6TkYISoAq4+6DegOFC56g5JkceeVKB/cagRB5TNkrZgSNkqks9/kAzvNS1Onu
    kRfVuKw/Ka7d0wwX+CHK65tpORHEAisPiG5KXMeAwRMiAhxECoDT3/Khx4TdX3xC
    /VE0pdDvlyatVMznyrwPIIBQOSwjJ1po1TjS1gCj56Zm2yu46YCPUiuFrNmdGrIg
    qiHCbYmARLeSWwZ4BsVrpLymMgQGl5uduAY0iTUzO/OKIDw8c70aSmbM1ZsZSvg=
    =arxE
    -----END PGP SIGNATURE-----