This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NullPointerException


normbishop1@netscape.net wrote:
> 
> 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>')">
You can't use "<" within attribute value, see xml spec, that should be 
escaped, e.g.:

<xsl:if test="contains(. ,'&lt;sub&gt;')">

Anyway I don't understand how node string value could contain "<sub>" 
substring, the only way I can imagine is CDATA sections, do you have them?

-- 
Oleg Tkachenko
Multiconn International, Israel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]