Not that I have that much experience on this issue, but there is a nice
example of various ways to get in contact with a logicsheet in the file:
src/webapp/docs/samples/xsp/logicsheet.xsp
at least in my Cocoon 2.0.3 ...
Jakob Dalsgaard
Udvikler
e-mail: [EMAIL PROTECTED]
Vesterbrogade 149
I've been hoping someone would answer your questions
with authority - I've just started using logicsheets
as well. My best answers follow:
--- Andy Lewis [EMAIL PROTECTED] wrote:
First, it appears that a logicsheet must declared to
be used and that the only place to declare a
logic sheet is
An update -
In looking into the issue regarding changes to
logicsheets, I found the following reference:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102374809216737w=2
So, logicsheets declared with resource: in
cocoon.xconf are not checked for updates, but other
protocols are (including
FWIW, we are using relative file paths for our logicsheets, and this is
supposed to cause pages to be recompiled if we modify the logicsheet. Be
warned, though, that it seems to be somewhat flaky; it often works as
expected, but sometimes not. In those cases, you have to touch the main
XSP
I am just starting to really get into XSP, having worked with various other parts of
Cocoon
since 1.3 and I have three questions regarding XPS Logicsheets:
First, it appears that a logicsheet must declared to be used and that the only place
to declare a
logic sheet is in the xconf file. Is
Hi,
just looking at the available XSP logicsheets, it seems that there is
not a logicsheet for the ServletContext that would offer the kind of
functionality the request logicsheet offers for interacting with the
HttpServletRequest. If that's true, how does one access e.g. context
parameters of
Werner Guttmann wrote:
Hi,
just looking at the available XSP logicsheets, it seems that there is
not a logicsheet for the ServletContext that would offer the kind of
functionality the request logicsheet offers for interacting with the
HttpServletRequest.
They (context parameters) are not
I just noticed that class XSPUtil (the implementing class for util taglib)
has the following function, which also shows how to get context info in
Java:
public static Object getContextAttribute(Map objectModel, String name)
{
Context context = ObjectModelHelper.getContext(objectModel);
Hi,
Did you try to use apostrophs inside quotes? Something like this:
String temp = xsl:value-of select='name'/;
Best regards.
Roman
Bert Van Kets wrote:
At 10:38 30/04/2002 -0300, you wrote:
I guess it's
String temp = xsl:value-of select=name/;
or
String temp
I want to use an XSP logicsheet to process the values submitted by a
form. In this page I have the following code (simplified):
xsl:template match=list
xsl:for-each select=element
xsl:sort select=name/
xsp:logic
String temp = xsl:value-of select=name
From: Bert Van Kets [EMAIL PROTECTED]
I want to use an XSP logicsheet to process the values submitted by a
form. In this page I have the following code (simplified):
xsl:template match=list
xsl:for-each select=element
xsl:sort select=name/
xsp:logic
String
Title: RE: xsp logicsheet
I guess it's
String temp = xsl:value-of select=name/;
or
String temp = new String(xsl:value-of select=name/);
Alejandro
-Mensaje original-
De: Bert Van Kets [mailto:[EMAIL PROTECTED]]
Enviado el: Martes 30 de Abril de 2002 10:37 AM
Para: [EMAIL
Abril de 2002 10:37 AM
Para: [EMAIL PROTECTED]
Asunto: xsp logicsheet
I want to use an XSP logicsheet to process the values submitted by a
form. In this page I have the following code (simplified):
xsl:template match=list
xsl:for-each select=element
xsl:sort select=name
At 10:38 30/04/2002 -0300, you wrote:
I guess it's
String temp = xsl:value-of select=name/;
or
String temp = new String(xsl:value-of select=name/);
Alejandro
Tried it, doesn't work. I guess it must be a bug.
If I use
String temp = xsl:value-of select=name/
I get
On 30.Apr.2002 -- 09:50 PM, Bert Van Kets wrote:
At 10:38 30/04/2002 -0300, you wrote:
I guess it's
String temp = xsl:value-of select=name/;
or
String temp = new String(xsl:value-of select=name/);
Alejandro
Tried it, doesn't work. I guess it must be a bug.
If
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Vadim
Unfortunately I only have the built version...
Still no success - as I said before, I have removed the
xsp:logicsheet location=derek1/logic/logicsheet.greeting.xsl/
This is right, you should use *either* xsp:logicsheet/, or register
Vadim
Still no luck with your samples
First: which URL to use to call the XSP page? When I try
http://localhost:8080/cocoon/xsp/logicsheet-test
it simply gives me an error, with root cause:
java.lang.IllegalAccessError: try to access method
$XSPTransformerChainBuilderFilter
Could you please try your side?
Thanks!
Derek
[EMAIL PROTECTED] 03/02/2002 11:53:16
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Vadim
Thanks for clarifications.
Welcome!
Sample code I was referring to is in the XSP Logicsheet section of
the
online manual
: which URL to use to call the XSP page? When I try
http://localhost:8080/cocoon/xsp/logicsheet-test
it simply gives me an error, with root cause:
java.lang.IllegalAccessError: try to access method
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addL
ogicsh
eetToList
Still no luck with your samples
First: which URL to use to call the XSP page? When I try
http://localhost:8080/cocoon/xsp/logicsheet-test
it simply gives me an error, with root cause:
java.lang.IllegalAccessError: try to access method
You need to remove references to the logicsheet file from the XSP, and
leave only namespace declaration. Also, you can delete any generated
files from previous run and restart engine.
PS: CVS contains this sample and runs it out-of-the-box.
Vadim
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
:
Subject: RE: C2 Newbie: XSP Logicsheet in
sitemap ?
02/04/2002
04:30
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Derek,
As in map:generate type=serverpages
src=docs/samples/xsp/{1}.xsp/
The source must be a xsp file.
Valentin,
xsp file != .xsp extension. It is not a Windows, you can use whatever
extension you like.
Vadim
From the extension
Vadim
Unfortunately I only have the built version...
Still no success - as I said before, I have removed the
xsp:logicsheet location=derek1/logic/logicsheet.greeting.xsl/
from the XSP and also cleared the cache (not that I could find any
references
to the file). Also did restart. Still
Derek,
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Vadim
Thanks for the sample code - both of these look quite a bit more
complicated than the samples in the XSP Logicsheet, but I will work
through them to try and understand both the grammar and logic.
Ahem... I have not seen
Vadim
Thanks for clarifications.
Sample code I was referring to is in the XSP Logicsheet section of the
online manual:
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
and especially the section Using Logicsheets (Taglibs)
(as in the various 'greeting' samples that, as I said, do
Vadim
Thanks for clarifications.
Sample code I was referring to is in the XSP Logicsheet section of the
online manual:
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
and especially the section Using Logicsheets (Taglibs)
(as in the various 'greeting' samples that, as I said, do
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Vadim
Thanks for clarifications.
Welcome!
Sample code I was referring to is in the XSP Logicsheet section of the
online manual:
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
and especially the section Using Logicsheets (Taglibs
shown in the XSP Logicsheet Guide, in the C2
documentation, but have got stuck.
The first point I noticed was that the namespace for XSP was incorrect;
its shown as http://www.apache.org/199/XSP/Core and should actually be
http://apache.org/xsp (maybe someone can update this?)
The second point
PROTECTED]
Cc: Derek Hohls
Subject: C2 Newbie: XSP Logicsheet in sitemap ?
As an ex-Cocoon1 user, I am trying to move all my applications across
to
C2. I can see that there are a lot of conceptual chnages that I need
to
understand to make full use of C2's functionality.
Right now I am
Vadim
Thanks for the sample code - both of these look quite a bit more
complicated than the samples in the XSP Logicsheet, but I will work
through them to try and understand both the grammar and logic.
Please excuse my ignorance, but I am still unclear as to how these are
actually *used
Hi,
My logicsheetprovides XSP support templates,
for controllingthe structure of the generated XML. A typical template
generates an XML fragment, including the local 'root' (top-level) element,
attributes, content and child elements.
The strange behavior is that my 'root' element is
not
32 matches
Mail list logo