Skip to content

Commit

Permalink
modified schema to use local xml.xsd
Browse files Browse the repository at this point in the history
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
taylor authored and benlangfeld committed Sep 12, 2011
1 parent 84bda85 commit c94519b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/grammar-coore.xsd → assets/grammar-core.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 4 additions & 1 deletion assets/synthesis-core.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

3 comments on commit c94519b

@spier
Copy link

@spier spier commented on c94519b Oct 16, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor Author

@taylor taylor commented on c94519b Oct 16, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@spier
Copy link

@spier spier commented on c94519b Oct 17, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.