Commit Graph
89 Commits
Author SHA1 Message Date
Jb Evain 258ad8200f bring XslCompiledTransform to MonoTouch
svn path=/trunk/mcs/; revision=145711
2009-11-09 10:33:07 +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 26a6b211f3 2008-06-03 Atsushi Enomoto <[email protected]>
* XslTransform.cs : add pretty simple printing debugger.


svn path=/trunk/mcs/; revision=104744
2008-06-03 11:28:53 +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 6330dd1733 2007-12-27 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : when loading XmlReader as an input to
	  Transform(), preserve whitespaces in the input document. Based on
	  the patch by Tor Lillqvist (part of #349375 fix).


svn path=/trunk/mcs/; revision=91930
2007-12-27 11:44:16 +00:00
Atsushi Eno 5597ae55fd 2007-10-10 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : actually previous change was not enough.
	  Added a commented-out example of debugger method usage.


svn path=/trunk/mcs/; revision=87253
2007-10-10 11:02:35 +00:00
Atsushi Eno 895c6c3f89 2007-10-10 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : a bit more of debugging help. Now it
	  stores stylesheet elements when "enableDebug" is true.


svn path=/trunk/mcs/; revision=87248
2007-10-10 09:43:37 +00:00
Atsushi Eno 19308b4ef0 2007-06-28 Atsushi Enomoto <[email protected]>
Yes, it is Hack Week, I had to start delayed though.

	* System.Xml.dll.sources : added XsltDebuggerWrapper.cs, as initial
	  attempt to support external debugger.

	* XslText.cs XslMessage.cs XslVariable.cs XslNotSupportedOperation.cs
	  XslNumber.cs XslElement.cs XslIf.cs XslCopyOf.cs XslFallback.cs
	  XslValueOf.cs XslComment.cs XslAttribute.cs XslApplyImports.cs
	  XslApplyTemplates.cs XslLiteralElement.cs XslCompiledElement.cs
	  XslTemplateContent.cs XslForEach.cs XslCallTemplate.cs
	  XslCopy.cs XslProcessingInstruction.cs XslChoose.cs :
	  minimum required injection for debugger.

	initial attempt to hook debuggers.
	* XsltDebuggerWrapper.cs : new.
	* XslTransformProcessor.cs Compiler.cs : use above.

	* XslCompiledTransform.cs XslTransform.cs : initial attempt to
	  support external debugger.


svn path=/trunk/mcs/; revision=80984
2007-06-28 16:44:07 +00:00
Atsushi Eno 679a1121b6 2006-11-30 Atsushi Enomoto <[email protected]>
* XslStylesheet.cs, XslTemplate.cs : added XSLT stack frame debug
	  support, based on the patch by Michael Meeks.

	* XslTransform.cs, XsltException.cs : added XSLT stack frame debug
	  support, based on the patch by Michael Meeks.


svn path=/trunk/mcs/; revision=68730
2006-11-30 05:35:45 +00:00
Atsushi Eno 5d5594ef4b 2006-10-27 Atsushi Enomoto <[email protected]>
* XsltContext.cs : finally created a non-copyright-infringing test
	  for bug #46751 and fixed it.

	* XPathNavigatorTests.cs : added (kind of) test for bug #46751.


svn path=/trunk/mcs/; revision=67045
2006-10-27 20:51:56 +00:00
Atsushi Eno 5aa4000b87 2006-07-06 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : making stub more complete :|


svn path=/trunk/mcs/; revision=62306
2006-07-06 10:26:34 +00:00
Gert Driesen 9f44a55efb * XsltContext.cs: Ctors are public in .NET 1.1. Fixes warnings in class status
page. Set eol-style to CRLF.

svn path=/trunk/mcs/; revision=61221
2006-05-29 08:51:22 +00:00
Atsushi Eno 5bdbb16452 2006-05-08 Atsushi Enomoto <[email protected]>
* XslTransform.cs : fixed ObsoleteAttributes. It won't be harmful
	  as we have working XslCompiledTransform stubs.


svn path=/trunk/mcs/; revision=60395
2006-05-08 06:18:31 +00:00
Atsushi Eno 296cf68292 2006-02-22 Atsushi Enomoto <[email protected]>
* XsltContext.cs : don't expect that it is always XsltCompiledContext
	  which is being evaluated in XPathExpression. Dispatch overriden
	  methods. Fixed bug #46751.


svn path=/trunk/mcs/; revision=57137
2006-02-22 05:58:19 +00:00
Atsushi Eno 1d4eb101a3 2006-01-25 Atsushi Enomoto <[email protected]>
* XsltContext.cs : fixed method signatures found by updated
	  corcompare.


svn path=/trunk/mcs/; revision=56047
2006-01-25 15:34:17 +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 b506772860 2005-11-22 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : added non-compiler transformer (aka. stub).

	* System.Xml.dll.sources : added dummy XslCompiledTransform.cs.


svn path=/trunk/mcs/; revision=53337
2005-11-22 04:18:35 +00:00
Atsushi Eno 502ec3499a 2005-11-07 Atsushi Enomoto <[email protected]>
* XsltException.cs : under 2.0, some properties are virtual.


svn path=/trunk/mcs/; revision=52665
2005-11-07 20:03:39 +00:00
Andrew Skiba 269246a89d * XslTransform.cs: throw meaningful exception when Transform is
called before Load

svn path=/trunk/mcs/; revision=52644
2005-11-07 09:59:42 +00:00
Gert Driesen 749d5fd29b * XsltSettings.cs: Marked sealed.
svn path=/trunk/mcs/; revision=51465
2005-10-08 11:26:54 +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
Sebastien Pouliot 0918aca882 2005-08-31 Sebastien Pouliot <[email protected]>
* XsltArgumentList.cs: Added a LinkDemand for Unrestricted on 
	AddExtensionObject method.
	* XsltCompileException.cs: Added a Demand for SerializationFormatter 
	on GetObjectData method.
	* XsltException.cs: Added a Demand for SerializationFormatter on
	GetObjectData method.


svn path=/trunk/mcs/; revision=49178
2005-08-31 13:05:53 +00:00
Gert Driesen b6157808b4 * XmlSchemaInference.cs: Is sealed in Beta 2.
* XmlSchemaInfo.cs: Added ContentType property.
* XmlSchemaObjectEnumerator.cs: No longer sealed in Beta 2.
* XmlSchemaSet.cs: No longer sealed in Beta 2. XmlResolver property
is now CLSCompliant.
* XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
* XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to RoundtripKind 
to match .NET 2.0 Beta 2.
* XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2, and is explicit interface implementation.
* XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNamespaceManager.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic IDictionary in 
.NET 2.0 Beta 2.
* DTDValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XsltArgumentList.cs: No longer sealed in .NET 2.0.
* XsltException.cs: Message override is back in .NET 2.0 Beta 2.
* XmlMapping.cs: API compatibility fixes. Ctor is not protected in .NET 1.1. 
SetKey is not obsolete in .NET 2.0 Beta 2.
* XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsdValidationReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlSchemaValidatingReader.cs: GetNamespacesInScope returns generic
IDictionary in .NET 2.0 Beta 2.
* SubtreeXmlReader.cs: GetNamespacesInScope now returns generic IDictionary.

svn path=/trunk/mcs/; revision=47974
2005-08-03 17:39:08 +00:00
Atsushi Eno d79bc95795 2005-06-27 Atsushi Enomoto <[email protected]>
* XsltMessageEncounteredEventArgs.cs : it seems abstract.
	* XsltSettings.cs : There is another .ctor().


svn path=/trunk/mcs/; revision=46553
2005-06-27 12:59:30 +00:00
Atsushi Eno b89eb43695 2005-06-27 Atsushi Enomoto <[email protected]>
* XsltSettings.cs,
	  XsltMessageEncounteredEventArgs.cs,
	  XsltMessageEncounteredEventHandler.cs : new files for net_2_0.
	* XsltArgumentList.cs : added 2.0 message event.


svn path=/trunk/mcs/; revision=46536
2005-06-27 08:31:32 +00:00
Ben Maurer c62156fb77 In .:
2005-04-03  Ben Maurer  <[email protected]>

	* System.Xml.dll.sources: Kill multiplexing hack.

In System.Xml.Xsl:
2005-04-03  Ben Maurer  <[email protected]>

	* *.cs: Kill unmanaged xslt and the multiplexing hack.


svn path=/trunk/mcs/; revision=42497
2005-04-03 17:24:12 +00:00
Atsushi Eno c6abb6a8d8 2005-03-22 Atsushi Enomoto <[email protected]>
* XslTransform.cs : commented out warned code.


svn path=/trunk/mcs/; revision=42061
2005-03-22 07:15:52 +00:00
Atsushi Eno e26aab13f9 2005-03-09 Atsushi Enomoto <[email protected]>
* XsltContext.cs : removed GetNsm() from IStaticXsltContext and added
	  LookupNamespace() instead.
	* BUGS-MS.txt : more bug info.

	* XslFunctions.cs, Compiler.cs : Eliminated XPathNavigatorNsm class
	  to reduce references to stylesheet XPathNavigator. To accomplish it,
	  IStaticXsltContext does not declare GetNsm() anymore. All xslt
	  function types now directly hold IStaticXsltContext.
	* XslStylesheet.cs : removed "Compiler c" field.
	  Removed unused properties.


svn path=/trunk/mcs/; revision=41583
2005-03-09 05:17:39 +00:00
Atsushi Eno e6eeab0370 2005-03-04 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : more bug info.

	* ignore.lst : still more ignored cases.


svn path=/trunk/mcs/; revision=41451
2005-03-04 17:23:07 +00:00
Atsushi Eno 714e05df20 2005-02-25 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : still more bug info.


svn path=/trunk/mcs/; revision=41201
2005-02-25 14:39:58 +00:00
Atsushi Eno 3ea4af7d46 2005-02-25 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : more bug info.


svn path=/trunk/mcs/; revision=41190
2005-02-25 11:50:56 +00:00
Atsushi Eno b85ce84bcb 2005-02-24 Atsushi Enomoto <[email protected]>
* XslTransformImpl.cs : Load() should use argument XmlResolver to
	  get file stream. This fixes bug #72942.
	* BUGS-MS.txt : more bug info.


svn path=/trunk/mcs/; revision=41138
2005-02-24 06:08:13 +00:00
Atsushi Eno 7a5c526172 2005-02-23 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : all output_outputXXX comparison does not make sense.


svn path=/trunk/mcs/; revision=41090
2005-02-23 14:11:44 +00:00
Atsushi Eno 7d392ed4e7 2005-02-22 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : explaination on the last standalone test revert.


svn path=/trunk/mcs/; revision=41083
2005-02-23 08:38:42 +00:00
Atsushi Eno 6d662396f4 2005-02-21 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : more bug records.


svn path=/trunk/mcs/; revision=40989
2005-02-21 13:25:08 +00:00
Atsushi Eno 9b947194bf 2005-02-18 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : more bug records.


svn path=/trunk/mcs/; revision=40843
2005-02-18 06:37:45 +00:00
Atsushi Eno e37b430fad 2005-02-17 Atsushi Enomoto <[email protected]>
* Outputter.cs,
	  TextOutputter.cs,
	  GenericOutputter.cs : removed WriteStartDocument(), WriteEndDocument()
	  and WriteState. Writing XML declaration is done inside
	  DetermineOutputMethod().

	* ManagedXslTransform.cs : no need to write XML declaration here.


svn path=/trunk/mcs/; revision=40807
2005-02-17 13:52:01 +00:00
Atsushi Eno 883b87b62c 2004-12-08 Atsushi Enomoto <[email protected]>
* XsltException.cs, XsltCompileException.cs :
	  added SecurityPermissionAttributes.



svn path=/trunk/mcs/; revision=37399
2004-12-08 17:15:51 +00:00
Atsushi Eno 4ee0f81cce 2004-10-09 Atsushi Enomoto <[email protected]>
* XsltException.cs : Message is incorrectly regarded only after 2.0
	  (while it *disappeared* in 2.0).

svn path=/trunk/mcs/; revision=34839
2004-10-09 19:27:49 +00:00
Atsushi Eno a86ca5219b 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltException.cs : Message property is not overriden in NET_2_0.

svn path=/trunk/mcs/; revision=33037
2004-08-30 11:53:18 +00:00
Atsushi Eno 07cf99f854 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltException.cs : added NET_2_0 constructors too.

svn path=/trunk/mcs/; revision=33036
2004-08-30 11:35:47 +00:00
Atsushi Eno 84f8dee162 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltCompileException.cs : added NET_2_0 constructors.
	  Hide property Message under NET_2_0.

svn path=/trunk/mcs/; revision=33035
2004-08-30 11:31:52 +00:00
Atsushi Eno 3f7b10da20 2004-05-06 Atsushi Enomoto <[email protected]>
* ManagedXslTransform.cs : For Stream input, use StreamWriter for
	  input to GenericOutputter. Passing XmlWriter causes unexpected
	  xml declaration output.

svn path=/trunk/mcs/; revision=26816
2004-05-06 12:10:24 +00:00
Atsushi Eno 3ab4d9d56e 2004-03-27 Atsushi Enomoto <[email protected]>
* XsltContext.cs : Supply NameTable to base ctor().

svn path=/trunk/mcs/; revision=24659
2004-03-27 20:21:18 +00:00
Atsushi Eno 1da9ad39e9 2004-03-22 Atsushi Enomoto <[email protected]>
* XsltException.cs, XsltCompileException.cs : They had used
	  message field which were never set.

svn path=/trunk/mcs/; revision=24399
2004-03-22 05:47:56 +00:00
Atsushi Eno 626eca582a 2004-01-16 Atsushi Enomoto <[email protected]>
* Multiplexer.cs : Pass stream parameters as is (to handle
	  encoding correctly). Patch by Dariusz Olszewski. Bug #52913 fixed.
	* ManagedXslTransform.cs : In ctor() with stream, pass encoding
	  parameter also for managed transformer.

svn path=/trunk/mcs/; revision=22143
2004-01-16 04:14:04 +00:00
Atsushi Eno 7fe4c80155 2004-01-15 Atsushi Enomoto <[email protected]>
* ManagedXslTransform.cs : Pass TextReader's encoding for outputter.
	  don't write start and end document.

svn path=/trunk/mcs/; revision=22082
2004-01-15 02:53:48 +00:00
Atsushi Eno 5cecc5fa52 2003-12-25 Atsushi Enomoto <[email protected]>
* Multiplexer.cs : Now we use managed XSLT engine by default.
	  Added obsolete attribute to Transform()s without xmlresolver.

svn path=/trunk/mcs/; revision=21484
2003-12-25 05:16:41 +00:00
Atsushi Eno 16b920e823 2003-12-07 Atsushi Enomoto <[email protected]>
* XsltException.cs, XsltCompileException.cs : Added locatable .ctor().

svn path=/trunk/mcs/; revision=20824
2003-12-07 05:43:54 +00:00
Atsushi Eno 6dd94efd7a 2003-12-05 Atsushi Enomoto <[email protected]>
* Multiplexer.cs : set_XmlResolver is marked as obsolete.
	  Added new Transform() methods introduced in .NET 1.1.
	  CRLF and LF are desparately mixed, so adjusted to LF.
	* XslTransform.cs :
	  CRLF and LF are desparately mixed, so adjusted to CRLF.

svn path=/trunk/mcs/; revision=20795
2003-12-05 02:40:24 +00:00