W3C home > Mailing lists > Public > www-dom-ts@w3.org > October 2001

Re: DOM Level2 Tests

From: Mary Brady <mbrady@nist.gov>
Date: Wed, 17 Oct 2001 11:17:52 -0400
Message-ID: <00a001c1571e$e41ebe60$293b0681@HAPPY>
To: "Curt Arnold" <carnold@houston.rr.com>, <www-dom-ts@w3.org>
It's easy enough for us to rename to variable -- in fact,
we already have -- but limitations such as this should
specifically be called out in documentation that is
prepared for others submitting tests or be fixed.  I
don't have strong feelings -- but I have seen alot of
code over the years in a variety of languages with
underscores used in variable names.


----- Original Message -----
From: "Curt Arnold" <carnold@houston.rr.com>
To: <www-dom-ts@w3.org>
Sent: Wednesday, October 17, 2001 11:06 AM
Subject: Re: DOM Level2 Tests

> > I work with Mary Brady at NIST and have been
> > running the NIST DOM Level 2 tests through
> > SUN's MSV tool and have some questions.
> >
> > Several tests such as documentcreateattributexmlnsillegalname.xml
> > and documentcreateelementxmlnsillegalname.xml
> > have failed because a double quote is used as element content
> > for one of the member nodes. A "unexpected character literal"
> > error is returned.
> The regular expression pattern for stringLiteral in dom-to-xsd.xsl had
> "[^"]*", requiring that any string literal start with a quote, have no
> interior quotes and have no interior quotes.   It is now "([^"]|\\")*"
> allows you to have  \" in the interior.
> >
> >  I've tried several different ways
> > to escape the double quote and haven't had any luck.  Can
> > someone give me a suggestion.
> >
> > Also the namednodemapsetnameditemxmlnsreplaceitem.xml test
> The consensus of the group was that overly expressive test names were a
> nuisance and new tests should use simple mixed case names based on the
> method under test (or a general capability like EventPropagation) and a
> numeric identifier, so this test could be called SetNamedItem01.xml.  The
> text matrix generated from the metadata provides sufficient information to
> browse the tests by description.   Changing the existing DOM L1 names in
> CVS repository was too much of a nuisance to try to fix, so we were going
> live with them.  See
> http://lists.w3.org/Archives/Public/www-dom-ts/2001Sep/0011.html and other
> messages in August and September.
> > uses an underscore in the values of attributes(ex. ret_node).  MSV
> > "attribute "name" has a bad value: the value does not match the
> > regular expression "[A-Za-z] [A-Za-z0-9]*".
> >
> > Since Java variable names are valid if they contain underscores
> > they also be valid for the tests.
> The schema is definitely trying to subset the capabilities, not to
> the full capabilities, of any one language.  There are two options here,
> either we can add underscore the the regular expression (if anyone knows a
> language that doesn't allow underscores in variable names, speak up) or
> could change your variable names to conform to the current regular
> expression.  Since underscores in member names are contrary to Java's
> guides, I think it would be better to rename your variables to "retNode"
> example.
Received on Wednesday, 17 October 2001 11:19:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:03 UTC