sendMail using Logicsheet

2003-07-01 Thread Yan, Charlene



All,

It may 
be a silly question. I'm using Cocoon2.1M2's sendMail example. http://localhost:8080/cocoon/samples/mail/sendmail/new.html. 
When I tried to use sendMail by logicsheet, after the email is sent, there is 
"setup done" message on the next page. I cannot find out where the message 
is defined and how I can get rid of it. I have checked simplepage2html.xsl 
and sendmail_xsp.xml and still cannot find it. Anybody can help me out 
here?

Thanks!

Charlene


RE: xsl question

2003-06-26 Thread Yan, Charlene
You should ask [EMAIL PROTECTED]  They are really good on xsl questions.

xsl:if test=deviation ='1'

Charlene
-Original Message-
From: Joydeep Bose [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:49 PM
To: [EMAIL PROTECTED]; Tim Bachta
Subject: Re: xsl question


To be on the safer side put the fully qualified element:
eg test=/page/deviation = 1

unless the if statement is in a for-each or something that selects the parent 
node of the deviation element.Then just deviation is fine.


Quoting Tim Bachta [EMAIL PROTECTED]:

 How would I do an if statement in xsl were I am testing for the value of
 an element?  Example
 
  
 
 xsl:if test=deviation = 1
 
 .
 
  
 
  
 
 where my incoming xml looks like this:
 
  
 
 de  deviation0/deviation 
 
compleated-byN/A/compleated-by 
 
  
 
 Thanks for the help
 
  
 
 Tim Bachta
 
  
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Yan, Charlene
Thanks, Chris.  I am looking at the example.  I think my problem is more complicated.  
When I click on Send Email button, I need to post an xml string to Cocoon pipeline 
to generate the rtf file.  Then I can use the rtf as an attachment to the email.  It 
would be easier if I had a pipeline that opens a static rtf.  The difficult thing is 
how I can do two posts at ONE button click.

Charlene

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Chaining pipelines --- write a file to server --- email it
as an attachment -- delete the file


On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
 When I click a Send Email button on the page, the application will create a rtf 
 file on the server, and then sendMail will send email to an email address entered by 
 the user with attachment of the rtf file and idealy the rtf file should be deleted 
 from the server.  

See e.g.

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Parameter in a hidden field in xsp

2003-06-25 Thread Yan, Charlene
Hi,

I would like to have the value of a parameter Foo put in a hidden filed.  The 
parameter is passed over from previous page.  Obviously input type=hidden 
name=from value=xsp-request:get-parameter 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo// is not working.  
Can anyone help me out here please?

Thanks.

Charlene

?xml version=1.0 encoding=UTF-8?
xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
page

  titleSend EMail/title

   p style=color:red;
 xsp-request:get-attribute name=org.apache.cocoon.acting.Sendmail default=/
 xsp-request:get-parameter xmlns:xsp-request=http://apache.org/xsp/request/2.0; 
name=Foo/
   /p

  table cellpadding=2 cellspacing=2 border=0
tbody
  form method=POST enctype=multipart/form-data

input type=hidden name=smtphost value=localhost/

input type=hidden name=from value=[EMAIL PROTECTED]/
input type=hidden name=from value=xsp-request:get-parameter 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo//
  /form
/tbody
  /table

/page
/xsp:page

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameter in a hidden field in xsp

2003-06-25 Thread Yan, Charlene
Thank you very much!  The syntax is like xsl.  But it would take me longer to find out 
how if you had not helped me.  Appreciate it!

Charlene

input type=hidden name=from
xsp:attribute name=value
xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/xsp:attribute
/input
-Original Message-
From: JD Daniels [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Parameter in a hidden field in xsp


Try:

input type=hidden name=from
xsp:attribute name=value
xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/xsp:attribute/


JD


- Original Message - 
From: Yan, Charlene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:45 AM
Subject: Parameter in a hidden field in xsp


 Hi,

 I would like to have the value of a parameter Foo put in a hidden filed.
The parameter is passed over from previous page.  Obviously input
type=hidden name=from value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo// is not
working.  Can anyone help me out here please?

 Thanks.

 Charlene

 ?xml version=1.0 encoding=UTF-8?
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 page

   titleSend EMail/title

p style=color:red;
  xsp-request:get-attribute name=org.apache.cocoon.acting.Sendmail
default=/
  xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/p

   table cellpadding=2 cellspacing=2 border=0
 tbody
form method=POST enctype=multipart/form-data

  input type=hidden name=smtphost value=localhost/

  input type=hidden name=from
value=[EMAIL PROTECTED]/
  input type=hidden name=from
value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo//
   /form
 /tbody
   /table

 /page
 /xsp:page

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Yan, Charlene
Let me try to explain my problem again.  

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline is only part of what I'm 
trying to do. When Send Email button is clicked, an xml String named Foo is passed 
to pipeline processOrder and a rtf file is generated.  Then pipeline send will 
send the rtf file as an attachment.  processOrder has to happen before the send.  
I found a thread talking about this 
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105609808514142w=2 (pipeline 
dependencies).  But it is different from what I'm trying to do.  processOrder is 
invoked only when sendmail:attachment url=cocoon:/// name=processOrder/ is 
called from mail.xsp. So my question is how I can start processOrder pipeline and 
attach the result to the send pipeline.  How can I chain these two pipelines 
together?  Or is it possible to write the file to the server and then to get the 
attachment thereafter?  In either way, I need to invoke processOrder first.  

Thanks!
Charlene


map:match pattern=send
  map:generate type=serverpages src=mail.xsp /
  map:serialize /
/map:match


map:match pattern=processOrder
 map:generate type=stream
   map:parameter name=form-name value=Foo/
 /map:generate
 map:transform src=context://stylesheets/system/simple-page2fo.xsl/
 map:serialize type=fo2rtf/
   /map:match

On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
 When I click a Send Email button on the page, the application will create a rtf 
 file on the server, and then sendMail will send email to an email address entered by 
 the user with attachment of the rtf file and idealy the rtf file should be deleted 
 from the server.  

See e.g.

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Yan, Charlene
Chris,

Looks like that to field is not changed in the logs.  I hope this email is going to go 
through.  After the send, the same page comes up.

Thanks.

Charlene
: 
Current Sitemap Parameters:
LEVEL 1
PARAM: '1' VALUE: 'new.html'
PARAM: '0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/PreparableMatchNode: Matcher 'host-matcher' matched prepared 
pattern 'localhost' at 
file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/mail/sendmail/sitemap.xmap:62:57
DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/InvokeContext: 
Current Sitemap Parameters:
LEVEL 2
PARAM: '0' VALUE: 'localhost'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:261   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: logger attribute is 
sitemap.action.requestParamExists
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking default parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap.action.requestParamExists] 
(/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/RequestParameterExistsAction: checking sitemap parameters
DEBUG   (2003-06-24) 09:40.21:271   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory decommissioning 
instance of org.apache.cocoon.acting.RequestParameterExistsAction.
DEBUG   (2003-06-24) 09:40.21:281   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/InvokeContext: 
Current Sitemap Parameters:
LEVEL 2
PARAM: 'target' VALUE: 'form.xml'
PARAM: 'remove' VALUE: 'new.html'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-24) 09:40.21:321   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: ComponentFactory creating new instance 
of org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline.
DEBUG   (2003-06-24) 09:40.21:321   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/DefaultComponentFactory: no logger attribute available, using 
standard logger
DEBUG   (2003-06-24) 09:40.21:341   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Created a new 
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the object 
factory.
DEBUG   (2003-06-24) 09:40.21:341   

Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-24 Thread Yan, Charlene
All,

Please let me know if this is possible with Cocoon to accomplish the following:  

When I click a Send Email button on the page, the application will create a rtf file 
on the server, and then sendMail will send email to an email address entered by the 
user with attachment of the rtf file and idealy the rtf file should be deleted from 
the server.  

Here is what I have so far.  1.   I am able to create a rtf file and display it in a 
browser.  The user has the option to save it to their hard drive.  Do you know how I 
can write it to the server behind the scene, meaning without opening it in a browser.  
2.  I am able to send emails from the mail sample page with attachment either from a 
file or from a url.  

Basically it is a pipeline chaining issue, I think.  Please let me now if what I'm 
planning to do is feasible in Cocoon.  I will appreciate any ideas and thoughts from 
you!!!

Thanks.

Charlene 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Yan, Charlene
Chris,

I'm able to run the example now.  Please follow my other thread Chaining pipelines 
--- write a file to server --- email it as an attachment -- delete the file

Thanks.

Charlene

 category log-level=DEBUG name=sitemap
   log-target id-ref=sitemap/
   log-target id-ref=error/
 /category
 It did not give me much useful info (see below).

Actually, the crucial part would be before the snippet you provided.

 Do I have to rebuild Cocoon if I want to run sendMail sample?  Are there any ways to 
 detect why it is not working?

No, no need to rebuild Cocoon. 

Which page is shown as result?

Chris.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



sendMail sample not working for Cocoon2.1M2...

2003-06-23 Thread Yan, Charlene
I'm using Cocoon2.1M2.  I tried to run sample at 
http://localhost:8080/cocoon/samples/mail/sendmail/new.html.  It failed.  I didn't get 
any emails sent.  The mailing archive indicated to me that mail.jar and activation.jar 
should be in $tomcat/Webapps/WEB-INF/lib.  So I copied those two jars to the dir.  I 
also tested my local SMTP server using another java web appication which has mailhost 
as localhost and the email was sent successfully.  I restarted tomcat and the mail 
sample still didn't work.  I tried all three: sendMail, sendMailAction and logicsheet. 
 I also set the log-level to debug for sitemap in logkit.xconf file (see below)

category log-level=DEBUG name=sitemap
  log-target id-ref=sitemap/
  log-target id-ref=error/
/category
It did not give me much useful info (see below).

Do I have to rebuild Cocoon if I want to run sendMail sample?  Are there any ways to 
detect why it is not working?

Thanks in advance for any ideas!

Charlene


Current Sitemap Parameters:
LEVEL 2
PARAM: 'target' VALUE: 'form.xml'
PARAM: 'remove' VALUE: 'new.html'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-23) 17:07.18:169   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the pool.
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.generation.ServerPagesGenerator from the pool.
DEBUG   (2003-06-23) 17:07.18:189   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:189   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.transformation.TraxTransformer from the pool.
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.transformation.SimpleFormTransformer from the pool.
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.serialization.HTMLSerializer from the pool.
DEBUG   (2003-06-23) 17:07.18:209   [sitemap.transformer.xslt] 
(/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/TraxTransformer: Using 
stylesheet: 
'file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl'
 in [EMAIL PROTECTED]
DEBUG   (2003-06-23) 17:07.18:359   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/AbstractCachingProcessingPipeline: Cached response not found 
for 'new.html' using key: 
PK_G-serverpages-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/mail/sendmail/form.xml_T-xslt-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl;remove=new.html;contextPath=/cocoon;file=form.xml;servletPath=/samples/mail/sendmail/new.html;sitemapURI=new.html
DEBUG   (2003-06-23) 17:07.18:359   

RE: [Error] Sendmail Logicsheet and Cinclude

2003-06-20 Thread Yan, Charlene
I saw a thread about attaching a file (possibly url) as an attachment.  Will that work 
for you?  I'm going to work on that next week.  Maybe we will be able to share some 
ideas.  My requirements are as follows:
1.  When user clicks on Send Email button.  I have an xml String sent to 
StreamGenerator, then transformed by xsl-fo and serialized by jfor to rtf and 
displayed on a screen.  
2.  The next step is to use sendMail to send the created rtf document as an attachment 
to an email address.

I haven't started to look into it yet.  I'm thinking about saving the created rtf in 
step 1 on the server and then sending it as an attachment.

Anyway, more later on this.

Charlene

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [Error] Sendmail Logicsheet and Cinclude


[EMAIL PROTECTED] wrote:
 I've been stumbling the past couple of days through the sendmail 
 logicsheet and sendmail actions in 2.1-M1.
 
 Here's what I'm trying to do:
 
 Include generated content (i.e. content produced by a pipeline) into the 
 body of an email sent by sendmail action or logicsheet.

This is possible only by using the util logicsheet.

 The sendmail action has been a deadend, so I've looked at the sendmail 
 logicsheet. Below is mail.xsp, my attempt to implement sending a message 

Both share the same code, so if one does not work, the other is unlikely 
to do better. However, mind sharing why the action didn't work out?

 body created by a pipeline. Please note that I have defined the 
 necessary namespaces in the xsp:page element:

   sendmail:bodyThe results of processing the pipeline triggered at 
the uri: workPlanning/contents. are below.br/
!-- NB: the request below has been tested and works when called 
 directly --
 cinclude:include src=cocoon://workPlanning/contents 
   element=included /
 /sendmail:body

This does not work as it adds the result of the inclusion to the SAX 
stream _directed_at_the_client_ while you need to have it as e.g. string 
to pass to sendmail.

The correct solution is to use sendmail:attachment 
url=cocoon://workPlanning/contents/ to pull in the generated content.
AFAIR you could as well do xsp:exprutil:get-source 
uri=cocoon://workPlanning/contents//xsp:expr

 I'd appreciate some assistance with this. Once I've found my way around 
 this problem, I'll write up a how-to for the cocoondev.org wiki.

Deal!

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: color in excel spreadsheet not working with HSSFSerialiser

2003-06-19 Thread Yan, Charlene
Joy,

try shade=2.  It should work.

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Re: color in excel spreadsheet not working with HSSFSerialiser


Joy,
Have you tried looking at the HSSFSerializer code? See how they handle 
the shade and color attributes you are trying to set. If they are passed 
to the POI code, perhaps it is a POI problem. I sometimes find the 
source code a little faster than the user-list.

David

Joydeep Bose wrote:

Hi,

I am using this style info in gnumeric format :
I know that the colors don't work with shade=0 , so I made shade=1.
Is there some problem with the color format ? 
Did anyone see this before ?


gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7
gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1
   Indent=0  Fore=0:0:0 Back=00:FF:FF  PatternColor=:: 
Format=General
   gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 
StrikeThrough=0/gmr:Font
   gmr:StyleBorder
   gmr:Top Style=1/
   gmr:Bottom Style=1/
   gmr:Left Style=1/
   gmr:Right Style=1/
   gmr:Diagonal Style=0/
   gmr:Rev-Diagonal Style=0/
   /gmr:StyleBorder
   
   /gmr:Style
   /gmr:StyleRegion



Thanks
Joydeep


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: color in excel spreadsheet not working with HSSFSerialiser

2003-06-19 Thread Yan, Charlene
Joy,

I have a question for you since you are using gnumeric.  Does your PrintInformation 
section?  I am trying to change Header, Footer and Orientation of the Excel.  Somehow 
it's not taking it at all.  See below:






-Original Message-
From: Yan, Charlene 
Sent: Thursday, June 19, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: color in excel spreadsheet not working with HSSFSerialiser


Joy,

try shade=2.  It should work.

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Re: color in excel spreadsheet not working with HSSFSerialiser


Joy,
Have you tried looking at the HSSFSerializer code? See how they handle 
the shade and color attributes you are trying to set. If they are passed 
to the POI code, perhaps it is a POI problem. I sometimes find the 
source code a little faster than the user-list.

David

Joydeep Bose wrote:

Hi,

I am using this style info in gnumeric format :
I know that the colors don't work with shade=0 , so I made shade=1.
Is there some problem with the color format ? 
Did anyone see this before ?


gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7
gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1
   Indent=0  Fore=0:0:0 Back=00:FF:FF  PatternColor=:: 
Format=General
   gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 
StrikeThrough=0/gmr:Font
   gmr:StyleBorder
   gmr:Top Style=1/
   gmr:Bottom Style=1/
   gmr:Left Style=1/
   gmr:Right Style=1/
   gmr:Diagonal Style=0/
   gmr:Rev-Diagonal Style=0/
   /gmr:StyleBorder
   
   /gmr:Style
   /gmr:StyleRegion



Thanks
Joydeep


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: color in excel spreadsheet not working with HSSFSerialiser

2003-06-19 Thread Yan, Charlene
Joy,

I have a question for you since you are using gnumeric.  Does your PrintInformation 
section?  I am trying to change Header, Footer and Orientation of the Excel.  Somehow 
it's not taking it at all.  See below:

gmr:Geometry Width=734 Height=422/
gmr:Sheets
  gmr:Sheet DisplayFormulas=false HideZero=false HideGrid=false
HideColHeader=false HideRowHeader=false DisplayOutlines=true
OutlineSymbolsBelow=true OutlineSymbolsRight=true
gmr:Namexsl:value-of select=name//gmr:Name
gmr:MaxCol-1/gmr:MaxCol
gmr:MaxRow-1/gmr:MaxRow
gmr:Zoom1.00/gmr:Zoom
gmr:Names/
gmr:PrintInformation
  gmr:Margins
gmr:top Points=28.3 PrefUnit=cm/
gmr:bottom Points=28.3 PrefUnit=cm/
gmr:left Points=0 PrefUnit=cm/
gmr:right Points=0 PrefUnit=cm/
gmr:header Points=0 PrefUnit=cm/
gmr:footer Points=0 PrefUnit=cm/
  /gmr:Margins
  gmr:vcenter value=0/
  gmr:hcenter value=0/
  gmr:grid value=0/
  gmr:even_if_only_styles value=0/
  gmr:monochrome value=0/
  gmr:draft value=0/
  gmr:titles value=0/
  gmr:repeat_top value=/
  gmr:repeat_left value=/
  gmr:orderr_then_d/gmr:order
  gmr:orientationlandscape/gmr:orientation
  gmr:Header Left= Middle=Page amp;[PAGE]  Right=/
  gmr:Footer Left= Middle=Page amp;[PAGE] Right=/
  gmr:paperA4/gmr:paper
/gmr:PrintInformation

Thanks!!

Charlene

-Original Message-
From: Yan, Charlene 
Sent: Thursday, June 19, 2003 3:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: color in excel spreadsheet not working with HSSFSerialiser


Joy,

try shade=2.  It should work.

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Re: color in excel spreadsheet not working with HSSFSerialiser


Joy,
Have you tried looking at the HSSFSerializer code? See how they handle 
the shade and color attributes you are trying to set. If they are passed 
to the POI code, perhaps it is a POI problem. I sometimes find the 
source code a little faster than the user-list.

David

Joydeep Bose wrote:

Hi,

I am using this style info in gnumeric format :
I know that the colors don't work with shade=0 , so I made shade=1.
Is there some problem with the color format ? 
Did anyone see this before ?


gmr:StyleRegion startCol=1 startRow=7 endCol=10 endRow=7
gmr:Style HAlign=8 VAlign=2 WrapText=0 Orient=1 Shade=1
   Indent=0  Fore=0:0:0 Back=00:FF:FF  PatternColor=:: 
Format=General
   gmr:Font Unit=8 Bold=1 Italic=0 Underline=0 
StrikeThrough=0/gmr:Font
   gmr:StyleBorder
   gmr:Top Style=1/
   gmr:Bottom Style=1/
   gmr:Left Style=1/
   gmr:Right Style=1/
   gmr:Diagonal Style=0/
   gmr:Rev-Diagonal Style=0/
   /gmr:StyleBorder
   
   /gmr:Style
   /gmr:StyleRegion



Thanks
Joydeep


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Autoshape -- Rectangle (xsl:number processing error))

