Hello Noah,
Excuse me, please, if I'm too pedantic, but did you mean "test=write" instead of
"write=test"?
Best regards
Roman
Noah Mittman wrote:
> Well, that's it. I'm almost ready to scrap Cocoon.
>
> All I want to do is generate a simple HTML page that when requested
> does a little Java code first using some request parameters and
> values from the XML it's being generated from. I need to do this in
> many little ways: sending email, writing to a log, accessing
> services and sending data.
>
> Like:
>
> source.xml:
> <foo id="100">
> <bar>Hello</bar>
> <foo>
>
> write.xsl?write=test (submitted via form):
> <xsl:param name="test"/>
> <xsl:template match="foo">
> <html>
> <xsp:logic>
> SpecialLogger logger = new SpecialLogger(<xsl:value-of
> select="@id"/>);
> if (logger.writeThis("<xsl:value-of select="$test"/>")) {
> <body>
> <xsl:value-of select="bar"/> worked!
> <!-- body content version A -->
> </body>
> } else {
> <body>
> <xsl:value-of select="bar"/> didn't work
> <!-- body content version B -->
> </body>
> }
> <xsp:logic>
> </html>
> </xsl:template>
>
> + ~20 other xsl files that spit out frames based on the same XML
> but only require barebones XSLT
>
> This is important because this runs in a framed environment where
> all frames' HTML use the same XML as source, and I don't want to
> have any special code in the XML because there will be many of
> these sources soon, and it only needs to execute this code for this
> *one* transformation.
>
> The only way I have gotten this to work is to create a pipeline
> that turns the XML into an XSP and have the real URL match to a
> cocoon:/ protocol to generate that XML-to-XSP pipeline. While this
> works, it creates a class that WILL NOT RECOMPILE no matter how
> much the referenced XML changes until I restart Cocoon or manually
> delete it, which is unacceptable.
>
> It is absolutely imperative that I be able to accomplish this
> without adding any Java classes--I just won't have the access
> needed to do this.
>
> There MUST be a way!
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>