IBM Support

PM47658: INCORRECT STRING VALUE FOR AN ELEMENT CONSTRUCTED AND VALIDATED IN XSLT OR XQUERY, IF THE ELEMENT CONTAINS A COMMENT OR PI

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If an element node that is constructed in an XSLT stylesheet
    or XQuery expression contains a comment node or a processing
    instruction node, and is validated against a schema type with
    simple content, the string value of the validated node is
    incorrect.  The string value of the validated element will
    consist of only the text that precedes the first comment or
    processing node child of the element, rather than all of the
    text children in the element.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: If an XSLT stylesheet or an XQuery      *
    *                      expression constructs and validates a   *
    *                      tree, and some element in that tree     *
    *                      has a type with simple content and      *
    *                      also has a child node that is comment   *
    *                      node or processing instruction node,    *
    *                      the string value of the node, as        *
    *                      returned by the fn:string function or   *
    *                      other operations that return the        *
    *                      string value of a node, might not       *
    *                      contain all the text content of the     *
    *                      element.                                *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    The method in the processor that returns the string value of
    an element node checks whether the node has a type that has
    simple content.  If it does, the method returns the string
    value of the first child of that element node.  However, if
    the element also has comment node or processing instruction
    node children, that causes the method to return only the
    portion of the text that precedes the first such comment node
    or processing instruction node child.
    

Problem conclusion

  • The problem was fixed by checking whether an element node
    whose type has simple content has a single text node child.
    If it does, the string value of the text node child is
    returned as the string value of the element node; otherwise,
    the string values of all the text node children of the element
    are concatenated to produce the string value of the element
    node.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.2.  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

    PM47658

  • 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-09-12

  • Closed date

    2011-10-18

  • Last modified date

    2011-10-18

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

    PM47431

  • 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

       UP

[{"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:
28 October 2021