2003-06-12 Thread Yan, Charlene
Thank you for the information.  That was the problem.  from attribute takes a pattern 
not a string.  

Charlene

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Autoshape -- Rectangle (xsl:number processing error))


Yan, Charlene wrote:
 I'm using xsl:number in the following.  Every time after I add
  from=27 in the tag, it will give me the error below.  Is it
  caused by changing Transform type xslt to xalan in the sitemap?

No.

 xsl:number level=any count=buProdId from=27/

According to the spec:
   http://www.w3.org/TR/xslt#number
the 'from' attribute takes an XPath pattern as value:
  The from attribute is a pattern that specifies where counting starts.
You supplied a number, which causes the XSLT processor to barf, naturally.
This is quite independent on whether you use Cocoon or not.

For further help about XSLT, check the XSL list:
   http://www.mulberrytech.com/xsl/xsl-list/


J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Autoshape -- Rectangle (xsl:number processing error))

2003-06-11 Thread Yan, Charlene
(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)


column: 90

cause: javax.xml.transform.TransformerException: A node test that matches either 
NCName:* or QName was expected.

If you need help and this information is not enough, you are invited to read the 
Cocoon FAQ.
If you still don't find the answers you need, can send a mail to the Cocoon users 
mailing list, remembering to: 

specify the version of Cocoon you're using, or we'll assume that you are talking about 
the latest released version; 
specify the platform-operating system-version-servlet container version; 
send any pertinent error message; 
send pertinent log snippets; 
send pertinent sitemap snippets; 
send pertinent parts of the page that give you problems. 
For more detailed technical information, take a look at the log files in the log 
directory of Cocoon, which is placed by default in the WEB-INF/logs/ folder of your 
cocoon webapp context.
If the logs don't give you enough information, you might want to increase the log 
level by changing the Logging configuration which is by default the 
WEB-INF/logkit.xconf file. 

