ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject [PATCH] Re: The illegal DTD problem in <antstructure>
Date Thu, 08 Mar 2001 20:12:37 GMT
Stefan Bodewig wrote:
> Some time back it has been reported that the DTD antstructure
> generates right now is illegal - it contains a + sign in the
> enumeration for the operation attribute of propertyfile's nested entry
> element.
> As I read it: An Enumeration consists of things following the Nmtoken
> production and Nmtokens simply cannot contain a + (or a =, ? and many
> other characters for that matter). So there is no way to have an
> enumerated attribute like the incriminated one.
> Maybe I'm misreading the XML spec and somebody around here knows
> better than I do.  Anybody with a different opinion?
> Proposed fix: When building up an enumerated attribute list, check
> wether all parts follow the Nmtoken production. If not, degrade the
> attribute to be of type CDATA.

I found this out a couple weeks ago when trying to use <antstructure> to make
Emacs PSGML mode happy with build.xml's. Try the attached patch, I think it
solves the problem.


Jesse Glick   <>
NetBeans, Open APIs  <>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
View raw message