xslt
4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>W3C XSLT Servlet</title>
<meta http-equiv="Content-Type" content="text/html">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b">
<p><a href="http://www.w3.org/"><img
src="http://www.w3.org/Icons/WWW/w3c_home" height="48" border="0"
alt="W3C"></a></p>
<h1>W3C XSLT Service</h1>
<p>See also: <a href="/2005/08/online_xslt/">Saxon based xslt 2.0
service</a></p>
<p>For now it is very rudimentary in its capabilities and likely to change
without notice. It is a simple wrapper (<a
href="http://dev.w3.org/cvsweb/java/classes/org/w3c/app/xsl/">source</a>)
around James Clark's <a href="http://www.jclark.com/xml/xt.html">XT</a> and
currently using his <a href="http://www.jclark.com/xml/xp/index.html">XP
parser</a> although there have been times where different engines and parsers
were used when the underlying servlet was replaced with another. There are
plans for a more capable online realtime XSLT service, when these plans gel
they will be linked to from here.</p>
<p>In addition to realtime transformations, there will be work in the nearer
term on a event and caching driven XSLT service drawing on <a
href="http://www.w3.org/W3C-LA/Mirroring">W3C's Evolving Mirroring
System</a>, CSV hooks and knowledge of W3C's publishing practices. What some
people would call a content management system.</p>
W3C maintains this for their own use, it is available for public use (see
conditions) but without warranty. <br>
This service is provided for interactive use by individuals only. <br>
You are welcome to install the application locally and run this as part of a
service you provide.<br>
Try it out:
<form method="get" action="/2000/06/webdata/xslt">
<label>URI for xsl resource <input type="text" size="50" name="xslfile"
value="http://www.w3.org/2001/05/xslt-example/xmlspec.xsl"></label><br>
<label>URI for xml resource <input type="text" size="60" name="xmlfile"
value="http://www.w3.org/2001/05/xslt-example/REC-xml-20001006.xml"></label><br>
<label><input type="checkbox" name="auth" value="proxy">Proxy basic authentication
for one or both of these resources</label><br>
(NOTE - only the topmost files whose uris you provide, not those refered by
the xsl file for instance, can have their authentications proxied at this
point - in other words no recursion at present. This calls a separate
program - <a
href="http://dev.w3.org/cvsweb/java/classes/org/w3c/app/xsl/ProxyAuthXSLtransformer.java">source</a>)<br>
*it can take other parameters, perhaps do so in a query string like this <a
href="http://www.w3.org/2000/06/webdata/xslt?xslfile=http://www.w3.org/2000/08/w3c-synd/home2rss.xsl&xmlfile=http://www.w3.org/&Base=http://www.w3.org/&Channel=http://www.w3.org/2000/08/w3c-synd/home.rss&Page=http://www.w3.org/">example
RSS</a> or custom HTML form<br>
<input type="submit" value="Submit" name="transform"></form>
<p>The default values in the form point to the XML source of the second
edition of the XML 1.0 Recommendation, as well as the stylesheet used to
format the W3C recommendations to HTML. Running the transformation will
display the HTML version of the spec, similar to <a
href="/TR/REC-xml.html">the one in the Technical Reports section.</a></p>
<p>Another way to do XSLT is to use a browser that can perform
transformations. Then, if you load an XML file that points to an XSLT
stylesheet (<a
href="http://www.w3.org/2001/05/xslt-example/REC-xml-20001006.xml">example
here</a>) the browser will do the transformation and display the result HTML.
To this date, two browsers support: XSLT 1.0:</p>
<ul>
<li>Internet Explorer 5, with the MSXML3 add-on (see Microsoft's <a
href="http://msdn.microsoft.com/library/psdk/xmlsdk/xslp44kx.htm">FAQ</a>
for more information). IE6 will have native XSLT support (a <a
href="http://www.microsoft.com/windows/ie/preview/default.asp">public
preview </a>is already available)</li>
<li>Mozilla (partial support): version 0.9.1, released May 28 2001,
includes <a href="http://www.mozilla.org/projects/xslt/">TransforMiiX
</a>(Mozilla's XSLT engine). </li>
</ul>
<br>
feedback: <a
href="mailto:ted+xslt-service@w3.org,mf+xslt-service@w3.org,www-archive@w3.org">Ted,
Max and Site Comments</a>(<a
href="http://www.w3.org/Archives/Public/site-comments/">public
archive</a>)<br>
$Id: xslt.html,v 1.19 2006/01/18 21:41:51 ted Exp $
<address>
<a href="http://www.w3.org/People/all#ted">Ted Guild</a>
</address>
</body>
</html>