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

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:
<BODY>a mixed content<P>a para</P></BODY></HTML>

should become after transform:
<BODY><P>a mixed content</P><P>a para</P></BODY></HTML>

so I tried the following as a first step:
  (make formatting-instruction
		"||" (data (current-node)) "@" 
		(gi (current-node)) "||"))

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 Delahaye
e-mail: franck.delahaye@xxxxxxxxxx

 DSSSList info and archive:

Current Thread