Arunkumar Halebid wrote:
Hello,

* In the xsl I set the output method to text. Within the style sheet I am trying to include some string also as output, apart from node values of the input xml.

* I do not see any text output in the resulting transformation. Where am I doing a mistake?
Sorry, my explanations were too short !


<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"> <xsl:output method="text" indent="no"/>

<xsl:template match="/Model/MOC">
         <xsl:choose>
                <xsl:when test="normalize-space(text())='MOC1'"><xsl:text>Class       
 </xsl:text>
                        <xsl:value-of select="text()"/>
                        <xsl:apply-templates select="attrName"/>
                </xsl:when>
        <!-- <xsl:otherwise><xsl:text>Error in :</xsl:text><xsl:value-of 
select="node()"/></xsl:otherwise> -->
        </xsl:choose>
</xsl:template>
</xsl:stylesheet>

--
--------------------------------------------------------------------
   Eric PAILLEAU |  NUMLOG               |   Tel : +33(0)130791616
   [EMAIL PROTECTED]  |  http://www.numlog.fr |   Fax : +33(0)130819286
--------------------------------------------------------------------

Reply via email to