IBM Support

PM41717: A RECURSIVE FUNCTION REFERENCE IN XSLT OR XQUERY MAY RESULT IN AN ERROR THAT THE FUNCTION IS NOT OF THE EXPECTED TYPE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a stylesheet function in an XSLT stylesheet or a user-
    defined function in an XQuery query calls itself recursively,
    the processor sometimes reports a prepare-time error that
    indicates that the type of the recursive function call is not
    of the type expected in the context in which it was used.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the XML API for IBM WebSphere      *
    *                  Application Server V8.0                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: A recursive function reference in an    *
    *                      XSLT stylesheet or XQuery query         *
    *                      expression sometimes results in a       *
    *                      static error indicating that the type   *
    *                      of the recursive function call is not   *
    *                      of the expected type.                   *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this APAR. *
    ****************************************************************
    As the processor analyzes an XSLT stylesheet or XQuery
    query expression, it tries to determine the type of value that
    each function defined by the stylesheet or query will return.
    In the case of a recursive reference to a function, the
    processor temporarily assumes the function would return a
    value with the Sequence Type xs:anyType.  However, a value of
    that type would not be permitted in certain operations, and
    so, if the recursive function reference appears in such an
    operation, such as a boolean expression, the processor
    will report an error indicating that the operand is not of the
    expected type.
    

Problem conclusion

  • The problem was resolved by having the processor assume a more
    general Sequence Type of item()* for recursive references to
    functions.  All values have a type that is a subtype of
    item()*, so static analysis of the result of a function
    reference will always indicate that the result of the recursive
    function can be used in the context in which it appears,
    including expressions like boolean expressions.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.1.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM41717

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-15

  • Closed date

    2011-06-15

  • Last modified date

    2011-06-28

  • APAR is sysrouted FROM one or more of the following:

    PM32675

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 October 2021