If you think you found a bug, please report it to Apache's Bugzilla; a message will 
automatically be sent to the developer mailing list and you'll be kept in contact 
automatically with the further progress on that bug. 

Thanks, and sorry for the trouble if this is our fault. 

The Apache Cocoon Project 



-Original Message-
From: Yan, Charlene 
Sent: Tuesday, June 10, 2003 5:29 PM
To: [EMAIL PROTECTED]
Subject: RE: Autoshape -- Rectangle


Thanks for the information!!  Changing transform type=xslt to xalan in the sitemap 
solved the problem.

Regards,

Charlene

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Autoshape -- Rectangle


http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=Unable+to+get+transformer+handlerq=b

At 12:18 PM 6/10/2003, you wrote:
All,

I'm trying to generate an Excel spreadsheet.  First I tried to use Cocoon 
by passing the xml string into Stream Generator, go through the gnumeric 
formatting trnasformation.  It was working fine intially.  However, with 
more and more styleregion I added, it will give me the following error:
org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for context://samples/hello-world/style/xsl/orderFormxls.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Is it caused by the huge size of the styling sheet??

Another problem I have is that there is no way to put autoshape such as a 
rectangle on the spreadsheet.

I am thinking about writing my own servlet to do it using poi.  Is is 
possible to put autoshape such as rectangles on the spreadsheet this way???

