IBM Support

PM08083: THE [XSL:]INHERIT-NAMESPACES ATTRIBUTE HAS NO EFFECT IN AN XSLT STYLESHEET

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An XSLT stylesheet contains an instruction that constructs an
    element node that specifies an [xsl:]inherit-namespaces
    attribute with value "yes", but in the serialized result any
    child elements of that element node have namespace
    undeclarations for namespace prefixes that were in scope for
    that element node.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of the IBM WebSphere Application  *
    *                  Server v7.0 Feature Pack for XML 1.0.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: An XSLT stylesheet contains an          *
    *                      instruction that constructs an          *
    *                      element node that specifies an          *
    *                      [xsl:]inherit-namespaces attribute      *
    *                      with value "yes", but in the            *
    *                      serialized result any child elements    *
    *                      of that element node have namespace     *
    *                      undeclarations for namespace            *
    *                      prefixes that were in scope for that    *
    *                      element node.                           *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this APAR. *
    ****************************************************************
    If an XSLT stylesheet contains an xsl:output declaration with
    version attribute equal to "1.1" and undeclare-prefixes
    attribute equal to "yes", and the [xsl:]inherit-namespaces
    attribute is specified anywhere in the stylesheet with value
    "no", the processor applies that setting of the
    [xsl:]inherit-namespaces attribute in constructing every
    element node.  This is true even of elements constructed with
    an explicit setting of the [xsl:]inherit-namespaces attribute
    with the value "yes".
    
    The problem can also be detected by examining the namespace
    nodes in a temporary tree that was constructed with similar
    settings of the [xsl:]inherit-namespaces attribute, regardless
    of any xsl:output declaration in the stylesheet.
    

Problem conclusion

  • The XSLT processor optimizes its processing for the case where
    the [xsl:]inherit-namespaces attribute is never specified in a
    stylesheet or it is only specified in the stylesheet with the
    value "yes".  If the stylesheet contains an
    [xsl:]inherit-namespaces attribute with the value "no", the
    processor was attempting to disable that optimization, but
    due to an error in the logic of the processor, that actually
    disabled all handling of the [xsl:]inherit-namespaces attribute
    with a value of "yes".
    
    The problem was fixed by having the processor take into
    account the setting of the [xsl:]inherit-namespaces attribute
    on each element node that is constructed.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 1.0.0.3. 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

    PM08083

  • 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-02-19

  • Closed date

    2010-03-03

  • Last modified date

    2010-03-03

  • 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