Stylus Studio XML Editor

Table of contents

Appendices

C.5 EntityReference Node Mapping

EntityReference Node Mapping

Infoset to EntityReference Node[top]

Infoset to EntityReference Node

An unexpanded entity reference information item maps to a EntityReference node. The attributes of the corresponding EntityReference node are constructed as follows:

13The table contains the mapping of an Infoset information item to a Node Attribute Value
11Node.nodeName 11The [name] property
11Node.nodeValue 11null
11Node.nodeType 11Node.ENTITY_REFERENCE_NODE
11Node.parentNode 11the [parent] property
11Node.childNodes 11Empty NodeList
11Node.firstChild 11null
11Node.lastChild 11null
11Node.previousSibling 11null
11Node.nextSibling 11null
11Node.attributes 11null
11Node.ownerDocument 11The document information item
11Node.namespaceURI 11null
11Node.prefix 11null
11Node.localName 11null
11Node.baseURI 11The [declaration base URI] property
11Node.textContent 11null (the node has no children)
NOTE: 

The [system identifier] and [public identifier] properties are not exposed through the EntityReference node, but through the Entity node reference from this EntityReference node, if any.

EntityReference Node to Infoset[top]

EntityReference Node to Infoset

An EntityReference node maps to an unexpanded entity reference information item. EntityReference nodes with children (Node.childNodes contains a non-empty list) cannot be represented using the Infoset. The properties of the corresponding unexpanded entity reference information item are constructed as follows:

13The table contains the mapping of a Node to the Infoset Property Value
11[name] 11Node.nodeName
11[system identifier] 11The Entity.systemId value of the Entity node available from Node.ownerDocument.doctype.entities if available
11[public identifier] 11The Entity.publicId value of the Entity node available from Node.ownerDocument.doctype.entities if available
11[declaration base URI] 11Node.baseURI
11[parent] 11Node.parentNode