forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Sitruk" <mikae...@bezeqint.net>
Subject RE: Question: adding formatting for 'xml' conent of source element
Date Sun, 08 Jun 2003 21:27:10 GMT
Jeff hi 

I've already tried this, but the ANY declaration tells the XML validator
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.



-----Original Message-----
From: Jeff Turner [mailto:jefft@apache.org] 
Sent: Sunday, June 08, 2003 07:50
To: forrest-dev@xml.apache.org
Subject: Re: Question: adding formatting for 'xml' conent of source
element

On Sun, Jun 08, 2003 at 07:17:32AM +0200, Mikael Sitruk wrote:
> Jeff hi
> 
> The formatting/colorizing is not problem since I have already done the
> color and I have also added the type attribute on the source element.
> The real problem is that the source element in the DTD does NOT allow
> any element in it. So each time I put XML elements there I get
> validation error.

That's the symptom of doing it the wrong way :)  But anyway, I think it
can be done by overriding the DTD as described at:

http://xml.apache.org/forrest/validation.html

And redefining the 'source' attribute as:

<!ELEMENT source ANY>

--Jeff

> 
> Mikael.S


Mime
View raw message