This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: NullPointerException
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 22 May 2002 16:45:24 -0400
- Subject: Re: [xsl] NullPointerException
- References: <061A0B81.5596A90E.503A7C16@netscape.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
[<normbishop1@netscape.net>]
Thanks Wendell,
You are right! FOP NullPointerException errors are extremely unhelpful. I
did try to create the xml page using the command line parser. This time it
complained about that the xml file not being well-formed, even though the
.fo file is. Not sure how that can happen. If I would remove the code
below then every thing is fine. Does it make any sense to you?
<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:if test="contains(. ,'<sub>')">
<fo:inline baseline-shift="super" font-size=".75em">
<xsl:text>FOUND SUPER </xsl:text>
</fo:inline>
</xsl:if>
</xsl:copy>
</xsl:template>
[Tom P]
This template is not well-formed. You have to escape the "<" in the xsl:if
test. That's why the processor is complaining.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list