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