Guest_imported
New member
- Jan 1, 1970
- 0
Look at this files, please, and tell me why the title of page it is shown also on the html page.
I have an xml files like that:
<root>
<page>
<title>asta la vista baby
</tile>
<overview>
<head>
<field1>..</field1>
<field2>..</field2>
</head>
<list>
<row>
<field1>..</field1>
<field2>..</field2>
</row>
</list>
</overviw>
</page>
</root>
and when I add the xsl files like this:
<?xml version="1.0"?>
<xsl:transform
version="1.0"
xmlns:xsl="
<xsl
utput method="html" indent="no"/>
<xsl:template match="/">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="page">
<head>
<title><xsl:value-of select="title"/></title>
<link rel="stylesheet" type="text/css" href="table.css" title="Style"/>
</head>
<body>
<xsl:apply-templates/>
</body>
</xsl:template>
<xsl:template match="overview">
<table>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="head">
<tr class="header">
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
<xsl:template match="row[position() mod 2 = 1]">
<tr class="odd" style="cursor:hand" >
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
<xsl:template match="row">
<tr class="even" style="cursor:hand">
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
</xsl:transform>
Maybe you have some other idee of how can I manipulate form, action of button, from xml to xsl.
I have an xml files like that:
<root>
<page>
<title>asta la vista baby
</tile>
<overview>
<head>
<field1>..</field1>
<field2>..</field2>
</head>
<list>
<row>
<field1>..</field1>
<field2>..</field2>
</row>
</list>
</overviw>
</page>
</root>
and when I add the xsl files like this:
<?xml version="1.0"?>
<xsl:transform
version="1.0"
xmlns:xsl="
<xsl
<xsl:template match="/">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="page">
<head>
<title><xsl:value-of select="title"/></title>
<link rel="stylesheet" type="text/css" href="table.css" title="Style"/>
</head>
<body>
<xsl:apply-templates/>
</body>
</xsl:template>
<xsl:template match="overview">
<table>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="head">
<tr class="header">
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
<xsl:template match="row[position() mod 2 = 1]">
<tr class="odd" style="cursor:hand" >
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
<xsl:template match="row">
<tr class="even" style="cursor:hand">
<td><xsl:value-of select="field1"/></td>
<td><xsl:value-of select="field2"/></td>
</tr>
</xsl:template>
</xsl:transform>
Maybe you have some other idee of how can I manipulate form, action of button, from xml to xsl.