Re: IDREFS with jade

Subject: Re: IDREFS with jade
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Sat, 13 Dec 1997 09:56:13 -0500
Patrice Bonhomme wrote:
> 
> hi,
> 
> Is it possible to process IDREFS attribute with Jade? If the answer is Yes,
> how?

I interpret your question at a different level than James does.
Hopefully one of them will answer it.

If I am interpreting it correctly, then these snippets from tei-lite.dsl
should help:

(define (LINK-WITH-TARGET-CONTENT)
  (with-mode ptr
    (process-element-with-id (attribute-string "target"))))

(element PTR
  (LINK-WITH-TARGET-CONTENT))

(define (SIMPLE-CROSS-REFERENCE)
  (if (string? (attribute-string "target"))
   (make link
         destination: (idref-address (attribute-string "target"))
	 color: *midnight-blue-color*
	 font-posture: 'italic
         (make score
               type: 'after
               (process-children-trim))
         (make sequence
            (with-mode ref
              (process-element-with-id (attribute-string "target")))))
   (empty-sosofo)))

(element REF (SIMPLE-CROSS-REFERENCE))


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


Current Thread
  • IDREFS with jade
    • Patrice Bonhomme - Sun, 07 Dec 97 20:31:01 +0000
      • James Clark - Sat, 13 Dec 97 10:42:40 +0000
      • Paul Prescod - Sat, 13 Dec 97 10:43:05 +0000 <=
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id JAA20466Wed, 17 Dec 1997 09:04:50 -0500 (EST)
          • Paul Prescod - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id JAA20674Wed, 17 Dec 1997 09:53:31 -0500 (EST)
          • Patrice Bonhomme - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA21032Wed, 17 Dec 1997 10:49:03 -0500 (EST)