Subject: Re: JADE--SGML Backend--attributes From: "Annegret Fiebig" <fiebig@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 24 Mar 1999 14:52:07 +0100 |
Pascal, please find below as an example one function I wrote for expressing the content of elements as attributes. You call this function by attributes: (paircontent-gi (current-node)) for example, or attributes: (paircontent-gi (children(current-node))) etc. The function will copy the content of the node you give as an argument and all sub-elements to attributes. (Please notice the function 'clearstring' which I am using for deleting white spaces and linebreaks from strings. It's possible just to use use "data" instead of "clearstring data".) I found Norman Walsh's examples for DSSSL-style-sheets very helpful, see: http://www.nwalsh.com/docbook/dsssl/ Hope this helps a bit. Annegret Fiebig ------------------------------------------------------ Annegret Fiebig Zentrum fuer Datenverarbeitung der Universitaet Tuebingen Waechterstrasse 76, 72074 Tuebingen Telefon ++49-7071-2970346, Fax ++49-7071-295912 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Elementinhalte als Attribute ausgeben;;;;;;;;;;;;;;;;;;;;;;;;;;; (define (paircontent-gi ndl) (if (node-list-empty? ndl) '() (let* ( (name (gi (node-list-first ndl))) (data (data (node-list-first ndl))) ) (if data (cons (list name (clearstring data)) (paircontent-gi (node-list-rest ndl)) ) (paircontent-gi (node-list-rest ndl)) ) ))) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: JADE--SGML Backend--attributes, Jany Quintard | Thread | Re: JADE--SGML Backend--attributes, Annegret Fiebig |
Newbie DSSSL Transformation Quesito, Barron, Susan D | Date | Re: JADE--SGML Backend--attributes, Annegret Fiebig |
Month |