|
Subject: Re: Deriving unique href target? From: Chris Maden <crism@xxxxxxxxxxx> Date: Mon, 8 Jun 1998 12:00:48 -0400 (EDT) |
[Sorry for the delay; a change in domain of outgoing mail meant I
couldn't post.]
Please post some sample markup and the stylesheet you're using right
now.
I've found that most of the time where I want a link in the HTML,
there's already ID/IDREF in the SGML, and so I use that. I wrote a
function that uses the ID, if there is one, and generates one based on
all-element-number if not:
(define (gen-id snl)
(let ((this-id (attribute-string (norm "id")
snl)))
(if this-id
this-id
(string-append "AUTOID-"
(number->string (all-element-number snl))))))
-Chris
--
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Deriving unique href target?, Daniel Speck | Thread | Repeating data after applying style, Dan Hable |
| fences (variable size math symbols), David Carlisle | Date | RE: fences (variable size math symb, Reynolds, Gregg |
| Month |