Unable to generate JSP output with Xalan -- CORRECTION 2003-04-03 - By Joseph Kesselman
SORRY; I completely misread the question! (I should learn not to fire from the hip when short on sleep.)
The problem you're having is that attribute contents are expected to be text, not elements. XSLT won't let you insert the results of xsl:element (or even a literal result element) inside an xsl:attribute. You have to hand-construct that syntax as text.
Try:
<xsl:attribute name="value"> <xsl:text><getLocalizedResource name="resName":gt;</xsl:text> </xsl:attribute>
______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")
<br><font size=2 face="sans-serif">SORRY; I completely misread the question! (I should learn not to fire from the hip when short on sleep.)</font> <br> <br> <br><font size=2 face="sans-serif">The problem you're having is that attribute contents are expected to be text, not elements. XSLT won't let you insert the results of xsl:element (or even a literal result element) inside an xsl:attribute. You have to hand-construct that syntax as text.</font> <br> <br><font size=2 face="sans-serif">Try:</font> <br> <br><font size=2 face="sans-serif"> <xsl:attribute name=" ;value"></font> <br><font size=2 face="sans-serif"> <xsl:text>&lt ;getLocalizedResource name="resName":gt;</xsl:text></font> <br><font size=2 face="sans-serif"> </xsl:attribute></font> <br> <br> <br> <br><font size=2 face="sans-serif"><br> ______________________________________<br> Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. <br> "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")<br> </font>
|
|