Commit Graph
20 Commits
Author SHA1 Message Date
Atsushi Eno acdf48cf71 fix bug #6653: change xs component validation logic regarding recursion check.
Originally this implementation checked recursion based on RELAX NG-inspired
algorithm explained at http://www.thaiopensource.com/relaxng/simplify.html.

This works only for "simple" syntax, which premises that every <element> is
defined under top-level <define> element. XML Schema doesn't follow this
and could result in infinite loop like reported.

The latest REC-xmlschema-1 denotes the explicit rule on illegal recursion
on 3.8.6 (Model Group Correct) as:

2 Circular groups are disallowed. That is, within the {particles} of a group there must not be at any depth a particle whose {term} is the group itself.

... so, I simply replaced the checker with simple Stack.

(oh, and for old Stack I haven't bothered to replace non-generic collection
everywhere. XSD is as dead as System.Collection.)
2013-02-08 20:19:14 +09:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Atsushi Eno b265ee6b99 2007-11-12 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : XmlValueGetter actually needs string value
	  to validate against a restricted simple type (beyond ParseValue()). 
	  Fixed bug #339934.

	* XsdValidatingReaderTests.cs : added test for #339934.

	in Test/System.Xml.Schema/standalone_tests:
	* Makefile : now we try both default and 2.0 profile tests (i.e.
	  "make run-test" and "make PROFILE=net_2_0").
	  For 2.0, use XmlReader.Create().


svn path=/trunk/mcs/; revision=89432
2007-11-12 00:55:56 +00:00
Atsushi Eno bce6199ee3 2006-07-27 Atsushi Enomoto <[email protected]>
* xsdtest.cs :
	  It has been running some extra instance validation and reporting 
	  errors where a schema is invalid and therefore no instance
	  validation could be done.
	  Now --reportsuccess works fine for tests that should fail (reports
	  "OK" when it successfully failed).


svn path=/trunk/mcs/; revision=63040
2006-07-27 14:40:45 +00:00
Atsushi Eno e4febe6ede 2005-12-01 Atsushi Enomoto <[email protected]>
* XmlSchemaSequence.cs : when a subcomponent is not optional
	  (minOccurs!=0) then it should clean previous components up.
	  Really fixed bug #76865.

	* XmlSchemaTests.cs :
	  Additional schema component to finish #76865 test.

	* Makefile : Use MONO_PATH. Remove extraneous make variables.


svn path=/trunk/mcs/; revision=53748
2005-12-01 06:16:29 +00:00
Atsushi Eno d7e2e92951 2005-11-07 Atsushi Enomoto <[email protected]>
* XmlValueGetter.cs, XmlSchemaValidator.cs, XmlSchemaException.cs,
	  XmlSchemaAttribute.cs : Updated API to match 2.0 RTM. Most of the
	  changes are related to XmlValueGetter change.

	* XsdValidatingReader.cs, XmlSchemaValidatingReader.cs,
	  XsdIdentityState.cs :
	  Dependent changes caused by XmlValueGetter changes.

	* xsdtest.cs : updated to match 2.0 RTM API.


svn path=/trunk/mcs/; revision=52650
2005-11-07 12:56:29 +00:00
Atsushi Eno 67b95c5770 2005-09-30 Atsushi Enomoto <[email protected]>
* xsdtest.cs : noResolver option.


svn path=/trunk/mcs/; revision=51029
2005-09-30 05:41:51 +00:00
Ben Maurer 7ee4149d42 more executable bits
svn path=/trunk/mcs/; revision=46568
2005-06-27 16:07:43 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Raja R Harinath 5948e16f26 svn:eol-style=native
svn path=/trunk/mcs/; revision=44323
2005-05-10 09:39:16 +00:00
Andrew Skiba 9e14f3a495 * Makefile : track the timestamp so tar does not run when not needed
* xsdtest.cs : fix the case of the directory name

