You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jason Foster <ja...@uwaterloo.ca> on 2002/07/03 22:14:41 UTC
Advice re: Stylesheet Parameters
I was hoping to get some advice from the group on the "proper" way to
acquire stylesheet parameters from a user and to use them in a
transformation.
My plan is to have an HTML form (an XForm can come later) that collects the
values for all sorts of parameters, such as...
<xsl:param name="generate.index" select="1"/>
<xsl:param name="toc.section.depth">2</xsl:param>
... and to collect these parameters once the form is submitted.
I realize that there are a number of ways that I could do this, but I was
hoping that the list could help me enumerate my choices and provide
information on the strengths and weaknesses of each choice. One thing to
keep in mind is that a number of these parameters are best represented as
checkboxes, so I will have to deal with the usual problem of HTML form
encoding :(
This information is likely to be of use to other Cocoon users, so I will
volunteer to collate and submit the results to the list.
Thanks for any help.
Jason Foster
P.S. For those of you who are wondering, I'm trying to create a "Test Your
DocBook" web page where you can upload your source file and have a PDF file
returned. Thanks to Saxon and the new ability to specify a custom
TransformerFactory on a per-pipeline basis, I've already got this partially
working.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Advice re: Stylesheet Parameters
Posted by Luca Morandini <lu...@tin.it>.
Jason,
if I were you, I'd use the RequestGenerator. You will get a nice XML with all the form parameters ready for further processing.
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Jason Foster [mailto:jafoster@uwaterloo.ca]
> Sent: Wednesday, July 03, 2002 10:15 PM
> To: cocoon-users@xml.apache.org
> Subject: Advice re: Stylesheet Parameters
>
>
> I was hoping to get some advice from the group on the "proper" way to
> acquire stylesheet parameters from a user and to use them in a
> transformation.
>
> My plan is to have an HTML form (an XForm can come later) that collects the
> values for all sorts of parameters, such as...
>
> <xsl:param name="generate.index" select="1"/>
> <xsl:param name="toc.section.depth">2</xsl:param>
>
> ... and to collect these parameters once the form is submitted.
>
> I realize that there are a number of ways that I could do this, but I was
> hoping that the list could help me enumerate my choices and provide
> information on the strengths and weaknesses of each choice. One thing to
> keep in mind is that a number of these parameters are best represented as
> checkboxes, so I will have to deal with the usual problem of HTML form
> encoding :(
>
> This information is likely to be of use to other Cocoon users, so I will
> volunteer to collate and submit the results to the list.
>
> Thanks for any help.
>
> Jason Foster
>
> P.S. For those of you who are wondering, I'm trying to create a "Test Your
> DocBook" web page where you can upload your source file and have a PDF file
> returned. Thanks to Saxon and the new ability to specify a custom
> TransformerFactory on a per-pipeline basis, I've already got this partially
> working.
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>