Re: Newbie question

Subject: Re: Newbie question
From: hkirschk@xxxxxxxxxxxxxx
Date: Tue, 20 Apr 1999 15:19:22 +0100
Guillaume,




rouchyg@xxxxxxxxxxxxxxxxxxxxxxxxxxx on 20.04.99 12:52:15

Please respond to dssslist@xxxxxxxxxxxxxxxx

To:   dssslist@xxxxxxxxxxxxxxxx
cc:    (bcc: Heiko Kirschke/PLZ/CSC)
Subject:  Newbie question




> I would like to include the content of a children into an attribute,
> like the following:
> <Tag1>Content of Tag1 is only CDATA</Tag1>
> converted to:
> <Tag1 Value="Content of Tag1 is only CDATA"/>
> How can I do this ?

(data (current-node)) returns a string with a node's data.
So, if the current node is <Tag1>, the string you're looking
for is returned. The complete statement for making the sosofo
could look like:

(element TAG1
  (make element
    gi: "TAG1"
    attributes: `(("VALUE" ,(data (current-node))))))

Here's a tip of mine again: Consult the DocBook scripts for
learning about DSSSL, they're a good start point and source
for developing own scripts.

Viele Gruesse, Heiko



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


Current Thread