DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16583>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16583 <xsl:attribute-set name="attrs"> ... </xsl:attribute-set> ------- Additional Comments From [EMAIL PROTECTED] 2003-07-23 00:26 ------- My test-case here... The below stylesheet causes java.lang.NullPointerException during stylesheet compilation (to Translet) when i use Xalan-J version 2.4.1. But there is no problem when i use stylesheet directly (not Translet). (Not tested with Xalan-J 2.5.x) <?xml version="1.0" encoding="euc-kr"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xslt" exclude-result-prefixes="xalan" > <xsl:output indent="yes" method="html" media-type="text/html" encoding="euc-kr" omit-xml-declaration="yes" xalan:indent-amount="4" xalan:omit-meta-tag="yes" /> . . . <xsl:template match="input"> <xsl:choose> <xsl:when test="@type='hidden'"> <xsl:element name="input" use-attribute-sets="inputattrs"/> <!--xsl:element name="input"> <xsl:attribute name="name"> <xsl:value-of select="@name"/> </xsl:attribute> <xsl:attribute name="type"> <xsl:value-of select="@type"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="@value"/> </xsl:attribute> </xsl:element--> </xsl:when> <xsl:otherwise> <p> <xsl:value-of select="@title"/> <xsl:text>:</xsl:text> <xsl:element name="input" use-attribute-sets="inputattrs"> <!--xsl:element name="input"> <xsl:attribute name="name"> <xsl:value-of select="@name"/> </xsl:attribute> <xsl:attribute name="type"> <xsl:value-of select="@type"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="@value"/> </xsl:attribute> <xsl:attribute name="maxlength"> <xsl:value-of select="@maxlength"/> </xsl:attribute> <xsl:attribute name="mode"> <xsl:choose> <xsl:when test="@format = 'N'"> <xsl:text>1</xsl:text> </xsl:when> <xsl:otherwise> <xsl:value-of select="@format"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:element--> </p> </xsl:otherwise> </xsl:choose> </xsl:template> . . . <xsl:attribute-set name="inputattrs"> <xsl:attribute name="name"> <xsl:value-of select="@name"/> </xsl:attribute> <xsl:attribute name="type"> <xsl:value-of select="@type"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="@value"/> </xsl:attribute> </xsl:attribute-set> </xsl:stylesheet>
