Hi all,

I building an XSP Java logicsheet, and use the following constructs:

    <xsl:template match="*" mode="ctrl-mode">
        <xsp:logic>
            <xsl:apply-templates select="@*" mode="ctrl-mode"/>
            this.contentHandler.startElement(
                      "<xsl:value-of select="namespace-uri(.)"/>",
                      "<xsl:value-of select="local-name(.)"/>",
                      "<xsl:value-of select="name(.)"/>",
                      xspAttr);
            xspAttr.clear();
            <xsl:apply-templates select="text()|*" mode="ctrl-mode"/>
            this.contentHandler.endElement(
                      "<xsl:value-of select="namespace-uri(.)"/>",
                      "<xsl:value-of select="local-name(.)"/>",
                      "<xsl:value-of select="name(.)"/>");
        </xsp:logic>
    </xsl:template>

    <xsl:template match="text()" mode="ctrl-mode">
        <xsp:logic>
                // snip...
        </xsp:logic>
    </xsl:template>

    <xsl:template match="@*" mode="ctrl-mode">
        <!-- Filter out namespace declaration attributes -->
        <xsp:logic>
            tempValue="<xsl:value-of select="."/>";
            // snip...
            xspAttr.addAttribute(
              "<xsl:value-of select="namespace-uri(.)"/>",
              "<xsl:value-of select="local-name(.)"/>",
              "<xsl:value-of select="name(.)"/>",
              "CDATA",
              tempValue
            );
        </xsp:logic>
    </xsl:template>


What I am observing is that the text() nodes are never matched, even thought
the source file clearly includes text in the nested elements. Nested
elements and attributes are processed as expected.

Has a

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.

Reply via email to