]> gitweb.factorcode.org Git - factor.git/commitdiff
xml.data: some lint fixes.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 13 Jul 2012 02:24:18 +0000 (19:24 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 13 Jul 2012 02:24:18 +0000 (19:24 -0700)
basis/xml/data/data-docs.factor
basis/xml/data/data.factor

index 97aa362c17b9eddf58e1283391929d502a2efa17..17a63348e37524cb67bad7935fa9adc8bda9e4df 100644 (file)
@@ -201,7 +201,7 @@ HELP: notation-decl
 { $class-description "Describes the class of element declarations, like " { $snippet "<!NOTATION jpg SYSTEM './jpgviewer'>" } "." } ;
 
 HELP: <notation-decl>
-{ $values { "name" string } { "id" id } { "notation-decl" notation-decl } }
+{ $values { "name" string } { "id" string } { "notation-decl" notation-decl } }
 { $description "Creates an notation declaration object, of the class " { $link notation-decl } "." } ;
 
 HELP: doctype-decl
index 9752d19bf247d03e392e4e6803427d8c316fc196..3a9db764ffcaf2a4ea022a6d06fb5b49c9798d31 100644 (file)
@@ -110,6 +110,8 @@ C: <system-id> system-id
 TUPLE: public-id { pubid-literal string } { system-literal string } ;
 C: <public-id> public-id
 
+UNION: id system-id public-id ;
+
 TUPLE: dtd
     { directives sequence }
     { entities assoc }
@@ -118,7 +120,7 @@ C: <dtd> dtd
 
 TUPLE: doctype-decl < directive
     { name string }
-    { external-id maybe{ system-id public-id } }
+    { external-id maybe{ id } }
     { internal-subset maybe{ dtd } } ;
 C: <doctype-decl> doctype-decl