Thanks in advance for any of your help.

Charlene


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Autoshape -- Rectangle

2003-06-10 Thread Yan, Charlene
All,

I'm trying to generate an Excel spreadsheet.  First I tried to use Cocoon by passing 
the xml string into Stream Generator, go through the gnumeric formatting 
trnasformation.  It was working fine intially.  However, with more and more 
styleregion I added, it will give me the following error:
org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
context://samples/hello-world/style/xsl/orderFormxls.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler

Is it caused by the huge size of the styling sheet??

Another problem I have is that there is no way to put autoshape such as a rectangle on 
the spreadsheet.

I am thinking about writing my own servlet to do it using poi.  Is is possible to put 
autoshape such as rectangles on the spreadsheet this way???

Thanks in advance for any of your help.

Charlene

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:01 PM
To: Yan, Charlene
Subject: ezmlm response


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

Acknowledgment: The address

   [EMAIL PROTECTED]

was already on the poi-user mailing list when I received
your request, and remains a subscriber.


--- Administrative commands for the poi-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   [EMAIL PROTECTED]

To remove your address from the list, send a message to:
   [EMAIL PROTECTED]

Send mail to the following for info and FAQ for this list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Similar addresses exist for the digest list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

To get messages 123 through 145 (a maximum of 100 per request), mail:
   [EMAIL PROTECTED]

