]> gitweb.factorcode.org Git - factor.git/commitdiff
xml: fix namespaces to be http
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 28 Aug 2023 16:09:29 +0000 (09:09 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 28 Aug 2023 16:09:29 +0000 (09:09 -0700)
basis/furnace/chloe-tags/chloe-tags.factor
basis/help/tour/tour.factor
basis/html/html.factor
basis/syndication/syndication.factor
basis/xml/name/name.factor
extra/codebook/codebook.factor
extra/html5/html5.factor

index aa20c80ba224c066ad4683386114d4604b0b9dfd..74e3a6d83b010495b544b14cd1d98bb8bdef893c 100644 (file)
@@ -114,7 +114,7 @@ CHLOE: form
 
 : button-tag-markup ( -- xml )
     <XML
-        <t:form class="inline" xmlns:t="https://factorcode.org/chloe/1.0">
+        <t:form class="inline" xmlns:t="http://factorcode.org/chloe/1.0">
             <div style="display: inline;"><button type="submit"></button></div>
         </t:form>
     XML> body>> clone ;
index 5345704bca44fa4035cde9a449d79974f2368517..4cb95553361b408cacdea2e7f3f62a9aaf4fea13 100644 (file)
@@ -1305,7 +1305,7 @@ In order for all this to work, create a file { $snippet "work/hello-furnace/gree
 
 { $code "<?xml version='1.0' ?>
 
-<t:chloe xmlns:t=\"https://factorcode.org/chloe/1.0\">
+<t:chloe xmlns:t=\"http://factorcode.org/chloe/1.0\">
     <p>Hello from Chloe</p>
 </t:chloe>" }
 
index 71a2fc689d6319c4ad5902846210901ad1dc0ef4..c67211c7cc3ca14b093b9bf641b91b260431fb38 100644 (file)
@@ -12,7 +12,7 @@ M: empty-prolog write-xml drop ;
 : simple-page ( title head body -- xml )
     <XML
         <!DOCTYPE html>
-        <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
             <head>
                 <title><-></title>
                 <->
index caecd9e37a7f9fb083fb12216bfe1a9eae4cd420..8e6010fbca2a393075b2938646584527d9a655fc 100644 (file)
@@ -139,7 +139,7 @@ M: byte-array parse-feed [ bytes>xml xml>feed ] with-html-entities ;
     [ url>> present ]
     [ entries>> [ entry>xml ] map ] tri
     <XML
-        <feed xmlns="https://www.w3.org/2005/Atom">
+        <feed xmlns="http://www.w3.org/2005/Atom">
             <title><-></title>
             <link rel="alternate" href=<-> />
             <->
index 0367c60f6fb886382c930b5c52ea73f7ac24ca56..d9de6420e72f5fb31ba059cf16ab0fa05cba03fb 100644 (file)
@@ -36,8 +36,8 @@ SYMBOL: ns-stack
 
 : init-ns-stack ( -- )
     V{ H{
-        { "xml" "https://www.w3.org/XML/1998/namespace" }
-        { "xmlns" "https://www.w3.org/2000/xmlns" }
+        { "xml" "http://www.w3.org/XML/1998/namespace" }
+        { "xmlns" "http://www.w3.org/2000/xmlns" }
         { "" "" }
     } } clone
     ns-stack set ;
index 9ead19053b6fa40784ccf302b063ab5d9984705a..3e3f72faca2fb25cb72709bd7673f53929a0b784 100644 (file)
@@ -103,7 +103,7 @@ TUPLE: code-file
         <body>
             <h2><-name-></h2>
             <pre><-html-lines-></pre>
-            <mbp:pagebreak xmlns:mbp="https://www.mobipocket.com/mbp" />
+            <mbp:pagebreak xmlns:mbp="http://www.mobipocket.com/mbp" />
         </body>
     </html> XML> ;
 
@@ -127,7 +127,7 @@ TUPLE: code-file
                 at <-timestamp-></font><br/>
                 <br/>
                 <ul><-toc-></ul>
-                <mbp:pagebreak xmlns:mbp="https://www.mobipocket.com/mbp" />
+                <mbp:pagebreak xmlns:mbp="http://www.mobipocket.com/mbp" />
             </body>
         </html> XML>
     ] with-directory ;
@@ -147,7 +147,7 @@ TUPLE: code-file
     ] map-index :> file-nav-points
 
     <XML <?xml version="1.0" encoding="UTF-8" ?>
-    <ncx version="2005-1" xmlns="https://www.daisy.org/z3986/2005/ncx/">
+    <ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx/">
         <navMap>
             <navPoint class="book" id="toc" playOrder="1">
                 <navLabel><text>Table of Contents</text></navLabel>
@@ -171,9 +171,9 @@ TUPLE: code-file
     <XML <?xml version="1.0" encoding="UTF-8" ?>
     <package
         version="2.0"
-        xmlns="https://www.idpf.org/2007/opf"
+        xmlns="http://www.idpf.org/2007/opf"
         unique-identifier=<-name->>
-        <metadata xmlns:dc="https://purl.org/dc/elements/1.1/">
+        <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
             <dc:title><-name-></dc:title>
             <dc:language>en</dc:language>
             <meta name="cover" content="my-cover-image" />
index 839a2c97575852c5c1a477d1c1f0a2c053c487df..c97944ca40fd5124198d1804fc102c470835b986 100644 (file)
@@ -14,12 +14,12 @@ IN: html5
 ! https://html.spec.whatwg.org/multipage/parsing.html#tokenization
 
 ! https://infra.spec.whatwg.org/#namespaces
-CONSTANT: html-namespace "https://www.w3.org/1999/xhtml"
-CONSTANT: mathml-namespace "https://www.w3.org/1998/Math/MathML"
-CONSTANT: svg-namespace "https://www.w3.org/2000/svg"
-CONSTANT: xlink-namespace "https://www.w3.org/1999/xlink"
-CONSTANT: xml-namespace "https://www.w3.org/XML/1998/namespace"
-CONSTANT: xmlns-namespace "https://www.w3.org/2000/xmlns/"
+CONSTANT: html-namespace "http://www.w3.org/1999/xhtml"
+CONSTANT: mathml-namespace "http://www.w3.org/1998/Math/MathML"
+CONSTANT: svg-namespace "http://www.w3.org/2000/svg"
+CONSTANT: xlink-namespace "http://www.w3.org/1999/xlink"
+CONSTANT: xml-namespace "http://www.w3.org/XML/1998/namespace"
+CONSTANT: xmlns-namespace "http://www.w3.org/2000/xmlns/"
 
 DEFER: data-state
 DEFER: (data-state)