This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Re: Xref is only supported to listitems in an orderedlist


> * Michael Smith <fzvgu@kzy-qbp.bet> [2004-11-17 01:56:48 +0900]:
>
> As far as this bit:
>
>   Xref is only supported to listitems in an orderedlist:
>
> That seems to indicate you're trying to cross-reference an id in
> on and orderedlist element -- <orderedlist id="foo"> and the
> stylesheets are saying you can't do that -- that you need to
> instead cross-reference <listitem id="bar">. Or you need to
> cross-reference the section or para that contains your list.

this message is _also_ a bug in the xsltproc+xsl combination:
when I add

        <xsl:value-of select="$target"/>
        <xsl:value-of select="$target/@xreflabel"/>

to
     <xsl:template match="listitem" mode="object.xref.markup">
in common/gentext.xsl inside

      <xsl:message>
        <xsl:text>Xref is only supported to listitems in an</xsl:text>
        <xsl:text> orderedlist: </xsl:text>
        <xsl:value-of select="@id"/>
        <xsl:value-of select="$target"/>
        <xsl:value-of select="$target/@xreflabel"/>
      </xsl:message>

the error message you quote disappears and everything works as expected.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
I'd give my right arm to be ambidextrous.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]