which is the problem?

2001-06-19 Thread Simone Bortolaso



The compilator say:

java.lang.Exception: XSP Java Compiler: Compilation 
failed for _index.java
2385: Undefined variable: u
 
xspExpr(formatDate(u,1,viewer),document)
 

.
End the code is:



xsp:logic
thresholdlabelThresholds:/label 
date-headerDate/date-headerpre-alarm-headerPre-alarm 
Threshold 
/pre-alarm-headeralarm-headerAlarm 
Threshold /alarm-header  
xsp:contentfor(int 
u = 0; u lt; 
u++){value 
datexsp:exprformatDate(u,1,viewer)/xsp:expr/datepre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm 
alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm/value}/xsp:content/threshold
xsp:logic



Re: which is the problem?

2001-06-19 Thread Simone Bortolaso

if i write the same code without for and with variable the compiler says the
same things

int u = 10;
xsp:content
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value
 /xsp:content
   }

why?

- Original Message -
From: Morrison, John [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 9:54 AM
Subject: RE: which is the problem?


 I don't know for sure, but I believe that the xsp:content tag is the
 cause.  Try...


   for(int u = 0; u lt; u++){
xsp:content
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value
 /xsp:content
   }

 J.

 -Original Message-
 From: Simone Bortolaso [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 June 2001 08:53
 To: [EMAIL PROTECTED]
 Subject: which is the problem?


 The compilator say:

 java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java
 2385: Undefined variable: u
  xspExpr(formatDate(u,1,viewer),document)


 .
 End the code is:



 xsp:logic
 threshold
   labelThresholds:/label
   date-headerDate/date-header
   pre-alarm-headerPre-alarm Threshold /pre-alarm-header
   alarm-headerAlarm Threshold /alarm-header


xsp:content
   for(int u = 0; u lt; u++){
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value

   }
 /xsp:content

/threshold

 xsp:logic



 ===
 Information in this email and any attachments are confidential, and may
 not be copied or used by anyone other than the addressee, nor disclosed
 to any third party without our permission.  There is no intention to
 create any legally binding contract or other commitment through the use
 of this email.

 Experian Limited (registration number 653331).
 Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

 -
 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]




generate dinamic page from a single index.xml

2001-06-15 Thread Simone Bortolaso



Hi
My prior mail was been quite generic. The question 
is about the possibility of create dynamically web page starting froma 
single index.xml page and translate with cocoon and 
XSLT.Followingthe links on index.xmldisplayed on browser 
thewill load a new page that came from index.xml new 
rapresentation.

Is there some suggestion or can be implemented an 
equivalent architecture?

Thank for all in advace.
Simone 


xml page1 calls xml page2

2001-06-14 Thread Simone Bortolaso



My situation is just a standard case where from a 
begin page (index.xml) i wantto navigate farward an back toother 
page in my site.
The index.xml calls for example a 
second.xmlpage in my browser.
Can i do this withC1?Is there a little 
examples?
Thank in advance 
Simone.


Can not add xsp:expr to xsl:attribute

2001-06-07 Thread Simone Bortolaso



Hi all, is there a way to jump across the following 
problem?

1) 

xsp:logicif(viewer.isPie()){ 
trtd bgcolor="#ff" width="340" height="20" vlign="bottom" align 
= "left" colspan = "2" imgxsl:attribute name = 
"src" xsl:value-of 
select="../report_information/piechart/@path"/xsp:exprviewer.getUnavailable()/xsp:expr 
/xsl:attribute/img  
/td/tr }/xsp:logic


2) Alternatively, I try to 
define a xsl variable and assign it with in

xsl:variable name = "param" 
xsp:exprviewer.getUnavailable()/xsp:expr/xsl:variable


xsp:logicif(viewer.isPie()){ 
trtd bgcolor="#ff" width="340" height="20" vlign="bottom" align 
= "left" colspan = "2" imgxsl:attribute name = 
"src" xsl:value-of 
select="../report_information/piechart/@path"/xsl:value-of 
select="{$param}"/xsl:attribute/img 
 /td/tr 
}/xsp:logic

but it return the variable's name end not its 
value.

Thank all in advance Simone.