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=13601>.
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=13601

Unknown error in XPath Cause: java.lang.NullPointerException

           Summary: Unknown error in XPath Cause:
                    java.lang.NullPointerException
           Product: XalanJ2
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Part of xml in input:
<cd:concept name="currency code">
   <cd:definition>Abbreviation of the currency (e. g. : USD, EUR, GBP, CAD, AUD,
JPY, ...).
This abbreviation is managed with the code ISO 4217.
In ebXml, it corresponds to AmountCurrencyIdentificationCodeType.</cd:definition>
  <cd:labels-list>
    <cd:labels lang="us">
       <cd:usual>Currency code</cd:usual>
    </cd:labels>
    <cd:labels lang="fr">
       <cd:usual>Code monnaie</cd:usual>
     </cd:labels>
   </cd:labels-list>
   <cd:system-name>currency code</cd:system-name>
   <cd:constraints>The abbreviation name is limited to 3
characters.</cd:constraints>
   <cd:bdt-decl>
&lt;xs:simpleType name="CurrencyCodeBDT"&gt;
  &lt;xs:restriction base="xs:string"&gt;
    &lt;xs:maxLength value="3"/&gt;
  &lt;/xs:restriction&gt;
&lt;/xs:simpleType&gt;
    </cd:bdt-decl>
</cd:concept>

xsl code that throws the exception:
<xsl:variable name="decl" select="$concept/cd:bdt-decl"/>
Notice, the following code does *not* throw the exception !!!
<xsl:message>concept <xsl:value-of select="$concept/cd:bdt-decl"/></xsl:message>

Reply via email to