You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David Crossley <cr...@indexgeo.com.au> on 2002/10/24 03:00:27 UTC
Re: cvs commit: xml-cocoon2/src/webapp/samples/stylesheets/xmlform
xmlform2html.xsl
Ivelin, please update Bugzilla when you apply a patch.
I just wasted time trying to do it as well.
Also, it is not standard practice to add the "author" tag
for every person who supplies a patch. We would end up with
files which have more lines with "author" tags than with code.
I think that the intention is to only list the names of the
people who are responsible for creating the code, so that
people can get in touch with the main authors.
--David
ivelin@apache.org wrote:
> ivelin 2002/10/23 06:43:02
>
> Modified: src/webapp/samples/stylesheets/xmlform xmlform2html.xsl
> Log:
> applied patch by parrott@fas.harvard.edu
>
> Revision Changes Path
> 1.5 +5 -4 xml-cocoon2/src/webapp/samples/stylesheets/xmlform/xmlform2html.xsl
>
> Index: xmlform2html.xsl
> ===================================================================
> RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/stylesheets/xmlform/xmlform2html.xsl,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- xmlform2html.xsl 28 Sep 2002 19:43:06 -0000 1.4
> +++ xmlform2html.xsl 23 Oct 2002 13:43:02 -0000 1.5
> @@ -23,14 +23,14 @@
> author: Torsten Curdt, tcurdt@dff.st, March 2002
> author: Simon Price <pr...@bristol.ac.uk>, September 2002
> author: Konstantin Piroumian <kp...@protek.com>, September 2002
> -
> + author: Robert Ellis Parrott <pa...@fas.harvard.edu>, October 2002
> -->
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>
> - <xsl:output method = "html" omit-xml-declaration = "yes" />
> + <xsl:output method = "xml" omit-xml-declaration = "no" />
>
>
> <xsl:template match="/">
> @@ -68,10 +68,11 @@
>
>
> <xsl:template match="xf:textarea">
> - <input name="{@ref}" type="textarea" value="{xf:value/text()}">
> + <textarea name="{@ref}" >
> <xsl:copy-of select="@*[not(name()='ref')]"/>
> + <xsl:value-of select="xf:value/text()"/>
> <xsl:apply-templates select="xf:hint"/>
> - </input>
> + </textarea>
> </xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org