Simple test sets for the xml-stylesheet PI
I hereby waive all copyright and related or neighboring rights
together with all associated claims and causes of action with respect
to this work to the extent possible under the law, per the terms of
CC0 1.0 Universal: See
http://creativecommons.org/publicdomain/zero/1.0/
'Works in ...' below refers to Chrome 15.0.874.120 m, Firefox 3.6.23,
IE9, Opera 11.52, running on Windows 7 64bit
Simple test set for use of xml-stylesheet PI to invoke XSLT
See also README.
- test0.xml (no SS)
- XML in, doc tree displayed in Chrome, Firefox, IE, Opera
- test1.xml (+ xmlss→doc.xsl as text/xsl)
- XML in, XHTML produced by SS.
Works in IE, Chrome, Opera, Firefox
[res1.html shows the XHTML which is produced]
- test1a.xml (+ xmlss→doc.xsl as application/xslt+xml)
- XML in, XHTML produced by SS.
Works in IE, but not in Chrome, Opera or Firefox
- test1b.xml (+ xmlss→doc.xsl as text/banana)
- XML in, text content displayed (Firefox, IE)/doc tree displayed (Opera, Chrome)
- test1c.xml (+ xmlss→doc.xsl as text/xsl, xmlss→triv.css as text/css)
- XML in, XHTML produced by SS, CSS not used
Works in IE, Chrome, Opera, Firefox
- test2.xml (+ xmlss→doc2.xsl as text/xsl)
- XML in, HTML produced by SS.
Works in IE, Chrome, Opera, Firefox
[res2.html shows the XHTML which is produced]
- test3.html (+ link rel=stylesheet → doc.xsl)
- XHTML in, SS not applied
Works in IE, Chrome, Opera, Firefox (but note that Chrome fetches the SS)
- test3a.html (+xmlss→triv.css as text/css)
- XHTML in, CSS is applied
Works in IE, Chrome, Opera, Firefox
- test4.html (+ xmlss→doc3.xsl as text/xsl)
- XHTML in, new XHTML produced by SS.
Works in IE, Chrome, Opera, Firefox
- test4a.html (+ xmlss→doc3.xsl as text/xsl, +xmlss→triv.css as text/css)
- XHTML in, new XHTML produced by SS, CSS is not applied
Works in IE, Chrome, Opera, Firefox
Simple test set for use of two xml-stylesheets PIs to invoke XSLT/CSS
See also README2.
- test5.xml (+ xmlss→doc4.xsl and xmlss→doc.xsl as text/xsl)
- XML in, XHTML produced by doc.xsl out (Firefox)
XHTML produced by doc4.xsl out (Chrome, IE, Opera)
- test5a.xml (+ xmlss→doc.xsl and xmlss→doc4.xsl as text/xsl)
- XML in, XHTML produced by doc4.xsl out (Firefox)
XHTML produced by doc.xsl out (Chrome, IE, Opera)
- test5b.xml (+ xmlss→doc.xsl and xmlss→doc4.xsl as text/xsl,
both w. alternate="yes" and title="plain/scrambled" resp.)
- XML in, raw text (no markup) out (Firefox)
XHTML produced by doc.xsl out (Chrome, IE, Opera)
- test5c.xml (+ xmlss→doc4.xsl and xmlss→doc.xsl as text/xsl,
first w. alternate="yes" and title="scrambled")
- XML in, XHTML produced by doc.xsl out (Firefox)
XHTML produced by doc4.xsl out (Chrome, IE, Opera)
- test5d.xml (+ xmlss→doc.xsl and xmlss→doc4.xsl as text/xsl,
second w. alternate="yes" and title="scrambled")
- XML in, XHTML produced by doc.xsl out (Firefox, Chrome, IE, Opera)
- test5e.xml (+ xmlss→doc.xsl and xmlss→doc4.xsl as text/xsl,
w. title="plain/scrambled" resp.)
.htaccess says Default-Style is plain
- XML in, XHTML produced by doc4.xsl out (Firefox) [i.e. FF doesn't implement D-S]
XHTML produced by doc.xsl out (Chrome, IE, Opera)
- test5f.xml (+ xmlss→doc.xsl and xmlss→doc4.xsl as text/xsl,
w. title="plain/scrambled" resp.)
.htaccess says Default-Style is scrambled
- XML in, XHTML produced by doc4.xsl out (Firefox)
XHTML produced by doc.xsl out (Chrome, IE, Opera) [i.e. others don't
implement D-S]
- test6.html (+ xmlss→triv.css, xmlss→triv2.css as text/css)
- XHTML in, showing XHTML decorated by both CSS.
Works in IE, Chrome, Opera, Firefox
- test6a.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
both w. alternate='yes', title=pink/yellow resp.)
- XHTML in, showing XHTML w. no CSS,
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No CSS UI-exposed way to invoke either CSS in Chrome
- test6b.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
second w. alternate='yes', title=yellow)
- XHTML in, showing XHTML w. triv.css decoration,
decorable by triv2.css or not per user selection.
Works in Opera, Firefox, IE
No CSS UI-exposed way to add triv2.css in Chrome
- test6d.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
both w. alternate='yes', title=pink/yellow resp.)
.htaccess says Default-Style is pink, content-type is text/xml
- XHTML in, showing XHTML w. triv.css decoration
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No decoration or UI-exposed way to invoke either CSS in Chrome
(but Chrome does fetch both .css files)
- test6e.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
both w. alternate='yes', title=pink/yellow resp.)
.htaccess says Default-Style is yellow, content-type is text/xml
- XHTML in, showing XHTML w. triv2.css decoration
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No decoration or UI-exposed way to invoke either CSS in Chrome
(but Chrome does fetch both .css files)
- test6f.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
both w. alternate='yes', title=pink/yellow resp.)
<meta content="pink" http-equiv="Default-Style"/>
- XHTML in, showing XHTML w. triv.css decoration
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No decoration or UI-exposed way to invoke either CSS in Chrome
(but Chrome does fetch both .css files)
- test6g.html (+ xmlss→triv.css, xmlss→triv2.css as text/css,
both w. alternate='yes', title=pink/yellow resp.)
<meta content="yellow" http-equiv="Default-Style"/>
- XHTML in, showing XHTML w. triv2.css decoration
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No decoration or UI-exposed way to invoke either CSS in Chrome
(but Chrome does fetch both .css files)
- test7.html (+ xmlss→triv.css, link rel='stylesheet'→triv2.css as text/css)
XHTML in, showing XHTML decorated by both CSS
- Works in IE, Chrome, Opera, Firefox
- test7a.html (+ xmlss→triv.css w. alternate='yes',
link rel='stylesheet alternate'→triv2.css as text/css,
title=pink/yellow resp.)
- XHTML in, showing XHTML w. no CSS,
decorable by one or other CSS per user selection.
Works in Opera, Firefox, IE
No CSS UI-exposed way to invoke either CSS in Chrome
- test7b.html (+ xmlss→triv.css,
link rel='stylesheet alternate'→triv2.css as text/css,
title=yellow)
- XHTML in, showing XHTML w. triv.css decoration,
decorable by triv2.css or not per user selection.
Works in Opera, Firefox, IE
No CSS UI-exposed way to add triv2.css in Chrome
- test8.xml (+ xmlss→xml8.css)
- non-XHTML XML in, showing XML as decorated by CSS
Works in Chrome, Firefox, IE, Opera