Tom is probably still the point man, but just in case,
I have added to the CC list all the XSLTC contacts that we used in the past.

Ivelin

----- Original Message -----
From: "Jeremy Quinn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 7:41 AM
Subject: XSLTC Problems


> Dear All,
>
> As soon as XSLTC was switched on by default, I had to switch it off!
>
> I have a stylesheet that work fine with xalan, but does not work in
> XSLTC, to whom, and how, should I report this?
>
> The culprit :
>
> <?xml version="1.0"?>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>
>
>
> <xsl:variable name="int-links"
> select="/doc/meta/link[@rel='section-link']|/doc/meta/
> link[@rel='chapter-link']"/>
>
> <!-- places int-link elements in sections with labels, with href
> pointing to next section, skipping chapters, or to the beginning, if
> there are no more sections -->
> <xsl:template match="section[@link]">
> <xsl:variable name="link" select="concat('#',@link)"/>
> <xsl:variable name="to"
> select="$int-links[@href=$link]/following-sibling::link[@rel='section-
> link'][position()=1]"/>
> <section region="{@region}" label="{@label}">
> <int-link name="{@link}">
> <xsl:attribute name="href">
> <xsl:choose>
> <xsl:when test="$to"><xsl:value-of select="$to/@href"/></xsl:when>
> <xsl:otherwise><xsl:value-of
> select="$int-links[1]/@href"/></xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> <xsl:attribute name="title">
> <xsl:choose>
> <xsl:when test="$to"><xsl:value-of
> select="$to/@title"/></xsl:when>
> <xsl:otherwise><xsl:value-of
> select="$int-links[1]/@title"/></xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> </int-link>
> <xsl:apply-templates/>
> </section>
> </xsl:template>
>
> <!-- places int-link elements in chapters with labels, with href
> pointing to next chapter, or section, if there are no more chapters -->
> <xsl:template match="chapter[@link]|menu[@link]|image[@link]">
> <xsl:variable name="link" select="concat('#',@link)"/>
> <xsl:variable name="to"
> select="$int-links[@href=$link]/following-sibling::*[position()=1]"/>
> <xsl:copy>
> <xsl:attribute name="type"><xsl:value-of
> select="@type"/></xsl:attribute>
> <xsl:attribute name="label"><xsl:value-of
> select="@label"/></xsl:attribute>
> <int-link name="{@link}">
> <xsl:attribute name="href">
> <xsl:choose>
> <xsl:when test="$to"><xsl:value-of select="$to/@href"/></xsl:when>
> <xsl:otherwise><xsl:value-of
> select="$int-links[1]/@href"/></xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> <xsl:attribute name="title">
> <xsl:choose>
> <xsl:when test="$to"><xsl:value-of
> select="$to/@title"/></xsl:when>
> <xsl:otherwise><xsl:value-of
> select="$int-links[1]/@title"/></xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> </int-link>
> <xsl:apply-templates/>
> </xsl:copy>
> </xsl:template>
>
> <xsl:template match="link[@rel='chapter-link']">
> <link href="{@href}" rel="Chapter" title="{@title}"/>
> </xsl:template>
>
> <xsl:template match="link[@rel='section-link']"/>
>
>    <xsl:template match="@*|node()"
> priority="-2"><xsl:copy><xsl:apply-templates
> select="@*|node()"/></xsl:copy></xsl:template>
>    <xsl:template match="text()" priority="-1"><xsl:value-of
> select="."/></xsl:template>
>
> </xsl:stylesheet>
>
>
> This appears to be the reported error:
>
> root cause
>
> java.lang.VerifyError: (class: make_chapter_links$4, method: test
> signature:
> (IIIILorg/apache/xalan/xsltc/runtime/AbstractTranslet;Lorg/apache/
> xalan/xsltc/NodeIterator;)Z) Incompatible argument to function
> at make_chapter_links.applyTemplates()
> at make_chapter_links.applyTemplates()
> at make_chapter_links.applyTemplates()
> at make_chapter_links.transform()
> at
> org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTransl
> et.java:540)
> at
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.ja
> va:635)
>
> regards Jeremy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to