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] | [List Home]


Subject: Re: Xref is only supported to listitems in an orderedlist:


On Thu, Feb 18, 2010 at 4:48 PM, Mathieu Malaterre
<mathieu.malaterre@gmail.com> wrote:
> hi,
>
>  I am trying to track down an error reported during the xsltproc
> transformation:
>
> ...
> Xref is only supported to listitems in an orderedlist:
> ...
>
> What I do not understand is that xmllint does not report any issue. Is
> there a way for me to print out the line number where this error occur
> in my input XML document.
> Steps:
>
>  xsltproc --stringparam keep.relative.image.uris 1 --xinclude
> /usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunkfast.xsl
> input.xml
>
> Validation step does not return any error:
> xmllint --xinclude --postvalid --noout --nonet input.xml

I found out this is caused by something like:


      <itemizedlist>
        <listitem>
          <para><anchor id="myidx"/>bla</para>
        </listitem>
      </itemizedlist>
    <xref linkend="myidx"/>

what I do not understand is that the error message is incapable of
displaying any context information or line number to help me find the
missing xreflabel attribute...

the XSL is:

$ cat docbook-xsl/common/gentext.xsl
...
      <xsl:message>
        <xsl:text>Xref is only supported to listitems in an</xsl:text>
        <xsl:text> orderedlist: </xsl:text>
        <xsl:value-of select="@id|@xml:id"/>
      </xsl:message>

Thanks for suggestions,
-- 
Mathieu


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