OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: Re: Problems with Slides3 and saxon

Hash: SHA1

/ Ian Moor <iwm@doc.ic.ac.uk> was heard to say:
|>|>| I have tried to use Slides3.0b2 and saxon and get the error 
|>|>| Error at xsl:variable on line 67 of file:/vol/lab/share/sgml/stylesheets/docbook-xsl-1.56.1/html/chunk.xsl:
|>|>|   Error in expression ($div/preceding-sibling::div|$div/preceding::div|$div/parent::div)[last()]: expected "<name>", found "div"
|>Can you try using Xerces? AElfred seems buggy. (I'm not asserting that
|>that's the problem here, just trying to eliminate a variable.
| I have used Xerces -2_2_0 with saxon and still get the same error message.

Very odd. 3.0b2 and 3.0.0 both work with Saxon and Xalan for me.

|>If you can send me the document that causes this problem, that'd be good too.
| I am using the example file from slides-3.0b2 minimal.xml

And 'plain.xsl' or which stylesheet, exactly?

| I tried using  xalanj_2_4_1  with xerces and get this error:
| file:///homes/iwm/src/slides-3.0b2/xsl/slides-common.xsl; Line 544; Column 57; XSLT Error (javax.xml.transform.TransformerException): Variable accessed before it is bound!

That's just wrong. It might be worth reporting to the Xalan folks.

<xsl:template match="slides" mode="toc">
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>

  <xsl:variable name="home" select="/slides"/>  <!-- *** DEFINED HERE *** -->
  <xsl:variable name="up" select="/slides"/>
  <xsl:variable name="next" select="(foil|foilgroup)[1]"/>
  <xsl:variable name="tocfile" select="''"/>

  <xsl:call-template name="write.chunk">
    <xsl:with-param name="filename" select="concat($base.dir, $toc.html)"/>
    <xsl:with-param name="content">
          <title><xsl:value-of select="slidesinfo/title"/></title>

          <!-- Links -->

          <link type="text/css" rel="stylesheet">
            <xsl:attribute name="href">
              <xsl:call-template name="css.stylesheet"/>

          <xsl:call-template name="links">
            <xsl:with-param name="home" select="$home"/> <!-- *** USED HERE *** -->

Clearly it is bound before it's accessed.

                                        Be seeing you,

- -- 
Norman Walsh <ndw@nwalsh.com>      | Success is relative; it is what we
http://www.oasis-open.org/docbook/ | make of the mess we have made of
Chair, DocBook Technical Committee | things.--T. S. Eliot
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC