[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: NullPointerException

Subject: Re: NullPointerException
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 22 May 2002 16:45:24 -0400
Re:  NullPointerException
[<normbishop1@xxxxxxxxxxxx>]

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.