docbook-apps

  • 1.  Re: [docbook-apps] DocBook XSL 1.79.2 released

    Posted 12-16-2016 01:15
    Good questions ;-)

    I downloaded the file "docbook-xsl-nons-1.79.2.zip" from
    https://github.com/docbook/xslt10-stylesheets/releases

    I have a template that pulls the docbook xsl version ($VERSION) variable
    out and displays it (along with other info).

    ---
    <xsl:message>
    <xsl:text>DocBook XSL VERSION is: </xsl:text>
    <xsl:value-of select="$VERSION"/> <xsl:text>
    </xsl:text>
    <xsl:text>XSLT Version: </xsl:text> <xsl:value-of select="system-property(
    'xsl:version' ) "/>
    <xsl:text> XSLT Processor: </xsl:text> <xsl:value-of
    select="system-property( 'xsl:vendor' ) "/>
    </xsl:message>
    ---

    This $VERSION is coming from the distribution. It looks like it is from
    VERSION.xsl:

    <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>

    and then fm:version is set

    <fm:Version>snapshot</fm:Version>


    Regards,
    Dean Nelson


    In a message dated 12/15/2016 4:41:30 P.M. Pacific Standard Time,
    stefan@seefeld.name writes:

    On 15.12.2016 19:37, DeanNelson@aol.com wrote:
    > Stefan,
    > Sorry about the mislead. It is actually is the $VERSION that is
    > "snapshot". I am also using the nons version,
    > I don't know where $VERSION is actually generated - maybe version.xsl?
    > I think it is formatted from something else, buty I may be wrong.
    Same question: in what location do you see that value of $VERSION ? (And
    are you sure you are looking at package files from the 1.79.2 release,
    not a more recent snapshot build ?)

    Stefan

    --

    ...ich hab' noch einen Koffer in Berlin...





  • 2.  Re: [docbook-apps] DocBook XSL 1.79.2 released

    Posted 12-16-2016 01:30
    On 15.12.2016 20:14, DeanNelson@aol.com wrote:
    > Good questions ;-)
    >
    > I downloaded the file "docbook-xsl-nons-1.79.2.zip" from
    > https://github.com/docbook/xslt10-stylesheets/releases
    >
    > I have a template that pulls the docbook xsl version ($VERSION)
    > variable out and displays it (along with other info).
    >
    > ---
    > <xsl:message>
    > <xsl:text>DocBook XSL VERSION is: </xsl:text>
    > <xsl:value-of select="$VERSION"/> <xsl:text>
    > </xsl:text>
    > <xsl:text>XSLT Version: </xsl:text> <xsl:value-of
    > select="system-property( 'xsl:version' ) "/>
    > <xsl:text> XSLT Processor: </xsl:text> <xsl:value-of
    > select="system-property( 'xsl:vendor' ) "/>
    > </xsl:message>
    > ---
    >
    > This $VERSION is coming from the distribution. It looks like it is
    > from VERSION.xsl:
    >
    > <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
    >
    > and then fm:version is set
    >
    > <fm:Version>snapshot</fm:Version>

    I'm not sure how meaningful that is. In fact, I'm not sure the
    VERSION.xsl file should actually be part of a package. (It is right now
    being used by the build process, but as I have been working hard to
    simplify that, I'm actually considering to get rid of that file. There
    is a lot of obsolete logic in it.

    (I can reproduce your findings, though: the 'nons' VERSION.xsl file
    reports 'snapshot', while the one from the namespace package reports
    '1.79.2'. I'm confident that the stylesheets correspond to the correct
    version, though, so I recommend to disregard the content of the
    VERSION.xsl file. (We may want to think about some other way to
    represent package metadata, if that is important. But I'd definitely
    argue against using an XSL file to carry that. :-) )

    Meanwhile, feel free to submit an issue about 'snapshot' being reported
    in VERSION.xsl, so we can make sure the error either gets fixed or the
    file removed from future releases.

    Thanks,
    Stefan

    --

    ...ich hab' noch einen Koffer in Berlin...