To get an index with subject and author for messages 123-456 , mail:
   [EMAIL PROTECTED]

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   [EMAIL PROTECTED]

The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example [EMAIL PROTECTED], just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]

To stop subscription for this address, mail:
[EMAIL PROTECTED]

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 85153 invoked from network); 10 Jun 2003 16:01:16 -
Received: from tlau5p.thomsonlearning.com (198.80.140.46)
  by daedalus.apache.org with SMTP; 10 Jun 2003 16:01:16 -
Received: from ohcinmail04.tl.thomcorp.net (ohcinmail04 [198.80.170.139])
by tlau5p.thomsonlearning.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id 
h5AG1JLG011805
for [EMAIL PROTECTED]; Tue, 10 Jun 2003 12:01:19 -0400 (EDT)
Received: from ohcinmail05.tl.thomcorp.net ([198.80.170.54]) by 
ohcinmail04.tl.thomcorp.net with Microsoft SMTPSVC(5.0.2195.5329);
 Tue, 10 Jun 2003 12:01:17 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: RE: confirm subscribe to [EMAIL PROTECTED]
Date: Tue, 10 Jun 2003 12:01:17 -0400
Message-ID: [EMAIL PROTECTED]
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: confirm subscribe to [EMAIL PROTECTED]
Thread-Index: AcMvaYHXr5DKyTfcRBauTJn8t0XSBwAAFJVw
From: Yan, Charlene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
X-OriginalArrivalTime: 10 Jun 2003 16:01:17.0999 (UTC) FILETIME=[870773F0:01C32F69]
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:01 PM
To: Yan, Charlene
Subject: confirm subscribe to [EMAIL PROTECTED]


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

To confirm that you would like

   [EMAIL PROTECTED]

added to the poi-user mailing list, please send
an empty reply to this address:

   =
poi-user-sc.1055260863.gnhjaaniegcbgmhbaeil-Charlene.Yan=3Dthomsonlearnin=
[EMAIL PROTECTED]

Usually, this happens when you just hit the reply button.
If this does not work, simply

RE: Autoshape -- Rectangle

2003-06-10 Thread Yan, Charlene
Thanks for the information!!  Changing transform type=xslt to xalan in the sitemap 
solved the problem.

Regards,

Charlene

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Autoshape -- Rectangle


http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=Unable+to+get+transformer+handlerq=b

At 12:18 PM 6/10/2003, you wrote:
All,

I'm trying to generate an Excel spreadsheet.  First I tried to use Cocoon 
by passing the xml string into Stream Generator, go through the gnumeric 
formatting trnasformation.  It was working fine intially.  However, with 
more and more styleregion I added, it will give me the following error:
org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for context://samples/hello-world/style/xsl/orderFormxls.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Is it caused by the huge size of the styling sheet??

Another problem I have is that there is no way to put autoshape such as a 
rectangle on the spreadsheet.

I am thinking about writing my own servlet to do it using poi.  Is is 
possible to put autoshape such as rectangles on the spreadsheet this way???

Thanks in advance for any of your help.

Charlene


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How is rectangle interpreted in gnumeric style sheet??? Help Please!

2003-06-09 Thread Yan, Charlene
Jody,

Thank you very much for taking the time to explain it to me.  The style color is 
working.  However, I have a new problem I'm wondering whether you can help.  I need to 
put a rectangle in one of the cells.  In Excel, I add the rectangle to a cell by first 
clicking the rectangle of the drawing toolbar, and then clicking anywhere on the 
active spreadsheet, and then resizing it to fit into a cell.  The following is the 
only infomation I found in the gnumeric file format specs that may match what I need 
to do.  Here are my questions.  Is rectangle considered as an object?  If so, what is 
the syntax to put it in a cell?  Any information is highly appreciated!!!

3.13 Objects
This section records details about any objects that have been added to the
worksheet. Cell comments are represented as objects:
gmr:CellComment Author= Text= ObjectBound=D4
ObjectOffset=0 0 0 0 ObjectAnchorType=33 32 33 32/

Regards,

Charlene
-Original Message-
From: Jody Goldberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:56 PM
To: Yan, Charlene
Cc: [EMAIL PROTECTED]
Subject: Re: style color does not show up in Excel, Is it working with
Excel or the feature only in Gnumeric


On Thu, Jun 05, 2003 at 01:47:08PM -0400, Yan, Charlene wrote:
 Jody,
 
 Thank you, thank you and thank you!!!  Changing the shade value
 works.  Do you know where I can find more documentation on gmr
 stylesheet specs?  I only have The Gmumeric File Format from
 http://www.superlinksoftware.com/gnumeric-xml.pdf.  Should I go
 ahead and download gnumeric to learn more?

I'm sorry to say that we've never written any.  The entire story is
muddles somewhat in that you're writing xml in gnumeric format that
is being interpretted by an application other than Gnumeric, which
then stores the result in an obscure binary blob (aka xls).  

Reading our source code makes it trivially clear what the format is
doing (gnumeric/src/xml-io.c).  However, how that maps out to xls is
over in an entirely different area.  gnumeric/plugins/excel

We've tried hard to make our lives easier by maintaining a fairly
simple mapping between xls attributes and .gnumeric.  However, as we
delve deeper into the mysteries of MS Excel things get more obscure.

This list is the right place to ask questions about our intent, but
I may not be able to say much once things start depending on actual
implementations.  If you're operating in a unix environment you
could probably use gnumeric to do the conversion directly.  I could
be alot more helpful there.

Good Luck
Jody



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How is rectangle interpreted in gnumeric style sheet??? Help Please!

2003-06-09 Thread Yan, Charlene
All,

It is about poi for Excel spreadsheet generation.  Basically my question is whether it 
is possible to put a rectangle shape into a cell using the gnumeric transformation 
sheet.  If it is not doable, can I generate the same thing by directly using Java code 
to write a servlet?

