IV07602: <XSL:KEY/> NOT WORKING IN XSLTC WHEN XML INPUT IS PARSED FROM A JAVA EXTENSION FUNCTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: N/A
    .
    Getting wrong transformation results.
    

Local fix

Problem summary

  • When an XML document is parsed either as input to the
    transformation or using the
    fn:document() the Translet.buildkeys() method will get invoked
    to build key indexes
    in cases where the <xsl:key> element is used. However this is
    not happening for XSLTC
    in situations where the XML document is parsed by a Java
    extension function and
    returned as a W3C Node object thus causing usage of <xsl:key> to
    fail.
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR13
    .
    The solution is to invoke the Translet.buildKeys() in
    BasisLibrary.nodeList2Iterator()
    so we build the key indexes every time we get a DOM from a Java
    extension function.
    This however introduces a performance hit because even if the
    same DOM object is
    received multiple times we would build the key indexes multiple.
    Unlike physical XML
    input files where we can hash by systemid there is currently no
    efficient way of
    differentiating one DOM object from another.
    .
    To obtain the fix:
    Install build 20110917 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV07602

  • Reported component name

    JAVA 5 XML/XSL

  • Reported component ID

    620500126

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-14

  • Closed date

    2011-09-27

  • Last modified date

    2011-09-27

  • 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

    JAVA 5 XML/XSL

  • Fixed component ID

    620500126

Applicable component levels

  • R500 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Runtimes for Java Technology
XML

Software version:

5.0

Reference #:

IV07602

Modified date:

2011-09-27

Translate my page

Machine Translation

Content navigation