|
Subject: Using entity ids to generate attributes for HREF in html output. From: Peter Bennett <peter.bennett@xxxxxxxxxxxxxxxx> Date: Mon, 6 Dec 1999 15:49:41 -0000 |
Using entity ids to generate attributes for HREF in html output.
I have created a dsl to take my xml file and produce several html files.
What I am trying to get is a table of activities in one html file with
several hyperlinks to other files.
The code below gives produces the required and appropriately named html
files, using the activity id to set the files name.
(element activity
(make sequence
(make element
gi: "A"
attributes: '(("HREF" "astaticlink"))))
(process-first-descendant 'activitytitle))
(make entity
system-id: (attribute-string "id"))))
However, obviously this way, the link will not relate in any way to the
file produced.
So I try to produce a hyperlink using the activity ID,
(element activity
(make sequence
(make element
gi: "A"
attributes: '(("HREF" (attribute-string "id"))
(process-first-descendant 'activitytitle))
(make entity
system-id: (attribute-string "id"))))
But then I get the following error message:
invalid value for "attributes" characteristic.
I have tried every variation of this I can think of, along with a few
other hopeful ideas and am sure I'm missing some really obviouse point,
But I have trawled through the DSSSL mailing list archives and various
online tutorials, and seem to be chasing round in circles.
Peter
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Multiple File Output, Peter Nilsson | Thread | Re: Using entity ids to generate at, Toby Speight |
| Re: Multiple File Output, Peter Nilsson | Date | Re: Using entity ids to generate at, Toby Speight |
| Month |