2017-04-18 07:52:04 +08:00
|
|
|
## XSLT style sheet exception message changed
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Scope
|
|
|
|
Edge
|
|
|
|
|
|
|
|
### Version Introduced
|
|
|
|
4.5
|
|
|
|
|
|
|
|
### Source Analyzer Status
|
|
|
|
Available
|
|
|
|
|
|
|
|
### Change Description
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
In the .NET Framework 4.5, the text of the error message when an XSLT file is
|
|
|
|
too complex is "The style sheet is too complex." In previous versions, the error
|
|
|
|
message was "XSLT compile error." Application code that depends on the text of
|
|
|
|
the error message will no longer work. However, the exception types remain the
|
|
|
|
same, so this change should have no real impact.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
- [ ] Quirked
|
|
|
|
- [ ] Build-time break
|
|
|
|
|
|
|
|
### Recommended Action
|
2017-04-21 02:19:05 +08:00
|
|
|
|
2017-08-24 03:57:22 +08:00
|
|
|
Update any app code depending on the exception message from this error condition
|
2017-04-21 02:19:05 +08:00
|
|
|
to expect the new message, or (even better) update the code to depend only on
|
|
|
|
the exception type (<xref:System.Xml.Xsl.XsltException?displayProperty=name>),
|
|
|
|
which has not changed.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Affected APIs
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.String)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Type)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Xml.XmlReader)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Xml.XPath.IXPathNavigable)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Reflection.MethodInfo,System.Byte[],System.Type[])`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.String,System.Xml.Xsl.XsltSettings,System.Xml.XmlResolver)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Xml.XmlReader,System.Xml.Xsl.XsltSettings,System.Xml.XmlResolver)`
|
|
|
|
* `M:System.Xml.Xsl.XslCompiledTransform.Load(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltSettings,System.Xml.XmlResolver)`
|
|
|
|
|
|
|
|
### Category
|
|
|
|
XML, XSLT
|
|
|
|
|
2017-04-18 07:52:04 +08:00
|
|
|
<!-- breaking change id: 35 -->
|