Please your thoughts are appreciated!!

Charlene

-Original Message-
From: Yan, Charlene 
Sent: Monday, June 09, 2003 11:13 AM
To: [EMAIL PROTECTED]
Subject: How is rectangle interpreted in gnumeric style sheet??? Help
Please!


Jody,

Thank you very much for taking the time to explain it to me.  The style color is 
working.  However, I have a new problem I'm wondering whether you can help.  I need to 
put a rectangle in one of the cells.  In Excel, I add the rectangle to a cell by first 
clicking the rectangle of the drawing toolbar, and then clicking anywhere on the 
active spreadsheet, and then resizing it to fit into a cell.  The following is the 
only infomation I found in the gnumeric file format specs that may match what I need 
to do.  Here are my questions.  Is rectangle considered as an object?  If so, what is 
the syntax to put it in a cell?  Any information is highly appreciated!!!

3.13 Objects
This section records details about any objects that have been added to the
worksheet. Cell comments are represented as objects:
gmr:CellComment Author= Text= ObjectBound=D4
ObjectOffset=0 0 0 0 ObjectAnchorType=33 32 33 32/

Regards,

Charlene
-Original Message-
From: Jody Goldberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:56 PM
To: Yan, Charlene
Cc: [EMAIL PROTECTED]
Subject: Re: style color does not show up in Excel, Is it working with
Excel or the feature only in Gnumeric


On Thu, Jun 05, 2003 at 01:47:08PM -0400, Yan, Charlene wrote:
 Jody,
 
 Thank you, thank you and thank you!!!  Changing the shade value
 works.  Do you know where I can find more documentation on gmr
 stylesheet specs?  I only have The Gmumeric File Format from
 http://www.superlinksoftware.com/gnumeric-xml.pdf.  Should I go
 ahead and download gnumeric to learn more?

I'm sorry to say that we've never written any.  The entire story is
muddles somewhat in that you're writing xml in gnumeric format that
is being interpretted by an application other than Gnumeric, which
then stores the result in an obscure binary blob (aka xls).  

Reading our source code makes it trivially clear what the format is
doing (gnumeric/src/xml-io.c).  However, how that maps out to xls is
over in an entirely different area.  gnumeric/plugins/excel

We've tried hard to make our lives easier by maintaining a fairly
simple mapping between xls attributes and .gnumeric.  However, as we
delve deeper into the mysteries of MS Excel things get more obscure.

This list is the right place to ask questions about our intent, but
I may not be able to say much once things start depending on actual
implementations.  If you're operating in a unix environment you
could probably use gnumeric to do the conversion directly.  I could
be alot more helpful there.

Good Luck
Jody



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



POI Excel Reports Formatting Languages

2003-06-06 Thread Yan, Charlene
All,

I'm using xmlns:gmr=http://www.gnome.org/gnumeric/v7; in producing the Excel report.  
Somehow styles do not show up in the report.  For example, the following code has Fore 
and Back and PatternColor specified.  But they don't show up in Excel.  StyleBorder 
works though.  Here are my questions.  Are there any other styling languages out there 
other than gnumeric for me to use?  Is there a support group for using gnumeric out 
there?

Thanks a lot!

Charlene

gmr:Styles
gmr:StyleRegion startCol=0 startRow=0 endCol=17 endRow=3
gmr:Style HAlign=1 VAlign=2 WrapText=0 Orient=1 Shade=0
Indent=0 Fore=F800:0:0 Back=0:8000:0 PatternColor=C000:C000:C000 
Format=General
  gmr:Font Unit=9 Bold=0 Italic=0 Underline=0
StrikeThrough=0Helvetica/gmr:Font
  gmr:StyleBorder
gmr:Top Style=2/
gmr:Bottom Style=2/
gmr:Left Style=2/
gmr:Right Style=2/
gmr:Diagonal Style=2/
gmr:Rev-Diagonal Style=2/
  /gmr:StyleBorder
/gmr:Style
/gmr:StyleRegion
  /gmr:Styles

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jfor encoding problem (POST encoding problem, indeed)

2003-06-05 Thread Yan, Charlene
Bertrand,

Thank you very much for your help!!!  The html encoding was the problem!!!  You are 
the man!!!  I'm just so happy that it works.

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:25 AM
To: [EMAIL PROTECTED]
Subject: Fwd: jfor encoding problem (POST encoding problem, indeed)


Hi Charlene,

 using the Orderpage example at 
 http://localhost:8080/cocoon/samples/stream/order.  If you add ?xml 
 version=1.0 encoding=ISO-8859-1? at the top of the default xml 
 and change Order Id to be Gérer, the next html page will display 
 OrderIDGérer /OrderID as Order Id

This has nothing to do with jfor - in your scenario, Cocoon's 
StreamGenerator is used to read your XML from an HTML form field.

Your encoding problem is caused by the StreamGenerator using the wrong 
encoding when *reading data* from the form's POST request. To use a 
different encoding, you have to change the HTML code of the form, 
replacing

meta http-equiv=Content-Type content=text/html; charset=UTF-8

   with

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1

for example.

The encoding declaration that you used in the XML input field is 
probably handled correctly later on, but it's too late as the 
StreamGenerator has already read the data with the wrong encoding.

Hope this helps,
-Bertrand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jfor encoding problem

2003-06-04 Thread Yan, Charlene
Bertrand,

Thank you very much for your reply.  First of all, I'm using Cocoon-2.1m2 and 
jdk1.3.1.  I am using the xercesImpl-2.4.1.jar (875KB), xalan-20030506.jar(2571KB), 
and xml-apis.jar(122kb) in tomcat4.0.5's common/lib dir.  You can easily reproduce it 
by using the Orderpage example at http://localhost:8080/cocoon/samples/stream/order.  
If you add ?xml version=1.0 encoding=ISO-8859-1? at the top of the default xml 
and change Order Id to be Gérer, the next html page will display OrderIDGérer 
/OrderID as Order Id.  It is doing the same thing to rtf report.  

Is it a parser problem?  The same xml is parsed correctly in my struts application 
using different xml jars.  I'm going to switch to using those jars to try if it will 
work.

