[XML-SIG] RE: [Zope] - XML-style DTML code
Fri, 29 Jan 1999 10:35:59 -0600
"Fred L. Drake" wrote:
> Paul Everitt writes:
> > <font size="<!--#var font_size-->">
> >which is legal, would become:
> This is legal: The "<!--#var font_size-->" is the CDATA value of
> the size attribute, not a comment.
That is legal SGML but not XML.
> > <font size="<?ztml #var arg ?>">
> >which *not* valid XML...is it? That is, can you have markup inside
> The "<?ztml #var arg ?>" is a perfectly valid string value of the
> size attribute, just as before.
> In neither SGML nor XML can markup be nested like this. The use of
> entities is the proper way to do this in either case. Perhaps a
> processing tool needs to be available which can perform "entity
> expansion" for specified entity names only?
In a valid XML document, all entities must be defined in the DTD. XML does
not provide for them to be supplied by the containing application. SGML
did, but XML does not. The usual way to do this is with elements, as
described in XSL.
Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
Don't you know that the smart bombs are so clever, they only kill