Skip to content
This repository
Browse code

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...
commit c94519b45ad802f5276dcd3d73a0feeaf8e4a5f0 1 parent 84bda85
Taylor Carpenter taylor authored committed
4 assets/grammar-coore.xsd → assets/grammar-core.xsd
@@ -16,7 +16,9 @@
16 16 </xsd:documentation>
17 17 </xsd:annotation>
18 18 <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
19   - schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  19 + schemaLocation="xml.xsd"/>
  20 + <!--<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
  21 + schemaLocation="http://www.w3.org/2001/xml.xsd"/>-->
20 22 <xsd:annotation>
21 23 <xsd:documentation>General Datatypes</xsd:documentation>
22 24 </xsd:annotation>
5 assets/synthesis-core.xsd
@@ -20,7 +20,10 @@ It is provided "as is" without expressed or implied warranty.
20 20 <xsd:documentation>Importing dependent namespaces</xsd:documentation>
21 21 </xsd:annotation>
22 22 <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
23   - schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  23 + schemaLocation="xml.xsd"/>
  24 +
  25 + <!--<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
  26 + schemaLocation="http://www.w3.org/2001/xml.xsd"/>-->
24 27 <xsd:annotation>
25 28 <xsd:documentation>General Datatypes</xsd:documentation>
26 29 </xsd:annotation>

3 comments on commit c94519b

Sebastian Spier

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.

Taylor Carpenter
Collaborator

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).

Sebastian Spier

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.
Something went wrong with that request. Please try again.