Thanks!

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:41 AM
To: [EMAIL PROTECTED]
Cc: Yan, Charlene
Subject: Re: jfor encoding problem



Le Lundi, 2 juin 2003, à 21:51 Europe/Zurich, Yan, Charlene a écrit :

 ...
 I'm trying to display accented characters correctly using jfor.  
 However, when I try to run 
 http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the 
 following exception.  I have put some French words such as Gére in 
 the xml file...

Is the encoding declaration correct in your input XML?
Can you parse it with another tool (XML editor or parser)?

If you can reduce your input to the smallest XML file that causes the 
problem, you could post it here so that someone can test it.

Hope this helps,
--
   Bertrand Delacretaz (codeconsult.ch, jfor.org)
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
   blogspace http://www.codeconsult.ch/bertrand


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: jfor encoding problem

2003-06-04 Thread Yan, Charlene
Bertrand,

Thank you very much for your reply.  First of all, I'm using Cocoon-2.1m2 and 
jdk1.3.1.  I am using the xercesImpl-2.4.1.jar (875KB), xalan-20030506.jar(2571KB), 
and xml-apis.jar(122kb) in tomcat4.0.5's common/lib dir.  You can easily reproduce it 
by using the Orderpage example at http://localhost:8080/cocoon/samples/stream/order.  
If you add ?xml version=1.0 encoding=ISO-8859-1? at the top of the default xml 
and change Order Id to be Gérer, the next html page will display OrderIDGérer 
/OrderID as Order Id.  It is doing the same thing to rtf report.  

Is it a parser problem?  The same xml is parsed correctly in my struts application 
using different xml jars.  I'm going to switch to using those jars to try if it will 
work.

Thanks!

Charlene

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:41 AM
To: [EMAIL PROTECTED]
Cc: Yan, Charlene
Subject: Re: jfor encoding problem



Le Lundi, 2 juin 2003, à 21:51 Europe/Zurich, Yan, Charlene a écrit :

 ...
 I'm trying to display accented characters correctly using jfor.  
 However, when I try to run 
 http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the 
 following exception.  I have put some French words such as Gére in 
 the xml file...

Is the encoding declaration correct in your input XML?
Can you parse it with another tool (XML editor or parser)?

If you can reduce your input to the smallest XML file that causes the 
problem, you could post it here so that someone can test it.

Hope this helps,
--
   Bertrand Delacretaz (codeconsult.ch, jfor.org)
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
   blogspace http://www.codeconsult.ch/bertrand


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cocoon to xml or CSV

2003-06-04 Thread Yan, Charlene
The following links are very helpful.  If you have downloaded Cocoon-2.1m2.  Here is 
the link to see Excel in action:
http://localhost:8080/cocoon/samples/poi/welcome

HTH.

Charlene

Tony Collen wrote:
 On Wed, 21 May 2003, Yan, Charlene wrote:
 
 Could someone point me to a correct direction please?
 
 For the Excel stuff goes, you might want to check out the following
 resources:
 
 http://www.xml.com/pub/a/2003/01/22/cocoon-excel.html
 
 http://wiki.cocoondev.org/Wiki.jsp?page=ExcelGeneration
 
 and also http://wiki.cocoondev.org/Wiki.jsp?page=XLSSerializer

Not to forget the official Cocoon documentation:
http://cocoon.apache.org/2.0/userdocs/serializers/xls-serializer.html

Joerg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-Original Message-
From: Tim Bachta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: cocoon to xml or CSV


I am new to cocoon and am trying to find a way to create an CSV or excel
file.  I have found a little information on the HSSF Serializer but do
not know how to implement it.  Can anyone help me or show me an example
of how to do this properly.

 

Thanks for the help.

 

Tim Bachta

 

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jfor encoding problem

2003-06-03 Thread Yan, Charlene
Hi everyone,

I'm trying to display accented characters correctly using jfor.  However, when I try 
to run http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the following 
exception.  I have put some French words such as Gére in the xml file.  Looks like 
it is a parser issue.  Anyone has any experience of this?  Thanks so much for your 
help!!

Charlene

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.

at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337)
at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:198)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:262)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:679)
at 
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:415)
at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:193)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:292)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:489)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:150)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)

RE: jfor encoding problem

2003-06-03 Thread Yan, Charlene
Con,

Thanks for your reply.  You are right that I should have encoding=ISO-8859-1 in the 
prolog.  My current xml string doesn't have any declaration in the front.  That's 
causing the problem.

Thanks again!

Charlene

