forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Sitruk" <>
Subject RE: Question: adding formatting for 'xml' conent of source element
Date Mon, 09 Jun 2003 06:07:07 GMT
Yes that what I did already.
I've perhaps a solution:
I will store the xml sample in a separate file an load them only in XSL
I will add to the source element the 'uri' or 'external-file-name'
attribute (I've also added the type, e.g. xml, java...). In this
attribute I will store either the uri or the file name of a file
containing only the sample of the xml that need to be formatted.
In XSL when getting to the source element I will load the nodes in the
external-file (using the document() function), then do the formatting.
In this way I think I will pass the validation, since source element
will not violate the DTD.

I will inform you...
-----Original Message-----
From: Jeff Turner [] 
Sent: Monday, June 09, 2003 04:25
Subject: Re: Question: adding formatting for 'xml' conent of source

On Sun, Jun 08, 2003 at 11:27:10PM +0200, Mikael Sitruk wrote:
> Jeff hi 
> I've already tried this, but the ANY declaration tells the XML
> that ANY of the declared element in the DTD is legal. I can't override
> the DTD for each of the xml samples I want to add, it will be a
> nightmare.

Hmm, then I guess there isn't really any solution other than to switch
off DTD validation, by setting 'forrest.validate.xdocs=false' in


View raw message