Subject: [xsl] org.apache.xpath.objects.XRTreeFrag error From: Lepoldo Melo <leopoldosmj@xxxxxxxxxxxx> Date: Sat, 24 Mar 2007 20:55:56 -0700 (PDT) |
Hi everybody, I'm trying to use the XSL code bellow with Xalan 2.5.2 and I'm getting the error described at http://www.biglist.com/lists/xsl-list/archives/200505/msg00391.html. The XRTreeFrag error is on line "". As you can see, I can't avoid to use a tree fragment. Did anyone have this problem? How can I solve it? <xsl:template name="check_identical"> <xsl:param name="comp1"/> <xsl:param name="comp2"/> <xsl:variable name="string1"> <xsl:call-template name="stringify"> <xsl:with-param name="node"> <xsl:copy-of select="$comp1"/> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:variable name="string2"> <xsl:call-template name="stringify"> <xsl:with-param name="node"> <xsl:copy-of select="$comp2"/> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:value-of select="$string1=$string2"/> </xsl:template> <xsl:template name="stringify"> <xsl:param name="node"/> <xsl:for-each select="$node/*/*"> <xsl:choose> <xsl:when test="boolean(local-name())">< <xsl:value-of select="local-name()"/> <xsl:variable name="pos" select="position()"/> <xsl:for-each select="@*"> <xsl:text> </xsl:text> <xsl:value-of select="local-name()"/>="<xsl:value-of select="."/>"</xsl:for-each> <xsl:call-template name="stringify"> <xsl:with-param name="node"> <xsl:copy-of select="."/> </xsl:with-param> </xsl:call-template></ <xsl:value-of select="local-name()"/>></xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space(.)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> Thanks. Leopoldo Melo __________________________________________________ Fale com seus amigos de graga com o novo Yahoo! Messenger http://br.messenger.yahoo.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:include from a jar fi, Michael Kay | Thread | RE: [xsl] org.apache.xpath.objects., Michael Kay |
Re: [xsl] What's your visual metaph, Florent Georges | Date | RE: [xsl] org.apache.xpath.objects., Michael Kay |
Month |