Hi

I am using DOM4j1.4 with eclipse. I have created an XSLT which works when I test it using XMLSpy. However, when I try with eclipse, it cannot find the name function.

I insert the relevant part of the stylesheet.

 

<xsl:template match="GEOS/REQUEST/*">

                        <xsl:variable name="whichOne" >

                                    <xsl:choose >

                                                <xsl:when test="//*[starts-with(name(),'TPD')]">DELPHI</xsl:when>

                                                <xsl:when test="//*[starts-with(name(),'BX')]">FBL</xsl:when>

                                                <xsl:when test="//*[starts-with(name(),'TPD1')]">AUTH</xsl:when>

                                                <xsl:when test="//*[starts-with(name(),'TPD1')]">DIR</xsl:when>

                                                <xsl:when test="//*[starts-with(name(),'DL')]">COMP</xsl:when>

                                                <xsl:when test="//*[starts-with(name(),'ER')]">ERROR</xsl:when>

                                                <xsl:otherwise >FOOTER</xsl:otherwise>

                                    </xsl:choose>

                        </xsl:variable>

            </xsl:template>

 

tony

Reply via email to