cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Mittman <namtas...@mac.com>
Subject Re: Desperately need help: Running Java code with XML values as input
Date Thu, 07 Mar 2002 16:16:18 GMT
Check my other post for a better description of what I need...
And yeah, I did mean test=write...

On Thursday, March 7, 2002, at 02:45  AM, KOZLOV Roman wrote:

> 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:
>
>> [...]
>> 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
>> [...]


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message