Skip to content

Instantly share code, notes, and snippets.

@sideshowbarker
Created March 8, 2015 04:44
Show Gist options
  • Select an option

  • Save sideshowbarker/968492b14ba79fa5f11b to your computer and use it in GitHub Desktop.

Select an option

Save sideshowbarker/968492b14ba79fa5f11b to your computer and use it in GitHub Desktop.

Revisions

  1. sideshowbarker created this gist Mar 8, 2015.
    29 changes: 29 additions & 0 deletions gistfile1.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    --- rash-html.rng 2015-03-07 02:32:38.000000000 +0900
    +++ rash-html-fixed.rng 2015-03-08 13:39:07.000000000 +0900
    @@ -14,7 +14,7 @@
    Under the following terms:
    * Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    -->
    -<grammar
    +<grammar ns="http://www.w3.org/1999/xhtml"
    xmlns="http://relaxng.org/ns/structure/1.0"
    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
    @@ -27,8 +27,8 @@
    <element name="html">
    <attribute name="prefix">
    <data type="string">
    - <param name="pattern">.*schema:\s+http://schema.org/.*</param>
    - <param name="pattern">.*prism:\s+http://prismstandard.org/namespaces/basic/2.0/.*</param>
    + <param name="pattern">[\s\S]*schema:\s+http://schema.org/[\s\S]*</param>
    + <param name="pattern">[\s\S]*prism:\s+http://prismstandard.org/namespaces/basic/2.0/[\s\S]*</param>
    </data>
    </attribute>
    <ref name="attributes_html_generic" />
    @@ -895,4 +895,4 @@
    <ref name="attributes_rdfa_macro" />
    </define>
    <!-- /END Content Models -->
    -</grammar>
    \ No newline at end of file
    +</grammar>