Commit Graph
52 Commits
Author SHA1 Message Date
Atsushi Eno 8b5e57c908 2009-11-20 Atsushi Enomoto <[email protected]>
* DefaultContext.cs : do not use sloppy XmlConvert to parse xpath
	  number. Fixed bug #556619.

	* XslTransformTests.cs : added test for bug #556619 by
	  Tor Lillqvist.


svn path=/trunk/mcs/; revision=146613
2009-11-20 12:06:16 +00:00
Atsushi Eno b93975eaba oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
2009-04-15 08:56:38 +00:00
Atsushi Eno b505253fe7 2008-12-09 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : Fixed bug #450797, patch by Jonathan
	  Anderson. Preserve whitespace-only text in xsl:text.

	* XslTransformTests.cs : test for bug #450797 by Jonathan Anderson.


svn path=/trunk/mcs/; revision=121083
2008-12-09 08:20:24 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Atsushi Eno b4c814a17c 2008-06-04 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : fixed bug #378239.cs. Merge
	  sequential text nodes in correct way, say, whitespace entities
	  inside text should be merged (while they should be discarded around
	  CDATA).

	* XmlTextReader2.cs : added FIXME comment which won't fix, that
	  I have noticed during fixing bug #378239.

	* XslTransformTests.cs : added test for bug #378239.


svn path=/trunk/mcs/; revision=104923
2008-06-04 20:06:44 +00:00
Atsushi Eno 0794c874f5 2008-06-03 Atsushi Enomoto <[email protected]>
* XslVariable.cs : In XslGeneralVariable.Evaluate(), always wrap
	  custom XPathNodeIterator with XsltContext so that the iterator
	  can resolve variables. Fixed bug #316238.

	* XslTransformTests.cs : added test for bug #316238.

	* 316238-1.xsl, 316238-2.xsl : new test files.


svn path=/trunk/mcs/; revision=104748
2008-06-03 12:58:30 +00:00
Atsushi Eno dad3095d01 2008-05-22 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : in XmlWriterSettings, use
	  ConformanceLevel.Fragment to allow fragment output.
	  In Transform(string,string), use TextWriter output instead of
	  XmlWriter to control xml declaration output.
	  Fixed bug #391424.

	* XslTransformTests.cs : added test for bug #391424.

	* 391424.xml, 391424.xsl : new test files.

	* Makefile : more simplification (and I forgot the syntax again :/)


svn path=/trunk/mcs/; revision=103783
2008-05-22 13:45:29 +00:00
Atsushi Eno c6ed142f1b 2008-01-19 Atsushi Enomoto <[email protected]>
* XslCopyOf.cs : when the evaluated argument was RTF (it could happen
	  when variable or extensions are used), copy the node itself, not
	  only its children. Fixed bug #322551.

	* XslTransformTests.cs : added test for bug #322551.


svn path=/trunk/mcs/; revision=93314
2008-01-19 11:55:07 +00:00
Atsushi Eno ea6e3df631 2008-01-08 Atsushi Enomoto <[email protected]>
* XslKey.cs, XslStylesheet.cs, Compiler.cs : XSLT 1.0 does not
	  prohibit more than one xsl:key with the same QName, so do not use
	  the name as a 'key' in the table for xsl:key. Fixed bug #351939,
	  patch by Tor Lillqvist.

	* XslTransformTests.cs : added test from bug #351939.
	  (by Tor Lillqvist)


svn path=/trunk/mcs/; revision=92426
2008-01-08 05:02:44 +00:00
Atsushi Eno 894dae4fcc 2007-12-27 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added test for bug #349375. (Actually the
	  previous checkin fixed bug #349375.)
	  Added another notworking one inspired by the same bug.


svn path=/trunk/mcs/; revision=91940
2007-12-27 14:40:40 +00:00
Atsushi Eno a7e430277e 2007-12-17 Atsushi Enomoto <[email protected]>
* Iterator.cs : be more strict to detect the end of
	  PredicateIterator. Fixed bug #349111.

	* XslTransformTests.cs : added test for bug #349111.


