Bug 26755 - Cannot load XSLT files that contain scripts
Summary: Cannot load XSLT files that contain scripts
Status: VERIFIED FEATURE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.1
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2015-02-04 15:55 UTC by Cody Beyer (MSFT)
Modified: 2015-02-19 08:42 UTC (History)
3 users (show)

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


Attachments
TestCase and StackTrace (28.38 KB, application/zip)
2015-02-04 15:55 UTC, Cody Beyer (MSFT)
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FEATURE

Description Cody Beyer (MSFT) 2015-02-04 15:55:30 UTC
Created attachment 9650 [details]
TestCase and StackTrace

### Description

If an XLST scripting file attempts to load, an error will be thrown stating that the functionality is not implemented. This is contrary to the documentation, located here: http://androidapi.xamarin.com/?link=T%3aSystem.Xml.Xsl.XslCompiledTransform

### Test Case

Attached

### Steps to Reproduce

1. Open attached test case
2. Deploy to Xamarin Android Player
3. Tap button

### Expected Results

The button tap will cause two xslt files to load, one without scripts, followed by one with

### Actual results

The script-less file loads, and then the app crashes upon its attempt to load the scripted file

### StackTrace

Attached

### Version

=== Xamarin Studio ===

Version 5.7.1 (build 14)
Installation UUID: 05ebd865-76e1-4bc2-84a5-7bba54e97af1
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.1.20 (Business Edition)
Hash: 3b3ef43
Branch: 
Build date: 2015-01-24 09:42:21-0500

=== Xamarin.Mac ===

Version: 1.12.0.4 (Business Edition)

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
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)

=== Build Information ===

Release ID: 507010014
Git revision: a4dd61ad7f8b3695be4b17bcb5c3ae6b81438cf7
Build date: 2015-01-19 15:21:09-05
Xamarin addins: 081208fe3bbf40e24a562867c6c7fba20a9b94b6

=== Operating System ===

Mac OS X 10.10.2
Darwin beyer.router 14.1.0 Darwin Kernel Version 14.1.0
    Mon Dec 22 23:10:38 PST 2014
    root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
Comment 1 Jonathan Pryor 2015-02-04 21:46:57 UTC
This will presumably be moot when Mono's XML stack is rebased atop the Microsoft referencesource stack...
Comment 2 Naqeeb 2015-02-05 05:31:03 UTC
I have checked this issue with the help of steps given in bug description and able to reproduce this successfully.

Screencast: http://www.screencast.com/t/qqJSWJRY

Ide log: https://gist.github.com/Mohit-Kheterpal/d2ebbf810b1164788664
Application Output: https://gist.github.com/Mohit-Kheterpal/d9923733936879d28096
Exception Detail: https://gist.github.com/Mohit-Kheterpal/a5e2a99ac07868c12f14 
XAP log: https://gist.github.com/Mohit-Kheterpal/53ba916cf8f0e24b2e61

Environment info: 
=== Xamarin Studio ===

Version 5.7.1 (build 14)
Installation UUID: 3dbf10c4-ed30-4e55-8a8b-1704777c7b5f
Runtime:
 Mono 3.12.0 ((detached/de2f33f)
 GTK+ 2.24.23 (Raleigh theme)

 Package version: 312000076

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 8.6.1.20 (Enterprise Edition)
Hash: 3b3ef43
Branch: 
Build date: 2015-01-24 09:42:21-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Enterprise Edition)
Android SDK: /Users/apprpject/Desktop/android-sdk-macosx
 Supported Android versions:
  2.1    (API level 7)
  2.2    (API level 8)
  2.3    (API level 10)
  3.1    (API level 12)
  4.0    (API level 14)
  4.0.3  (API level 15)
  4.1    (API level 16)
  4.2    (API level 17)
  4.3    (API level 18)
  4.4    (API level 19)
  4.4.87 (API level 20)
  5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: 1.12.0.4 (Enterprise Edition)

=== Build Information ===

Release ID: 507010014
Git revision: a4dd61ad7f8b3695be4b17bcb5c3ae6b81438cf7
Build date: 2015-01-19 15:21:09-05
Xamarin addins: 081208fe3bbf40e24a562867c6c7fba20a9b94b6

=== Operating System ===

Mac OS X 10.8.5
Darwin localhost 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 3 aer127 2015-02-05 10:37:20 UTC
Jonathan Pryor, any idea when this rebasing will occur?
Comment 4 Atsushi Eno 2015-02-05 10:59:02 UTC
No, Xamarin.Android does NOT Support msxsl:script, because our common System.Xml codebase with Xamarin.iOS does not support dynamic code generation.

This will not change even after our referencesource switch. We will explicitly kill it.
Comment 5 Naqeeb 2015-02-19 08:42:44 UTC
As per comment 4 this is a feature. Hence closing this issue.