Bug 37354 - Issue in System.Xml.Xsl.XsltOld.BuilderInfo
Summary: Issue in System.Xml.Xsl.XsltOld.BuilderInfo
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.XML (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-31 16:43 UTC by Cody Beyer (MSFT)
Modified: 2015-12-31 16:43 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Cody Beyer (MSFT) 2015-12-31 16:43:31 UTC
### Description

In the System.Xml.Xsl.XsltOld.BuilderInfo class in the ValueAppend method,
when disableoutputescaping is specified, a null string is inserted in the
TextInfo table (internal property) before the actual value.

In the Xml.Xsl.XsltOld.WriterOutput class and the RecordDone method, when
the XmlNodeType is Text, the method called on the writer is always
WriteString, regardless of the TextInfo table. When disableoutputescaping
is set, the method that should be called is WriteRaw.

### Additional Details

It appears the expected behavior would result if a method is used similar to:

https://github.com/Microsoft/referencesource/blob/e458f8df6ded689323d4bd1a2a725ad32668aaec/System.Data.SqlXml/System/Xml/Xsl/XsltOld/SequentialOutput.cs

### Versions

=== Xamarin Studio ===

Version 5.10.2 (build 49)
Installation UUID: ec854cd7-6f45-4fee-8681-b7c5f01851c9
Runtime:
	Mono 4.2.2 (explicit/7b87787)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402020010

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.0.1.5 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: 9.4.1.12 (Business Edition)
Hash: 78c6cd3
Branch: master
Build date: 2015-12-17 18:29:42-0500

=== Xamarin.Mac ===

Version: 2.4.1.5 (Business Edition)

=== Build Information ===

Release ID: 510020049
Git revision: deed4cd240ff3611c8742bbc62296e207f46173d
Build date: 2015-12-17 11:13:36-05
Xamarin addins: 8bd975e7b465f6fe812b64d736f3b7e8c1a79a3e
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.11.2
Darwin Codys-Mac.local 15.2.0 Darwin Kernel Version 15.2.0
    Fri Nov 13 19:56:56 PST 2015
    root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64

Note You need to log in before you can comment on or make changes to this bug.