blob: ac0e6a27b97a4042657d3d9650a873a487f195c9 [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="file"></xsl:param>
<xsl:param name="sitemapURI"></xsl:param>
<xsl:param name="requestURI"></xsl:param>
<xsl:template match="/page">
<html>
<body>
<form method="get">
<xsl:attribute name="action"><xsl:value-of select="substring-before($requestURI, $sitemapURI)"/>write/<xsl:value-of select="$file"/></xsl:attribute>
<p>Title:<br />
<input name="title" type="text" size="30" maxlength="30" value="{title}" />
</p>
<xsl:apply-templates select="content/para"/>
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>
</body>
</html>
</xsl:template>
<xsl:template match="content/para">
<p>para:<br />
<textarea name="para" cols="50" rows="10">
<!--xsl:value-of select="normalize-space(.)"/-->
<xsl:copy-of select="node()"/>
</textarea>
</p>
</xsl:template>
</xsl:stylesheet>