Re: [Refdb-users] User feedback 3
Status: Beta
Brought to you by:
mhoenicka
|
From: David N. <dav...@bi...> - 2004-03-02 08:06:40
|
Hi Markus,
> > refdbxml -s Eur.J.Pharmacol.html.xsl -t html basic-doc.xml
> > Error at xsl:with-param on line 74 of
> > file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-html/docbk-refdb-html.xsl:
> > Variable ADVSTURLSTYLE has not been declared
>
>This is a typo in docbk-refdb-html.xsl. Change this to ADVSURLSTYLE
>(without the 'T' after ADVS). I'm not an XSLT guru but fixing this
>might fix the other error messages as well. This does not exactly
>explain why xsltproc does not complain, though. I've fixed this in CVS
>anyway.
>
>
I'm afraid it does not fix the following messages. Here is the current
error output:
$ make html
refdbxp -t db31x < basic-doc.short.xml > basic-doc.xml
runbib -d refs_computing -S Eur.J.Pharmacol. -t db31x basic-doc.xml
5 reference(s) formatted, 0 failed
refdbxml -s Eur.J.Pharmacol.html.xsl -t html basic-doc.xml
Error at xsl:choose on line 1826 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
Element must only be used within a template body
Error at xsl:with-param on line 1828 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1831 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1834 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1837 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1840 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1843 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1846 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1849 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1852 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1855 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1858 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1861 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1864 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1867 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1870 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1873 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1876 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1879 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1882 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1885 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1888 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1891 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1894 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1897 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1900 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1903 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1906 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1909 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1912 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1915 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1918 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1921 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1924 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1927 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Error at xsl:with-param on line 1930 of
file:/usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl:
xsl:with-param cannot appear as a child of xsl:when
Transformation failed: Failed to compile stylesheet. 36 errors detected.
The situations it reports are accurate. The template starting at line
1821 _is_ the only template where <xsl:choose> appears in a different
location to all the others. It also appears to be the only template
where xsl:withparam _is_ a direct child of xsl:when.
A representative snippet of the "non-erroring" templates:
<xsl:template match="bibliomset[@relation='seditor']" mode="refdb">
<xsl:variable name="reftype" select="ancestor::bibliomixed/@role"/>
<xsl:choose> <--- **
<xsl:when test="$reftype='ABST'">
<xsl:call-template name="refdb-process-inline"> <--**
<xsl:with-param name="style" select="$ABSTSEDITORLISTSTYLE"/>
</xsl:call-template>
</xsl:when>
The "erroring" template:
<xsl:template match="ulink" mode="refdb">
<xsl:variable name="reftype" select="ancestor::bibliomixed/@role"/>
<xsl:variable name="target" select="@url"/>
<a href='#{$target}'>
<xsl:call-template name="refdb-literal">
<xsl:choose> <--**
<xsl:when test="$reftype='ABST'">
<xsl:with-param name="style" select="$ABSTURLSTYLE"/> <--**
</xsl:when>
What Saxon is saying about this part of the stylesheet is certainly
true. I don't know enough about xsl to know whether this stylesheet is
strictly legal. If this xsl is strictly legal and Saxon is mistakenly
choking on it, then I'll need to raise this issue on the Saxon forums.
It is, however, possible that Saxon is picking up malformed xsl that
xsltproc is happy to live with. In that case, this stylesheet needs to
be corrected.
Without knowing anything about xsl, I attempted to use xslint to check
the offending stylesheet. It output a vast number of cryptic error
messages and I quickly abandoned that line of inquiry. Of course, I may
have invoked it incorrectly or something. It will require someone with
more xsl knowledge than I currently possess to decide on this
styleheet's correctness.
Regards,
David.
|