trying to catch mixed contents

Subject: trying to catch mixed contents
From: Franck Delahaye <franck.delahaye@xxxxxxxxxx>
Date: Mon, 27 Oct 1997 18:47:46 +0100
Hello,

I'd like to use dsssl/jade to transform an SGML document
having mixed contents, in a document without mixed contents:

for example, the document:
<HTML><HEAD><TITLE>the title</TITLE></HEAD>
<BODY>a mixed content<P>a para</P></BODY></HTML>

should become after transform:
<HTML><HEAD><TITLE>the title</TITLE></HEAD>
<BODY><P>a mixed content</P><P>a para</P></BODY></HTML>

so I tried the following as a first step:
(default
 (sosofo-append 
  (make formatting-instruction
	data: 
	 (string-append 
		"||" (data (current-node)) "@" 
		(gi (current-node)) "||"))
  (process-children)))

and the result is that:
||the titlea mixed contenta para@HTML||||the title@HEAD||||the
title@TITLE||the title||a mixed contenta para@BODY||a mixed content||a
para@P||a para

Ok, this corresponds to what is specified in the standard for the "data"
expression in SDQL,
but I can't find a way to catch "a mixed content" alone in order to make
a P element with it.

Thanks for any help,
Franck


==================================
Franck Delahaye
SYNLOG
e-mail: franck.delahaye@xxxxxxxxxx

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


Current Thread