blob: dfbf77627c23076db3e9b509841d834d213bb3e5 [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="{page/title}" />
</p>
<xsl:apply-templates select="metapage"/>
<xsl:apply-templates select="page/content/para"/>
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>
</body>
</html>
</xsl:template>
<xsl:template match="page/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:template match="metapage">
<p>Author:<br />
<input name="author" type="text" size="30" maxlength="30" value="{author}" />
</p>
<p>Category:<br />
<input name="category" type="text" size="30" maxlength="30" value="{category}" />
</p>
<p>State:<br />
<input name="state" type="text" size="30" maxlength="30" value="{state}" />
</p>
</xsl:template>
</xsl:stylesheet>