IBM Support

PM10599: SHOULD COLLAPSE WHITESPACES IN LIST TYPE WITH STAX FLAVOR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Schema Part 2 section 4.3.6 has:
    whiteSpace is applicable to all atomic and list datatypes.
    For all atomic datatypes other than string (and types
    derived by restriction from it) the value of whiteSpace is
    collapse and cannot be changed by a schema author;....
    For all datatypes derived by list the value of whiteSpace
    is collapse and cannot be changed by a schema author.
    
    STAX flavor is using XLXP parser which doesn't support
    validation, so it uses ValidatorHandler to do validation.
    However the chars fired by character events don't have
    whitespace collapsed.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of the IBM WebSphere Application  *
    *                  Server v7.0 Feature Pack for XML 1.0        *
    ****************************************************************
    * PROBLEM DESCRIPTION: Running a transformation in StAX        *
    *                      flavor, whitespaces are not collapsed   *
    *                      for list types                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Running xpath20 test schematreatas20_657 in stax flavors,
    should return text nodes with a space as separator, but got
    result with whitespaces including line return, tab, spaces in
    between the text nodes.
    

Problem conclusion

  • Schema Part 2 section 4.3.6 has:
    whiteSpace is applicable to all ?atomic? and ?list? datatypes.
    For all ?atomic? datatypes other than string (and types
    ?derived? by ?restriction? from it) the value of whiteSpace is
    collapse and cannot be changed by a schema author;....
    For all datatypes ?derived? by ?list? the value of whiteSpace
    is collapse and cannot be changed by a schema author.
    
    STAX flavor is using XLXP parser which doesn't support
    validation, so it uses ValidatorHandler to do validation which
    does not collapse whitespaces in characters events.
    
    Wrote a new ContentHandler implementation to collapse
    whitespace in Characters event to handle StAX.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 1.0.0.5. 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

    PM10599

  • Reported component name

    XML FEATUREPACK

  • Reported component ID

    5724J0856

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-23

  • Closed date

    2010-03-26

  • Last modified date

    2010-07-22

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

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

Fix information

  • Fixed component name

    XML FEATUREPACK

  • Fixed component ID

    5724J0856

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022