Re: Accessing attributes

Subject: Re: Accessing attributes
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Jul 1997 10:52:32 -0500
LINARESA wrote:
>      I have just begun working in the world of DSSSL.  I am wondering if
>      there is a way to access attributes that are within tags and use those
>      values to be printed out or used in some other way.
> 
>      Example: <TASK ID="task1" Name="dosomething" Version=ver0">

You can access the attributes of an element using the (attribute-string
...) procedure.

>      I am looking to have the output in RTF, and being able to use
>      variables in the output. For example formatting the attribute "Name"
>      to be a certain justification and size, and use the value of "Name"
>      (dosomething) to be printed out in the format specified for the
>      variable.

(element task
   (make sequence
     quadding: 'start
     font-size: 10pt
     (literal (attribute-string "Name))))
 
>      I noticed dsssl being able to access variables from within
>      external-graphic objects...is there a way to do the same with the
>      other flow objects ie.. paragraph, tables, etc...

I'm not sure what you mean by variables here. Variables are not really
involved unless you choose them to be.

 Paul Prescod

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


Current Thread