svn path=/trunk/mcs/; revision=44241
2005-05-09 06:36:01 +00:00
Raja R Harinath 5319634c9b * Makefile (centum_tests): Add Mono.Security and
System.Runtime.Remoting.
* */Makefile: Replace $(RUNTIME) with $(RUNTIME) $(RUNTIME_FLAGS).
* build/config-default.make (RUNTIME): Set to 'false'.
Reported by Ben Maurer.
* build/profiles/basic.make (MCS): Revert changes below.
* build/platforms/linux.make (ILDISASM): Define.
* build/platforms/win32.make (ILDIsASM): Likewise.
* class/Microsoft.VisualBasic/fixup/Makefile (ILDISASM): Remove.
($(the_il)): Create temporary files in profile directory.

svn path=/trunk/mcs/; revision=43545
2005-04-25 13:42:51 +00:00
Atsushi Eno 0c896407d9 2004-01-17 Atsushi Enomoto <[email protected]>
* Makefile : report details.



svn path=/trunk/mcs/; revision=39003
2005-01-17 09:30:08 +00:00
Atsushi Eno 103fb0642d 2004-12-15 Atsushi Enomoto <[email protected]>
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
	  instead of XmlValidatingReader.

	* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.

	* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
	  XmlSchemaValidator.ValidateElement().
	  Removed some obsolete overrides.

	* XmlReader.cs :
	  Create() should assure NameTable!=null on creating XmlTextReader.
	  Now use XmlSchemaValidatingReader for all xsd validation.
	* XmlTextReader2.cs :
	  Don't use input reader's Settings. It is null.
	* XmlReaderSettings.cs : added XmlResolver.

	* XmlSchemaSet.cs : set default resolver. Clear components before
	  recompilation.
	* XmlSchemaValidator.cs :
	  SourceUri is System.Uri.
	  GetUnspecifiedDefaultAttributes() is allowed only when it is inside
	  start tag.
	  Added AddSchema().
	  Added duplicate attribute check.
	  Added ValidateElement() that takes xsi:* parameters.
	  (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
	  HandleXsiNil() now just takes string parameter.



svn path=/trunk/mcs/; revision=37782
2004-12-15 13:58:32 +00:00
Atsushi Eno 7d82fe4207 2004-12-10 Atsushi Enomoto <[email protected]>
* xsdtest.cs : improved significantly. Enabled reporting to file,
	  immediate stop on exception, xml reporting, and so on.
	  Run mono xsdtest.exe --help for details.
	* Makefile : now "make test" becomes "make run-test" and it generates
	  TestResult.xml (of my own format).
	* README : updated info.



svn path=/trunk/mcs/; revision=37548
2004-12-10 05:20:59 +00:00
Atsushi Eno 9107609cd7 2004-03-04 Atsushi Enomoto <[email protected]>
* Makefile : made "make test" independent of "make" so that extraneous
	  archive extraction won't be run every time (for automated tests).

svn path=/trunk/mcs/; revision=23706
2004-03-04 21:05:04 +00:00
Atsushi Eno d36a8d17a0 2004-01-20 Atsushi Enomoto <[email protected]>
* Added set of Post Schema Compilation Information tests, i.e.
	  xs-psci-compare.cs and psci-ms-all.zip.
	* Makefile: Added test-psci target.
	* README: Added notes on PSCI tests (however it is not for today's
	  implementation, but for the very near future with bunch of fixes)

svn path=/trunk/mcs/; revision=22290
2004-01-20 08:15:46 +00:00
Atsushi Eno b2bf5da369 2004-01-08 Atsushi Enomoto <[email protected]>
* xsdtest.cs : XmlReaders should be closed in case of errors.

svn path=/trunk/mcs/; revision=21843
2004-01-08 08:03:08 +00:00
Atsushi Eno 2a9e30eeb4 2004-01-05 Atsushi Enomoto <[email protected]>
* README, Makefile, test-masters.tar.gz, xsdtest.cs : Initial checkin.

svn path=/trunk/mcs/; revision=21708
2004-01-05 10:27:41 +00:00