IBM Support

PM41724: IF AN XSLT STYLESHEET HAS A DTD, THE XML PARSER REPORTS THAT ELEMENTS IN THE STYLESHEET MUST BE DECLARED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If an XSLT stylesheet has a document type definition (DTD) that
    contains entity declarations, the XML parser that processes
    the stylesheet will report errors of the form "Element type
    'xsl:stylesheet' must be declared."
    The processor continues processing the stylesheet correctly.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the XML API for IBM WebSphere      *
    *                  Application Server V8.0                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Errors are reported for an XSLT         *
    *                      stylesheet that has a document type     *
    *                      definition (DTD) that contains only     *
    *                      entity declarations.                    *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this APAR. *
    ****************************************************************
    The XSLT processor configures the XML parser it uses to parse
    an XSLT stylesheet with a feature known as "dynamic
    validation" enabled.  With the dynamic validation feature
    enabled, the parser will only report validation errors if the
    stylesheet has a DTD, but the parser cannot find declarations
    for the elements in the stylesheet in that DTD.  The processor
    will correctly process the stylesheet, despite the error
    messages that the parser reports.
    
    The processor enables the dynamic validation feature on the
    parser along with schema validation.  If the stylesheet
    is actually an input document that contains an xml-stylesheet
    processing instruction, and that processing instruction uses a
    URI fragment to refer to a stylesheet that is embedded within
    the input document, the processor can resolve that URI
    fragment using any attributes of type ID that are in the input
    document.
    

Problem conclusion

  • The problem was resolved by having the XSLT processor connect
    the XML parser it uses to process the stylesheet to a separate
    Validator component.  The Validator component attempts to
    validate the stylesheet against any DTD or schema, so that
    attributes that are of type ID can be identified for use in
    resolving any URI reference in an xml-stylesheet processing
    instruction.  The errors reported by this Validator are
    ignored, and not reported to the user, as they are only
    distracting to the user and not useful.
    
    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

    PM41724

  • 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:

    PM34225

  • 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