Subject: Re: Deriving unique href target? From: Daniel Speck <dspeck@xxxxxxxxxxxx> Date: Thu, 04 Jun 1998 17:34:57 -0400 |
Wroth, Mark wrote: > Now I need to produce a name/href pair to cast as attributes of the link > elements. Since I'm linking from a summary list to the element being > summarized, my immediate inclination is to use the element-number > associated with the target. This number is available where I create the > summary list (which I do by processing the document with a special > summary mode) and appears in the printed output with no problem. > > However, when I try to use the value of that element-number in the list > of lists needed for a make element's attributes, Jade complains that > I've used an inappropriate value, and leaves the attribute list blank. > I've tried various combinations of > literal, format-number, and number->string without hitting on the magic > combination. The attributes characteristic on the element flow object class takes a list of lists of strings. The first item in each embedded list is the name of the attribute and the second item is its value (both as strings). If you are evaluating expressions to get the value of the attribute value (as I assume you are) you should use something like the following to specify the value: (make element gi: "a" attributes: (list (list "href" (number->string (all-element-number)))) ... ) Note that you should probably be using the non-standard (all-element-number) procedure to come up with a unique identifier for your destinations. -dan -- Daniel Speck e-mail: dspeck@xxxxxxxxxxxx Systems Engineer voice: +1 301.548.7818 Thomson Technology Services Group fax: +1 301.527.4094 1375 Piccard Drive, Rockville, MD 20850 WWW: www.thomtech.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Deriving unique href target?, Wroth, Mark | Thread | Re: Deriving unique href target?, Chris Maden |
Re: Repeating data after applying s, Daniel Speck | Date | Re: TOC, G. Ken Holman |
Month |