Hi,

I'm trying to do some XMLTransform operations and am getting the 
following error:

javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: "with-param" attribute is not 
allowed on the xsl:call-template element!
A [Transformer] object cannot be created that satisfies the 
configuration requested. This could be due to a failure in compiling 
the [XSL] text. javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: "with-param" attribute is not 
allowed on the xsl:call-template element!

But I'm not doing any with-param call (though I'd like to). Here's the 
XSL:

<xsl:transform version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >

<xsl:template match="menu">
   <table>
           <xsl:apply-templates select="item" />
   </table>
</xsl:template>

<xsl:param name="isAuthenticated">yes</xsl:param>
<xsl:param name="sectionID">profile</xsl:param>
<xsl:param name="pageID">profile</xsl:param>

<xsl:variable name="imageRoot">/student/images/nav/</xsl:variable>

<xsl:template match="item">
        <xsl:choose>
                <xsl:when test="(requiresAuthentication = 'yes') and 
($isAuthenticated = 'yes') and (sectionID = @pageID)">
                    <xsl:call-template name="menuItem" />
                </xsl:when>
                <xsl:when test="(requiresAuthentication = 'yes') and 
($isAuthenticated = 'yes') and ($sectionID = sectionID)">
                    <xsl:call-template name="menuItem" />
                </xsl:when>
                <xsl:when test="(requiresAuthentication = 'no') and ($isAuthenticated 
= 'yes') and ($sectionID = sectionID)">
                    <xsl:call-template name="menuItem" />
                </xsl:when>
                <xsl:when test="(requiresAuthentication = 'no') and ($isAuthenticated 
= 'yes') and (sectionID = @pageID)">
                    <xsl:call-template name="menuItem" />
                </xsl:when>
                <xsl:when test="(requiresAuthentication = 'no') and ($isAuthenticated 
= 'no')">
                    <xsl:call-template name="menuItem" />
                </xsl:when>
        </xsl:choose>
</xsl:template>

<xsl:template name="menuItem">
        <tr>
                <td>
        <xsl:choose>
                <xsl:when test="$pageID = @pageID">
             <img>
             <xsl:attribute name="src"><xsl:value-of 
select="$imageRoot"/><xsl:value-of 
select="image"/>_on.gif</xsl:attribute>
             <xsl:attribute name="alt"><xsl:value-of 
select="alternateText"/></xsl:attribute>
             <xsl:attribute name="name"><xsl:value-of 
select="imageName"/></xsl:attribute>
             <xsl:attribute name="id"><xsl:value-of 
select="imageName"/></xsl:attribute>
             <xsl:attribute name="border">0</xsl:attribute>
             </img>
                </xsl:when>
                <xsl:when test="$pageID != @pageID">
                        <a>
                        <xsl:attribute name="href">/student/<xsl:value-of 
select="link" 
/></xsl:attribute>
                        <xsl:attribute 
name="OnMouseOut">MM_swapImgRestore()</xsl:attribute>
                        <xsl:attribute name="OnMouseOver">MM_swapImage('<xsl:value-of 
select="imageName"/>','','<xsl:value-of 
select="$imageRoot"/><xsl:value-of 
select="image"/>_over.gif',1)</xsl:attribute>
             <img>
             <xsl:attribute name="src"><xsl:value-of 
select="$imageRoot"/><xsl:value-of select="image"/>.gif</xsl:attribute>
             <xsl:attribute name="alt"><xsl:value-of 
select="alternateText"/></xsl:attribute>
             <xsl:attribute name="name"><xsl:value-of 
select="imageName"/></xsl:attribute>
             <xsl:attribute name="id"><xsl:value-of 
select="imageName"/></xsl:attribute>
             <xsl:attribute name="border">0</xsl:attribute>
             </img>
                        </a>
                </xsl:when>
        </xsl:choose>
        </td>
        </tr>
</xsl:template>
</xsl:transform>

Any ideas?

--
Howard Fore, [EMAIL PROTECTED]
Trust but verify: "Yeah, I backed up the hard drive."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to