Permalink
Browse files

modified schema to use local xml.xsd

It was already local and I was getting remote retrieve errors from
nokogiri some times --

  nokogiri-1.5.0/lib/nokogiri/xml/schema.rb:37:in `from_document': Element
  '{http://www.w3.org/2001/XMLSchema}import': Failed to parse the XML

resource 'http://www.w3.org/2001/xml.xsd'. (Nokogiri::XML::SyntaxError)
  • Loading branch information...
1 parent 84bda85 commit c94519b45ad802f5276dcd3d73a0feeaf8e4a5f0 @taylor taylor committed with benlangfeld Sep 11, 2011
Showing with 7 additions and 2 deletions.
  1. +3 −1 assets/{grammar-coore.xsd → grammar-core.xsd}
  2. +4 −1 assets/synthesis-core.xsd
@@ -16,7 +16,9 @@
</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
- schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+ schemaLocation="xml.xsd"/>
+ <!--<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/xml.xsd"/>-->
<xsd:annotation>
<xsd:documentation>General Datatypes</xsd:documentation>
</xsd:annotation>
@@ -20,7 +20,10 @@ It is provided "as is" without expressed or implied warranty.
<xsd:documentation>Importing dependent namespaces</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
- schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+ schemaLocation="xml.xsd"/>
+
+ <!--<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/xml.xsd"/>-->
<xsd:annotation>
<xsd:documentation>General Datatypes</xsd:documentation>
</xsd:annotation>

3 comments on commit c94519b

spier commented on c94519b Oct 16, 2011

Did you manage to find another solution to this issue?
I am seeing a similar behavior of Nokogiri but it does not feel quite right to change the schemaLocation.

Contributor

taylor replied Oct 16, 2011

Not yet. That is on the TODO list, but lower priority.

The one reason I am semi-okay with it is when you have a non-internet connected app. Which is possible with telephony (ruby_speech + Adhearsion + non-SIP end-points).

I am surprised that not more people are reporting this behavior. Or I am just not finding such reports.

I was getting this behavior when trying to validate an XML doc against it's XSD. Same for you?

Please sign in to comment.