|
Subject: Re: Replicating elements using Jade From: Vivek Agrawala <vivek@xxxxxxxxxxxxxxx> Date: Mon, 14 Apr 1997 10:25:36 -0400 |
Christopher Walsh wrote:
>
> <document><head><title>TITLE GOES HERE</title></head>
> <body><p>First line of text
> <p>second line of text
> </body></document>
>
> and I want to use jade -t sgml to output the following:
>
> <html><head><title>TITLE GOES HERE</title></head>
> <body>
> <h1>TITLE GOES HERE</h1>
> <p>First line of text
> <p>second line of text
> </body></html>
>
> I use a Literal to call a function GRABTITLE, using the same principles
> as those in the tutorial. My GRABTITLE function is as follows, and is
> called from the (element body) section.
>
> (define (grabtitle)
> (data
> (select-elements (children (parent (current-node))) '(DOCUMENT HEAD))
> )
> )
Try this:
(select-elements (children (parent (current-node))) "HEAD")
- -- Vivek Agrawala, Ph.D.
Siemens Corporate Research, Inc. email: vivek@xxxxxxxxxxxxxxx
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Replicating elements using Jade, Christopher Walsh | Thread | Re: Replicating elements using Jade, James Clark |
| Re: SDATA entity mapping in Jade, Stephen J . Tinney | Date | Re: Replicating elements using Jade, James Clark |
| Month |