RE: Hypergroves

Subject: RE: Hypergroves
From: Avi Kivity <Avi@xxxxxxxxxxxxx>
Date: Tue, 23 Feb 1999 11:31:15 +0200
On Tuesday, February 23, 1999 06:42, Russell Steven Shawn O'Connor
[SMTP:roconnor@xxxxxxxxxxxxxxxxxxxxxxxxx] wrote:
> On Sun, 21 Feb 1999, Avi Kivity wrote:
> 
> > This is commonly used in conjunction with ENTITY attributes.
> > It works very well with Jade.
> 
> Is there an attribute type to refer specifically to an element in
> another
> SGML by ID, or do I want to do a a pair
> filename ENTITY
> ref	 NMTOKEN <!--obviously ID won't work here-->
> 

Here's an example:

-- DTD --
...
<!element acl.index         - -   (chapter*)>
<!element chapter           - o   empty>

<!attlist chapter
    chapter     entity      #required
>
...
-- Document --
<!doctype acl.index public "-//Avionitek//DTD ACL Index//EN" [

<!entity com2.21 system "AirConditioning(2-21).sgml" subdoc> 
<!-- replace with 'public "..."' if you like -->
<!entity com2.49 system "APU(2-49).sgml" subdoc>
<!entity com2.52 system "Doors(2-52).sgml" subdoc>
...
]>
<acl.index>
<chapter chapter="com2.21" >
<chapter chapter="com2.49" >
<chapter chapter="com2.52" >
...
</acl.index>

-- Stylesheet --
...
(element acl.index (process-children))
(element (acl.index chapter) (subdoc))

(define (subdoc)
    (process-node-list
        (sgml-parse (entity-generated-system-id (attribute-string
"CHAPTER")))
    )
)
...

Enjoy!
---
"The only words which have meaning are the last ones spoken"


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread