Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@veritas-vos-liberabit.com>2012-11-23 23:56:32 +0400
committerAtsushi Eno <atsushieno@veritas-vos-liberabit.com>2012-11-23 23:56:32 +0400
commite2b2d181084848f3c5dde2788370db1b79893c69 (patch)
treebe2c3a8606db6b6fd029b15c7242799427b4379e /mcs/class/Commons.Xml.Relaxng
parentaa82d6c32e001df807a0e9196b5e088834bbb3c7 (diff)
parent57d05a2378114770c92d0c8619153b4df01478d3 (diff)
Merge pull request #409 from Alkarex/patch-1
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern....
Diffstat (limited to 'mcs/class/Commons.Xml.Relaxng')
-rwxr-xr-xmcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs b/mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
index a6e19404b37..009c03b6bb7 100755
--- a/mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
+++ b/mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
@@ -83,8 +83,8 @@ namespace Commons.Xml.Relaxng
RelaxngGrammar g = null;
RelaxngPattern p;
try {
- if (grammar.IsSourceCompactSyntax) {
- p = RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
+ if (uri.AbsolutePath.EndsWith(".rnc", StringComparison.InvariantCultureIgnoreCase)) {
+ p = RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, uri.AbsoluteUri, nsContext);
} else {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, nsContext, grammar.Resolver);