Cagliostro
Programmer
Help me please to start. I want some simpliest sample on how does xsl work, some simple xml and some simple xsl which show this xml in the browser.
I have created this ones which not shows nothing in the browser:
<!--xxxxx.xml-->
<?xml version="1.0" ?>
<?xml-stylesheet href="xxxxx.xsl" type="text/xsl" ?>
<!DOCTYPE tb [
<!ELEMENT tb (row*)>
<!ELEMENT row (cell+)>
<!ELEMENT cell (#PCDATA)>
]>
<tb>
<row>
<cell>1.1</cell><cell>1.2</cell>
</row>
<row>
<cell>2.1</cell><cell>2.2</cell>
</row>
</tb>
<!--xxxxx.xsl-->
<xsl>
<rule>
<root/>
<html>
<head>
<title>this is an xml/xsl</title>
</head>
<body>
<children/>
</body>
</html>
</rule>
<rule>
<target-element type="tb"/>
<table>
<children/>
</table>
</rule>
<rule>
<target-element type="row"/>
<tr>
<children/>
</tr>
</rule>
<rule>
<target-element type="cell"/>
<td>
<children/>
</td>
</rule>
</xsl> Ion Filipski
filipski@excite.com
I have created this ones which not shows nothing in the browser:
<!--xxxxx.xml-->
<?xml version="1.0" ?>
<?xml-stylesheet href="xxxxx.xsl" type="text/xsl" ?>
<!DOCTYPE tb [
<!ELEMENT tb (row*)>
<!ELEMENT row (cell+)>
<!ELEMENT cell (#PCDATA)>
]>
<tb>
<row>
<cell>1.1</cell><cell>1.2</cell>
</row>
<row>
<cell>2.1</cell><cell>2.2</cell>
</row>
</tb>
<!--xxxxx.xsl-->
<xsl>
<rule>
<root/>
<html>
<head>
<title>this is an xml/xsl</title>
</head>
<body>
<children/>
</body>
</html>
</rule>
<rule>
<target-element type="tb"/>
<table>
<children/>
</table>
</rule>
<rule>
<target-element type="row"/>
<tr>
<children/>
</tr>
</rule>
<rule>
<target-element type="cell"/>
<td>
<children/>
</td>
</rule>
</xsl> Ion Filipski

filipski@excite.com