svn path=/trunk/mcs/; revision=91405
2007-12-17 08:25:12 +00:00
Atsushi Eno e6024b90d2 2007-12-17 Atsushi Enomoto <[email protected]>
* Expression.cs : In any comparison expr, treat RTF as equivalent to
	  string type (as specified in XSLT 1.0 section 11.1: "An operation
	  is permitted on a result tree fragment only if that operation would
	  be permitted on a string." ...). Fixed bug #349035.

	* XslTransformTests.cs : added test for bug #349035.


svn path=/trunk/mcs/; revision=91402
2007-12-17 07:28:33 +00:00
Atsushi Eno 0ce63640a1 2007-12-17 Atsushi Enomoto <[email protected]>
* XslValueOf.cs : allow external elements in xsl:value-of.
	  Fixed bug #348786.

	* XslTransformTests.cs : added test for bug #348786.


svn path=/trunk/mcs/; revision=91401
2007-12-17 06:31:49 +00:00
Atsushi Eno f34e30d372 2007-09-21 Atsushi Enomoto <[email protected]>
* GenericOutputter.cs : fixed possible conflict for auto-filled
	  attribute prefixes. Fixed bug #325482.

	* XslTransformTests.cs : added test for bug #325482.

	* 325482.xml, 325482.xsl : new test files.

	* Makefile : extra distfiles (325482.xml / 325482.xsl).


svn path=/trunk/mcs/; revision=86132
2007-09-21 09:58:53 +00:00
Atsushi Eno ecd315b204 2007-08-21 Atsushi Enomoto <[email protected]>
* XslFunctions.cs : fix wrong unboxing in extension functions.
	  Fixed bug #82493.

	* XslTransformTests.cs : added test for bug #82493.

	* 82394.xml, 82493.xsl : new test files.

	* Makefile : extra distfiles (82493.xml/.xsl).


svn path=/trunk/mcs/; revision=84526
2007-08-21 06:56:09 +00:00
Atsushi Eno 30e916409c 2007-08-08 Atsushi Enomoto <[email protected]>
* XslCallTemplate.cs : significant whitespace should be allowed
	  as its content. Fixed bug #82357.

	* XslTransformTests.cs : added test for bug #82357.


svn path=/trunk/mcs/; revision=83634
2007-08-08 06:27:38 +00:00
Atsushi Eno f7ec99dca7 2006-04-07 Atsushi Enomoto <[email protected]>
* XslTransformProcessor.cs : push current node context after iterating
	  template target node. Added another NodesetMoveNext() which takes
	  explicit XPathNodeIterator to iterate and filter whitespaces out.

	* XslForEach.cs : push current node context after iterating "selected"
	  node-set.

	* XslTransformTests.cs : added CurrentInSelect().

	* current-in-select.xml current-in-select.xsl current-in-select.ref :
	  new files for XslTransformTests.CurrentInSelect().


svn path=/trunk/mcs/; revision=59172
2006-04-07 09:16:27 +00:00
Atsushi Eno 2253f74608 2006-04-07 Atsushi Enomoto <[email protected]>
* XslTransformProcessor.cs : in NodesetMoveNext() take
	  XPathContext.PreserveWhitespace() into consideration.

	* XslTransformTests.cs : added StripSpace().

	* stripspace.xml, stripspace.xsl : added strip-space testcases.


svn path=/trunk/mcs/; revision=59160
2006-04-06 23:41:36 +00:00
Atsushi Eno 8fc3204c99 2006-01-13 Atsushi Enomoto <[email protected]>
* GenericOutputter.cs : When writing string, use WriteWhitespace()
	  instead of WhiteString() when its state is not Content. This fixes
	  BVTs_bvt066 case (broken after implementing strict state check in
	  XmlTextWriter).

	* XslTransformTests.cs : added DocTypeAfterText().


svn path=/trunk/mcs/; revision=55493
2006-01-13 06:38:10 +00:00
Atsushi Eno 5d8f9644c4 2006-01-13 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Fixed bug #77082.
	  When the state was Start, after WriteProcessingInstruction() and
	  WriteWhitespace() change it to Prolog.
	  After WriteDocType() set state to WriteState.Element.

	* XmlTextWriterTests.cs : added some tests for XMLdecl state check.

	* XslTransformTests.cs : Output_Indent_Xml_DocType() is working now.


svn path=/trunk/mcs/; revision=55487
2006-01-13 05:03:39 +00:00
Gert Driesen d32b9cad5a * XslTransformTests.cs: Extended html indentation test (and marked it
NotWorking). Added tests for MS bugs (that have been fixed since).

svn path=/trunk/mcs/; revision=54881
2005-12-27 18:20:07 +00:00
Gert Driesen 21a98ddcff * XslTransformTests.cs: Enabled forwards compatible tests.
* XslOutput.cs: Do not report error for unknown value for "standalone"
and "omit-xml-declaration" attributes, and extranous attributes if
stylesheet version is not "1.0".

svn path=/trunk/mcs/; revision=54836
2005-12-25 15:38:08 +00:00
Gert Driesen 844cf8e425 * XslTransformTests.cs: Added forwards compatible tests.
svn path=/trunk/mcs/; revision=54832
2005-12-24 14:58:10 +00:00
Gert Driesen 357e2fccaa * XslTransformTests.cs: Added working XML/HTML indentation tests.
svn path=/trunk/mcs/; revision=54803
2005-12-23 20:42:46 +00:00
Gert Driesen bd257c9000 * XslTransformTests.cs: Added bug numbers to test cases.
svn path=/trunk/mcs/; revision=54782
2005-12-23 16:28:51 +00:00
Gert Driesen f42513507a * XmlTextWriterTests.cs: Improved coverage of xml prefix tests.
* XsltCompileExceptionTests.cs: Added tests for ctors.
* XsltExceptionTests.cs: Added tests for ctors.
* XslTransformTests.cs: Added tests for validation of <xsl:output>
attributes.
* System.Xml_test.dll.sources: Added XsltCompilerExceptionTests.cs and 
XsltExceptionTests.cs.
* IXsltContextFunction.cs: Fixed line endings (all CRLF).
* IXsltContextVariable.cs: Fixed line endings (all CRLF).
* XsltContext.cs: Fixed line endings (all CRLF).
* XsltCompileException.cs: Fixed line endings (all CRLF).
Fixed message to correspond with both MS.NET 1.x and 2.0.
* XslTransform.cs: Fixed line endings (all CRLF).
* XsltArgumentList.cs: Fixed line endings (all CRLF).
* XsltException.cs: Fixed line endings (all CRLF). Fixed message to
correspond with MS.NET 1.x and 2.0.
* XslVariable.cs: Beautify error messages.
* XslElement.cs: Same.
* XslAvt.cs: Same.
* XslAttribute.cs: Same.
* XslApplyTemplates.cs: Same.
* XslTemplateContent.cs: Same.
* XslCallTemplate.cs: Same.
* XslCopy.cs: Same.
* XslChoose.cs: Same.
* ScriptCompilerInfo.cs: Fixed line endings.
* XslStylesheet.cs: Beautify error messages.
* Debug.cs: Fixed line endings.
* XslOutput.cs: Indent is now bool instead of string, use
MoveToAttribute to navigate through attributes instead of using
GetAttribute, as we also need to distinguish attributes with
zero-length value from attributes that are not specified for
correct implementation of DOCTYPE. Implemented validation for
value of "omit-xml-declaration", "standalone" and "indent".
We now throw a XsltCompileException for unknown attribute.
* XmlWriterEmitter.cs: only skip WriteDocType is systemId is null.
* HtmlEmitter.cs: XslOutput.Indent is now bool. Fixed WriteDocType
to match MS.NET.
* XmlDecimalFormat.cs: Beautify error messages.
* XslTemplate.cs: Beautify error messages.
* GenericOutputter.cs: XslOutput.Indent is now bool.
* Compiler.cs: Beautify error messages.

svn path=/trunk/mcs/; revision=54780
2005-12-23 15:32:55 +00:00
Atsushi Eno ce5d03a514 2005-12-12 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : (LocalParameter) [NotDotNet] should not have
	  been undone.


svn path=/trunk/mcs/; revision=54228
2005-12-12 11:21:43 +00:00
Gert Driesen a516d4cd9a * XslTransformTests.cs: Explicitly omit XML declaration, allowing test to
pass on both MS.NET and Mono.

svn path=/trunk/mcs/; revision=53906
2005-12-04 20:00:35 +00:00
Gert Driesen c63855e471 * XslTransformTests.cs: Undo formatting change.
svn path=/trunk/mcs/; revision=53903
2005-12-04 19:17:02 +00:00
Gert Driesen 5b445204af * XslTransformTest.cs: Added test for MS bug, described in KB834667.
svn path=/trunk/mcs/; revision=53902
2005-12-04 19:04:40 +00:00
Gert Driesen aabdd4efbb * XslTransformTest.cs: Added test for sorting an empty node set, which
is also a test for omitting XML declaration if no XML is output.
No longer derive from deprecated Assertion class, formatting updates.

svn path=/trunk/mcs/; revision=53901
2005-12-04 18:37:55 +00:00
Atsushi Eno 8aa27a73cc 2005-11-17 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added WhitespaceHandling ().

	* 91834.xml, 91834a.xml, 91834.xsl : I ended up to add new files here.


svn path=/trunk/mcs/; revision=53192
2005-11-17 16:09:59 +00:00
Atsushi Eno 75de05ddfc 2005-10-24 Atsushi Enomoto <[email protected]>
* Compiler.cs : (FromString(s, hashtable)) pull default namespace
	  from the table for LRE (don't consider it as ""; spec. 7.1.2)
	  Fixed bug #76530.

	* XslTransformTests.cs : added test for bug #76530.


svn path=/trunk/mcs/; revision=52116
2005-10-24 06:25:18 +00:00
Zoltan Varga f099d9b9f1 2005-10-08 Zoltan Varga <[email protected]>
* XslTransformTests.cs: Remove test which depends on random GC
	behaviour.

svn path=/trunk/mcs/; revision=51473
2005-10-08 17:44:32 +00:00
Atsushi Eno c365140073 2005-09-16 Atsushi Enomoto <[email protected]>
* XslTransform.cs : When Transform() returns XmlReader, allow empty
	  results. Fixed bug #76115.

	* ScriptCompilerInfo.cs : Compile correct replacement result.
	  Fixed bug #76116.

	* XslTransformTests.cs : added testcase for bug #76115.
	* MSXslScriptTests.cs : added testcase for bug #76116.


svn path=/trunk/mcs/; revision=50132
2005-09-16 09:17:15 +00:00
Atsushi Eno fff44b81bc 2005-09-10 Atsushi Enomoto <[email protected]>
* Compiler.cs : (Compile) check children only when it is the document
	  element. Fixed bug #76046.

	* XslTransformTests.cs : added testcase for bug #76046.


svn path=/trunk/mcs/; revision=49867
2005-09-10 16:37:05 +00:00
Sebastien Pouliot 0a31336cb5 2005-08-31 Sebastien Pouliot <[email protected]>
* XsltArgumentListCas.cs: New. CAS unit tests for AddExtensionObject.
	Note that this is a LinkDemand so it will succeed in 2.0 (as the test
	is executed at fulltrust).
	* XsltCompileExceptionCas.cs: New. CAS unit tests for exception 
	serialization.
	* XsltExceptionCas.cs: New. CAS unit tests for exception 
	serialization.


svn path=/trunk/mcs/; revision=49173
2005-08-31 12:58:05 +00:00
Atsushi Eno f2134e09c2 2005-07-29 Atsushi Enomoto <[email protected]>
* XslFunctions.cs : XslTransform recovers from errors on document
	  resolution. Fixed bug #75663.

	* XslTransformTests.cs : added testcase for bug #75663.


svn path=/trunk/mcs/; revision=47843
2005-07-29 13:14:51 +00:00
Atsushi Eno 6c953b4ea9 2005-05-07 Atsushi Enomoto <[email protected]>
* MSXslScriptManager.cs : it should ignore compiler warnings. This
	  fixes bug #74859.

	* MSXslScriptTests.cs : added testcase for bug #74859.



svn path=/trunk/mcs/; revision=44200
2005-05-07 16:11:07 +00:00
Atsushi Eno 59e8901c07 2005-03-24 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added (extra) test which verifies that
	  XslTransform.Load() and .Transform() does not hold reference to
	  stylesheet/instance XPathNavigator inside its internals.


svn path=/trunk/mcs/; revision=42201
2005-03-24 11:26:02 +00:00
Atsushi Eno b5c0ffd0c4 2005-03-23 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added test that examines if XSLT rejects
	  xsl:import incorrectly placed after other contents.


svn path=/trunk/mcs/; revision=42145
2005-03-23 14:13:39 +00:00
Atsushi Eno bf86f5ec7b 2004-03-22 Atsushi Enomoto <[email protected]>
* Expression.cs : EvaluateBoolean() for RTF should check return true
	  for empty elements. Fixed static analysis for RTF.

	* XslTransformTests.cs : added test 1)that examines pattern sanity and
	  2)that examines if empty element RTF is evaluated as true for bool.


