content/xml/tests/xmlbase/xmlbase.xml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <?xml version="1.0" encoding="ISO-8859-1"?>
michael@0 2 <?xml-stylesheet href="xmlbase.css" type="text/css"?>
michael@0 3 <root xmlns:xlink="http://www.w3.org/1999/xlink">
michael@0 4 <title>Root: no xml:base</title>
michael@0 5 <xlink:link xlink:type="simple" xlink:href="a.xml">a.xml</xlink:link>
michael@0 6 <p>Expected: &lt;current path>/a.xml</p>
michael@0 7 <sect1 xml:base="http://www.mozilla.org">
michael@0 8 <title>Sect1: xml:base="http://www.mozilla.org"</title>
michael@0 9 <xlink:link xlink:type="simple" xlink:href="b.xml">b.xml</xlink:link>
michael@0 10 <p>Expected: http://www.mozilla.org/b.xml</p>
michael@0 11 <sect2 xml:base="/base">
michael@0 12 <title>Sect2: xml:base="/base"</title>
michael@0 13 <xlink:link xlink:type="simple" xlink:href="c.xml">c.xml</xlink:link>
michael@0 14 <p>Expected: http://www.mozilla.org/base/c.xml</p>
michael@0 15 <sect3 xml:base="">
michael@0 16 <title>Sect3: xml:base=""</title>
michael@0 17 <xlink:link xlink:type="simple" xlink:href="d.xml">d.xml</xlink:link>
michael@0 18 <p>Expected: http://www.mozilla.org/base/d.xml</p>
michael@0 19 </sect3>
michael@0 20 <sect3 xml:base="/">
michael@0 21 <title>Sect3: xml:base="/"</title>
michael@0 22 <xlink:link xlink:type="simple" xlink:href="d-2.xml">d-2.xml</xlink:link>
michael@0 23 <p>Expected: http://www.mozilla.org/d-2.xml</p>
michael@0 24 </sect3>
michael@0 25 <sect3 xml:base="/foobar">
michael@0 26 <title>Sect3: xml:base="/foobar"</title>
michael@0 27 <xlink:link xlink:type="simple" xlink:href="e.xml">e.xml</xlink:link>
michael@0 28 <p>Expected: http://www.mozilla.org/foobar/e.xml</p>
michael@0 29 </sect3>
michael@0 30 <sect3 xml:base="ding/dong">
michael@0 31 <title>Sect3: xml:base="ding/dong"</title>
michael@0 32 <xlink:link xlink:type="simple" xlink:href="f.xml">f.xml</xlink:link>
michael@0 33 <p>Expected: http://www.mozilla.org/base/ding/dong/f.xml</p>
michael@0 34 </sect3>
michael@0 35 </sect2>
michael@0 36 <sect2 xml:base="http://www.netscape.com">
michael@0 37 <title>Sect2: xml:base="http://www.netscape.com"</title>
michael@0 38 <xlink:link xlink:type="simple" xlink:href="g.xml">g.xml</xlink:link>
michael@0 39 <p>Expected: http://www.netscape.com/g.xml</p>
michael@0 40 </sect2>
michael@0 41 <sect2 xml:base="http://www.netscape.com">
michael@0 42 <title>Sect2: xml:base="http://www.netscape.com"</title>
michael@0 43 <xlink:link xlink:type="simple" xlink:href="http://www.mozilla.org/foobar/h.xml">http://www.mozilla.org/foobar/h.xml</xlink:link>
michael@0 44 <p>Expected: http://www.mozilla.org/foobar/h.xml</p>
michael@0 45 </sect2>
michael@0 46 <sect2 xml:base="http://www.netscape.com">
michael@0 47 <title>Sect2: xml:base="http://www.netscape.com"</title>
michael@0 48 <xlink:link xlink:type="simple" xlink:href="i.xml" xml:base="wow">i.xml, this element has xml:base="wow"</xlink:link>
michael@0 49 <p>Expected: http://www.netscape.com/wow/i.xml</p>
michael@0 50 </sect2>
michael@0 51 </sect1>
michael@0 52 <sect1 xml:base="nothere">
michael@0 53 <title>Sect1: xml:base="nothere"</title>
michael@0 54 <xlink:link xlink:type="simple" xlink:href="j.xml">j.xml</xlink:link>
michael@0 55 <p>Expected: &lt;current path>/nothere/j.xml</p>
michael@0 56 </sect1>
michael@0 57 <sect1 xml:base="/not">
michael@0 58 <title>Sect1: xml:base="/not"</title>
michael@0 59 <xlink:link xlink:type="simple" xlink:href="k.xml">k.xml</xlink:link>
michael@0 60 <p>Expected: file:///not/k.xml</p>
michael@0 61 </sect1>
michael@0 62 <sect1 xml:base="http://foobar.com/ä ö/">
michael@0 63 <title>Sect1: xml:base="http://foobar.com/ä ö/"</title>
michael@0 64 <xlink:link xlink:type="simple" xlink:href="l.xml">l.xml</xlink:link>
michael@0 65 <p>Expected: http://foobar.com/%E4%20%F6/l.xml</p>
michael@0 66 </sect1>
michael@0 67 <sect1 xml:base="http://foobar.com/ /%20/">
michael@0 68 <title>Sect1: xml:base="http://foobar.com/ /%20/"</title>
michael@0 69 <xlink:link xlink:type="simple" xlink:href="m.xml">m.xml</xlink:link>
michael@0 70 <p>Expected: http://foobar.com/%20/%20/m.xml</p>
michael@0 71 </sect1>
michael@0 72 <sect1 xml:base="chrome://navigator">
michael@0 73 <title>Sect1: xml:base="chrome://navigator"</title>
michael@0 74 <xlink:link xlink:type="simple" xlink:href="n.xml">n.xml</xlink:link>
michael@0 75 <p>Expected: |current path|/n.xml because chrome URL is not allowed</p>
michael@0 76 <sect2 xml:base="http://www.mozilla.org">
michael@0 77 <title>Sect2: xml:base="http://www.mozilla.org"</title>
michael@0 78 <xlink:link xlink:type="simple" xlink:href="o.xml" xml:base="chrome://navigator">o.xml, this element has xml:base="chrome://navigator"</xlink:link>
michael@0 79 <p>Expected: http://www.mozilla.org/o.xml because chrome base is not allowed</p>
michael@0 80 </sect2>
michael@0 81 </sect1>
michael@0 82 </root>

mercurial