Re: Processing external data entities

Subject: Re: Processing external data entities
From: W. Eliot Kimber <eliot@xxxxxxxxxx>
Date: Thu Mar 27 10:57:43 1997 EST
At 06:55 PM 3/26/97 -0500, Tony Graham wrote:
>David Megginson writes:
> > but, as far as I can tell, there is no way to get at the entity's
> > contents in the following:
> > 
> >   <listing>
> >    &code;
> >   </listing>

The entity should be available as an extdata node in the content property
of the Listing element.  Here is the relevant section from the SGML
property set (taken from the HyTime TC draft):

<classdef rcsnm=element conprop=content clause="73000">

[... propdefs omitted for clarity]

<propdef subnode rcsnm=content datatype=nodelist
ac="datachar sdata element pelement extdata subdoc pi msignch ignrs
    ignre repos usemap uselink entstart entend ssep comdcl msstart
    msend ignmrkup"
clause="76001">

Here are the properties of the extdata node:


<classdef rcsnm=extdata appnm="external data"
fullnm="reference to external data" clause="a5500">
<desc>
The result of referencing an external data entity.

<propdef rcsnm=entname appnm="entity name" datatype=string
strnorm=entity clause="a5101">

<propdef irefnode rcsnm=entity datatype=node ac=entity clause="94410">

Thus, from the extdata node you can get the entname and from there the
properties of the entity, just a you would for an ENTITY attribute reference.

Cheers,

E.

Current Thread