--his line, and those below, will be ignored--

M    System.Xml.XPath/ChangeLog
M    System.Xml.XPath/Expression.cs
M    Test/System.Xml.Xsl/ChangeLog
M    Test/System.Xml.Xsl/XslTransformTests.cs
M    Test/System.Xml.Xsl/standalone_tests/Makefile

svn path=/trunk/mcs/; revision=42118
2005-03-22 15:44:41 +00:00
Atsushi Eno da23068c98 2005-02-28 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : just set NotWorking for trivial comparison tests.

	* XmlReflectionImporterTests.cs : set NotWorking for trivial empty
	  string comparison.

	* MsxslScriptTests.cs,
	  XslTransformTests.cs : set NotWorking for msxsl:script tests (they
	  premise runnable compilers existence which actually might not exist.)


svn path=/trunk/mcs/; revision=41273
2005-02-28 05:13:56 +00:00
Atsushi Eno 7fdb26fb52 2005-01-13 Atsushi Enomoto <[email protected]>
* MsxslScriptTests.cs : actually it was not testing stylesheet.
	* XslTransformTests.cs : marked MSXslNodeSetRejectsNodeSet() as
	  NotDotNet.



svn path=/trunk/mcs/; revision=38846
2005-01-13 04:37:22 +00:00
Atsushi Eno acfe8b01c4 2004-06-06 Atsushi Enomoto <[email protected]>
* MsxslScriptTests.cs : Namespace are required (found on fixing
	  XmlTextReader's namespace bugfix).

svn path=/trunk/mcs/; revision=28903
2004-06-06 07:37:24 +00:00
Atsushi Eno 562b65fc66 2004-05-20 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : Added tests for msxsl:node-set().

svn path=/trunk/mcs/; revision=27727
2004-05-20 08:44:01 +00:00
Atsushi Eno 4db85d18f2 2004-03-31 Atsushi Enomoto <[email protected]>
* Added MsxslScriptTests.cs.

svn path=/trunk/mcs/; revision=24857
2004-03-31 17:39:22 +00:00
Atsushi Eno 0b1403e780 2004-03-24 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : Added InvalidStylesheet2().

svn path=/trunk/mcs/; revision=24529
2004-03-24 18:19:24 +00:00
Atsushi Eno 8fbb63fab8 2004-03-13 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added some tests for invalid stylesheets.

svn path=/trunk/mcs/; revision=23982
2004-03-13 15:08:39 +00:00
Atsushi Eno 0743e3871b 2004-01-03 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : fixed incorrect file path, and output childnode
	  count.

svn path=/trunk/mcs/; revision=21636
2004-01-03 16:04:26 +00:00