[Zope3-dev] [OT] Re: idea: attr:foo addition to tal
Stuart Bishop
stuart at stuartbishop.net
Sun Jul 25 13:24:44 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 25/07/2004, at 1:47 PM, Tonico Strasser wrote:
> Stuart Bishop wrote:
> > I suspect it is perfectly valid XML (':' is valid in XML
>> names, which is how come they were able to use it for
>> XML namespaces). A quick look at the namespaces spec
>> seems to tell me that the namespace prefix is 'attr' and
>> the attribute name 'xml:lang',
>
> Hello Stuart,
>
> maybe well-formed, but how would you validate it?
>
> In theory we could validate TAL or METAL because we know the
> attributes in this namespace, but it's impossible to validate a
> unknown set of attributes.
Not with a DTD. I believe with other mechanisms like XML Schema and
RELAX-NG you can specify 'any attribute' to allow for extensible
file formats.
You can't always validate a page template anyway - it might be
generating XML for which no DTD exists:
<foo tal:content="string:bar" />
- --
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFBA+zcAfqZj7rGN0oRAhmdAKCTQuCP31a2dBBKH6B+ldgmPxO/UgCfUvgL
X27v5j2sC+XUVOODmI07mlU=
=UGc+
-----END PGP SIGNATURE-----
More information about the Zope3-dev
mailing list