Project

Profile

Help

The Use of Namespace in saxon-B

Added by Anonymous over 18 years ago

Legacy ID: #3842249 Legacy Poster: oneil (ond1)

Hi, I have studying the code of tinyTree and its use in DOM, however I cannot see where the namespace arrays (namespaceParent and namespaceCode) are used in-terms of dom. Could someone point it out to me. Thanks


Replies (1)

RE: The Use of Namespace in saxon-B - Added by Anonymous over 18 years ago

Legacy ID: #3842848 Legacy Poster: Michael Kay (mhkay)

These arrays hold a representation of the "namespace nodes" of the XDM data model, although the representation is only distantly related to the way XDM describes the model. The "NodeOverNodeInfo" classes which provide a DOM view of a Saxon tree do not currently use this information directly. The DOM interface is supposed to expose namespaces as if they were attributes, but this interface currently doesn't do that - it's a documented restriction. This means you can't currently discover all the namespaces that are declared or in-scope on a particular element through this interface, you can only determine the namespace URI used in the names of specific elements and attributes.

    (1-1/1)

    Please register to reply