-Original Message-
From: Conal Tuohy [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 5:05 PM
To: [EMAIL PROTECTED]
Subject: RE: jfor encoding problem


Charlene, it looks to me like your problem is not with jfor, but merely with parsing 
the XML source file. 

The parser thinks the French text is encoded as UTF-8, but my guess is that it 
actually uses ISO-8859-1. You should either open the XML file again and save it in 
UTF-8 format, or add an encoding declaration to the start of the file. e.g. ?xml 
version=1.0 encoding=ISO-8859-1? 

Cheers

Con

 -Original Message-
 From: Yan, Charlene [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 3 June 2003 07:52
 To: [EMAIL PROTECTED]
 Subject: jfor encoding problem
 
 
 Hi everyone,
 
 I'm trying to display accented characters correctly using 
 jfor.  However, when I try to run 
 http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it 
 gives the following exception.  I have put some French words 
 such as Gére in the xml file.  Looks like it is a parser 
 issue.  Anyone has any experience of this?  Thanks so much 
 for your help!!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: flow - sendmailaction - content

2003-05-31 Thread Yan, Charlene
Chris,

Could you give me an example on attaching the url as an attachment please?  I was 
looking at www.cocooncenter.com sendmail example.  Do you attach the url in the 
sendmail.xsp or where?  I can't do much testing right now because my system is down.:( 

Thanks for your help.

Charlene

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 7:11 AM
To: [EMAIL PROTECTED]
Subject: Re: flow - sendmailaction - content


On 28.May.2003 -- 11:27 AM, Frank Taffelt wrote:
 Hi,
 
 a FlowScript question:
 
 In my flowscript i wish to send email via the sendmailaction. The email
 should contain formatted content (HTML). How can i get the output from a
 pipeline into the flowscript?

In 2.1 you can pass a URLs to the action from which it obtains
attachments, eg cocoon://create_my_mail .

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why fo:wrapper tag does not work in fo:block

2003-05-29 Thread Yan, Charlene
All,

Maybe this is the wrong place to ask a question on XSL-FO.  Can someone point me to a 
mailing list on XSL-FO?  

Thanks a lot!

Charlene

-Original Message-
From: Yan, Charlene 
Sent: Tuesday, May 27, 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: Why fo:wrapper tag does not work in fo:block


I am using XSL formatting objects.
I'm trying to specify different font weight to some text in one block.  
fo:blockfo:wrapper font-weight=boldSolution Name: /fo:wrapperxsl:value-of 
select=name /
/fo:block 

Somehow after I add the wrapper tag, the text inside the wrapper is not displayed.  
Only select name is displayed.  I have attached the stylesheet below.  Please help me!

Thanks.

Charlene
=

?xml version=1.0?

!-- CVS $Id: page2fo.xsl,v 1.2 2003/05/07 04:57:13 vgritsenko Exp $ --

xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:fo=http://www.w3.org/1999/XSL/Format;

  xsl:template match=/
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   
fo:layout-master-set
 fo:simple-page-master master-name=solution
  page-height=29.7cm 
  page-width=21cm
  margin-top=1cm 
  margin-bottom=2cm 
  margin-left=2.5cm 
  margin-right=2.5cm
   fo:region-before extent=3cm/
   fo:region-body margin-top=3cm/
   fo:region-after extent=1.5cm/
 /fo:simple-page-master

 fo:page-sequence-master master-name=solution
   fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=page 
page-position=first/
   /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
/fo:layout-master-set

fo:page-sequence master-reference=solution  
  fo:static-content flow-name=xsl-region-after
  fo:block
  fo:leader leader-pattern=rule leader-length=18cm / 
  /fo:block
  fo:block text-align=center 
  font-size=10pt 
  font-family=serif 
  line-height=14ptPage fo:page-number//fo:block
  /fo:static-content 

  fo:flow flow-name=xsl-region-body
xsl:apply-templates/
  /fo:flow
/fo:page-sequence
   /fo:root
  /xsl:template

  xsl:template match=solution
  fo:block
fo:block font-size=14pt space-before.optimum=24pt text-align=LeftSolution 
Detail Report /fo:block
fo:blockfo:wrapper font-weight=boldSolution Name: /fo:wrapperxsl:value-of 
select=name /
/fo:block 
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftfo:wrapper font-weight=boldSolution ID: 
/fo:wrapperxsl:value-of select=swbId //fo:block
fo:block font-size=10pt space-before.optimum=24pt text-align=LeftSolution 
Keyword(s): xsl:value-of select=displayedKeywords //fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftfo:wrapper font-weight=bold/fo:wrapper /fo:block
fo:block font-size=10pt space-before.optimum=24pt text-align=LeftSolution 
Description:/fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftxsl:value-of select=longDescription //fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Left/fo:block
  /fo:block
  /xsl:template
/xsl:stylesheet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Why fo:wrapper tag does not work in fo:block

2003-05-27 Thread Yan, Charlene
I am using XSL formatting objects.
I'm trying to specify different font weight to some text in one block.  
fo:blockfo:wrapper font-weight=boldSolution Name: /fo:wrapperxsl:value-of 
select=name /
/fo:block 

Somehow after I add the wrapper tag, the text inside the wrapper is not displayed.  
Only select name is displayed.  I have attached the stylesheet below.  Please help me!

Thanks.

Charlene
=

?xml version=1.0?

!-- CVS $Id: page2fo.xsl,v 1.2 2003/05/07 04:57:13 vgritsenko Exp $ --

xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:fo=http://www.w3.org/1999/XSL/Format;

  xsl:template match=/
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   
fo:layout-master-set
 fo:simple-page-master master-name=solution
  page-height=29.7cm 
  page-width=21cm
  margin-top=1cm 
  margin-bottom=2cm 
  margin-left=2.5cm 
  margin-right=2.5cm
   fo:region-before extent=3cm/
   fo:region-body margin-top=3cm/
   fo:region-after extent=1.5cm/
 /fo:simple-page-master

 fo:page-sequence-master master-name=solution
   fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=page 
page-position=first/
   /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
/fo:layout-master-set

fo:page-sequence master-reference=solution  
  fo:static-content flow-name=xsl-region-after
  fo:block
  fo:leader leader-pattern=rule leader-length=18cm / 
  /fo:block
  fo:block text-align=center 
  font-size=10pt 
  font-family=serif 
  line-height=14ptPage fo:page-number//fo:block
  /fo:static-content 

  fo:flow flow-name=xsl-region-body
xsl:apply-templates/
  /fo:flow
/fo:page-sequence
   /fo:root
  /xsl:template

  xsl:template match=solution
  fo:block
fo:block font-size=14pt space-before.optimum=24pt text-align=LeftSolution 
Detail Report /fo:block
fo:blockfo:wrapper font-weight=boldSolution Name: /fo:wrapperxsl:value-of 
select=name /
/fo:block 
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftfo:wrapper font-weight=boldSolution ID: 
/fo:wrapperxsl:value-of select=swbId //fo:block
fo:block font-size=10pt space-before.optimum=24pt text-align=LeftSolution 
Keyword(s): xsl:value-of select=displayedKeywords //fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftfo:wrapper font-weight=bold/fo:wrapper /fo:block
fo:block font-size=10pt space-before.optimum=24pt text-align=LeftSolution 
Description:/fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Leftxsl:value-of select=longDescription //fo:block
fo:block font-size=10pt space-before.optimum=24pt 
text-align=Left/fo:block
  /fo:block
  /xsl:template
/xsl:stylesheet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]