You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Spinetti <m....@pisa.iol.it> on 2000/10/20 15:23:38 UTC
I: Xsp can't resolve this?
----- Original Message -----
From: marco spinetti
To: cocoon-users@xml.apache.org
Sent: Friday, October 20, 2000 12:04 PM
Subject: Xsp can't resolve this?
Re: I: Xsp can't resolve this?
Posted by Michael Bierenfeld <mi...@atmiralis.de>.
This is possible with XSP if you obtain the name
of the String from xml-content. *Not dynamically*
<xsp:logic>
String <xsl:value-of select="@hallo"/> = "Hello
World";
String myString = <xsl:value-of
select="@hallo"/>;
</xsp:logic>
<label>
<xsp:expr>myString</xsp:expr>
</label>
But as I remarked ago. Your Structur is not
correctly processed !!!!!! Rethink it !!!! Guess
what should happen. Based on the content for each
request a new java-file has to be generated ?
If you could explain your exact purpose maybe
somebody has a solution for you.
Kind regards
Michael
RE: Xsp can't resolve this?
Posted by Per Kreipke <pe...@onclave.com>.
Marco,
Would love to help with my limited knowledge. Can you break the problem down
and send snapshots of the XSP, XSL _and_ the XML that results from the XSP
before the XSL transformation?
Per.
-----Original Message-----
From: Marco Spinetti [mailto:m.spinetti@pisa.iol.it]
Sent: Friday, October 20, 2000 9:24 AM
To: cocoon-users@xml.apache.org
Subject: I: Xsp can't resolve this?
----- Original Message -----
From: marco spinetti
To: cocoon-users@xml.apache.org
Sent: Friday, October 20, 2000 12:04 PM
Subject: Xsp can't resolve this?
From the answers which I have received I think that Xsp cannot solve my
problem: is it true? I sum up: I take a String from a Tag of a Xml file in
my Xsl file and must manipulate it. To do that I must before do the Xslt
transformation and then that Xsp: however when I write (to print the result
on a telephone to example)
<xsp:expr>
string_name
<xsp:expr>
I obtain on the telephone the name of the String and not his content. To
have you better understood I send you the files:
You tries to call the Xml file from a Wap emulator (Nokia to example)
with:
..../prova23.xml?segnou=Ariete&sceltau=amore
You will be able to see that on the Display of the telephone you do not
obtain the body of the String Body but the Body name
Please let me know what you think.
I will infinitely be grateful to you
Marco
m.spinetti@pisa.iol.it