$ cat 02-07.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html><head><title>Address list of VIPs</title></head>
<body>
<p align="center"><img src="corky.jpg" width="120" height="171"/></p>
<p>Blah, blah.
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
$ java -cp ~/Dropbox/java/lib/saxon9he.jar net.sf.saxon.Transform -t -s:02-01.xml -xsl:02-07.xsl
Saxon-HE 9.3.0.4J from Saxonica
Java version 1.6.0_24
Warning: at xsl:stylesheet on line 2 column 80 of 02-07.xsl:
Running an XSLT 1 stylesheet with an XSLT 2 processor
Stylesheet compilation time: 278 milliseconds
Processing file:/Volumes/Macintosh%20HD2/Dropbox/xml/02-01.xml
Using parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Building tree for file:/Volumes/Macintosh%20HD2/Dropbox/xml/02-01.xml using class net.sf.saxon.tree.tiny.TinyBuilder
Tree built in 6 milliseconds
Tree size: 70 nodes, 100 characters, 6 attributes
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Address list of VIPs</title>
</head>
<body>
<p align="center"><img src="corky.jpg" width="120" height="171"></p>
<p>Blah, blah.
</p>
</body>
</html>Execution time: 42ms
Memory used: 14636736
NamePool contents: 39 entries in 38 chains. 8 prefixes, 8 URIs
$
2011年5月1日日曜日
[XML VQG] 2. XSLT (7)
Second example.
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