SV: disable xsp caching not working ?

2001-07-30 Thread Bjarne Jensen

Well I think it depends on how you link to the XSP-file. My XSP is never
cached and the PI looks like below (Note the "






Hope it will help you.
/Bjarne

-Oprindelig meddelelse-
Fra: Dauben, Oliver [mailto:[EMAIL PROTECTED]]
Sendt: 30. juli 2001 20:35
Til: [EMAIL PROTECTED]
Emne: disable xsp caching not working ?


hi cocooners,

is there anybody out there who has managed to disable compiled XSP from
beeing delivered ?

i already activated "NonCachingStreamPipeline" & "NonCachingEventPipeline"
in cocoon.xconf, but caching still seems to take place...

caching is annoying during development work on the XSPs and i don't want to
restart the whole engine every now and then.

env: suse linux 2.2.4 / tcat 4.0 / c2.1dev

cheers,

oLiVeR

-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




Question regarding Cocoons internal structure: XSLT and object tree re-use

2001-07-09 Thread Bjarne Jensen

If we have a page called content.xml with the following PI:






The first thing that happens is that the page gets parsed to a DOM-tree that
is then modified. I was wondering if this DOM-tree is modified until it gets
serialized as HTML in the end. Or is this DOM-tree serialized and then
parsed between each step in the pipeline?

If anyone do not know the answer to such a question - how do I find out? On
Cocoons website the information is not so much low-level - wich I think is
fine but if I would like to go deeper is the SourceSode then the only way?
If the documents gets serialized and parsed between each steps in a
pipeline - then it would probably run much faster if it re-used the DOM-tree
instead, and this would be a way to optimize Cocoon.

I am using Cocoon 1.8.2 - I know Cocoon 2 uses SAX - but are they designed
the same way regarding reuse of object tree?

Thanks for any help in advance
/Bjarne



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Any example of a cached XSP-page needed (C1.8.2) - would anyone send a simple example?

2001-06-29 Thread Bjarne Jensen

Hi,
I was trying to find out how I can cache a XSP-page. But the message
"..served form cache.." is not in the bottom of my pages. So... does anyone
have a working example that they would like to share? I have looked in the
"Cache documentation", but I need a full working example.

Below is my try - There are no errors but also no cache.
/Bjarne


 
 http://www.apache.org/1999/XSP/Core";
 xmlns:util="http://www.apache.org/1999/XSP/Util";>
 

 
 
  public boolean hasChanged (Object context) {
return false;
  }
 

  

// Define a variable to hold the time of day
   Date now = new Date();


 
   To the best of my knowledge, it's now
   
   now
 

 




-
Please check that your question has not already been answered in the
FAQ before posting. 

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




SV: Xinclude, html file

2001-06-20 Thread Bjarne Jensen

Hi
Different tools are avaible for transforming html to xhtml (XML-version of
HTML). One of them is Tidy (http://www.w3.org/People/Raggett/tidy/). I think
XSLT only handle XML-document. Maybe this was not the answer you were
looking for, but as I see it XSLT only transform XML-documents (for input).
If your would convert a non-XML-document you could probably use another
tool. Do not know what would be the right tool for you. I guess CSS or CSS2
do not suit your needs.
/Bjarne

-Oprindelig meddelelse-
Fra: Chris Joelly [mailto:[EMAIL PROTECTED]]
Sendt: 20. juni 2001 14:31
Til: [EMAIL PROTECTED]
Emne: Xinclude, html file


Hello!

im looking for a way to include static html files to a xml file, which
then should be transformed to html using xslt, but the html code should
be inserted in the resulting html document as is... i know, it would
be better to convert the html files to xml, but if i could use my ready
html files i would be more happier...

thx, Chris

--
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




SV: Tranformation of xml to pdf format

2001-06-14 Thread Bjarne Jensen



Well don't know why you have no 
header in your table. So just check that the XSLT creates the right FO. 

 
This url: describes how to do tables 
in FO.http://www.zvon.org/xxl/xslfoReference/Standard/slice6.html#section-N14029-Formatting-Objects-for-Tables
 
Try also this:http://www.zvon.org/xxl/xslfoReference/Output/index.html
 
Both links is from http://zvon.org
 
PS: Why am I receiving the same mail 
more than ones? Why are you sending it on both cocoon-dev and cocoon-dev-help? 
(cocoon-dev should be the right place). Well one time is enough for me, and 
probably also for everyone else.
 
/Bjarne

  -Oprindelig meddelelse-Fra: Veeramani S 
  [mailto:[EMAIL PROTECTED]]Sendt: 14. juni 2001 16:15Til: 
  '[EMAIL PROTECTED]'; [EMAIL PROTECTED]Cc: 
  '[EMAIL PROTECTED]'Emne: Tranformation of xml to pdf 
  format
  
  
  Hi Bjarne,
  I have modified the 
  stylesheet to show the table. But the header of the table is still missing. I 
  have enclosed the stylesheet (final-pdf.xsl), applied on the xml "home.layout" 
  file. I apply this xsl on the home.layout file using the xalan xslt processor. 
  Then when we open this file through Apache's Cocoon a table without a header 
  is seen. Can you please tell me why the table-header is missing. I have 
  attached all the three files to this mail.
  regards,
  Hema.
   
   
  
    -Original Message-From: Bjarne Jensen 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 2001 6:07 
PMTo: [EMAIL PROTECTED]Subject: SV: PDF 
generation
Well don't know why it works for me but not for you. Your are using 
the originally test-fo.xml from C1.8.2 and writing the full URL including 
"?.pdf". Then I really don't know. Have you also tried to rigt-click and 
save-as... and open the generated PDF form your Acrobat Reader 
4?
/Bjarne

  -Oprindelig meddelelse-Fra: Janesh Vasudeva 
  [mailto:[EMAIL PROTECTED]]Sendt: 13. juni 2001 
  14:24Til: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]; [EMAIL PROTECTED]Emne: Re: PDF 
  generation
  I have tried all cocoon samples . it 
  generated pdf format but no data in it.
   
  Pls explain me the reason
   
  i am using weblogic 5.1
   
  janesh
   
  Wed Jun 13 17:49:39 GMT+05:30 2001: 
   *.xml: init ( 
  test-fo.xml)using renderer 
  org.apache.fop.render.pdf.PDFRendererusing element mapping 
  org.apache.fop.fo.StandardElementMappingusing element mapping 
  org.apache.fop.svg.SVGElementMappingbuilding formatting object 
  treesetting up fontsformatting FOs into 
  areas [1]rendering areas to PDFwriting out PDFusing 
  renderer org.apache.fop.render.pdf.PDFRenderer ( 
  test2-fo.xml)using element mapping 
  org.apache.fop.fo.StandardElementMappingusing element mapping 
  org.apache.fop.svg.SVGElementMappingbuilding formatting object 
  treesetting up fontsformatting FOs into areas [2] [3] 
  [4>] [5] [6] [7]rendering areas to PDFwriting out 
  PDF
   
   
  
    ----- Original Message - 
From: 
Bjarne Jensen 
To: [EMAIL PROTECTED] 

Sent: Wednesday, June 13, 2001 5:44 
PM
Subject: SV: PDF generation

When I run my cocoon-samples it works well. I use the folowing 
url:
 
http://localhost:8080/cocoon/samples/fo/test-fo.xml?.pdf
 
This includes a table.
/Bjarne

  -Oprindelig meddelelse-Fra: Janesh Vasudeva 
  [mailto:[EMAIL PROTECTED]]Sendt: 
  13. juni 2001 14:03Til: [EMAIL PROTECTED]Emne: 
  PDF generation
  Sample files provided by cocooon itself. 
  it just shows blank screen with no data in it.
   
  Pls let me know
   
  janesh


SV: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor

2001-06-13 Thread Bjarne Jensen

Well it's my email-program. SV: is danish but means exactly the same as RE:
(reply) :-) Do not know if SV has another meaning also.

The best way to search in old mails is IMHO by using www.google.com and
typing "site:mailman.real-time.com" + "what you search for", like:
"site:mailman.real-time.com SV:", finds mails send to this list that
contains "SV:" + I got the tip by reading an old posted mail.

Hope that I am not disturbing the list IYHO.
/Bjarne





-Oprindelig meddelelse-
Fra: Daniel Pfuhl [mailto:[EMAIL PROTECTED]]
Sendt: 13. juni 2001 14:50
Til: [EMAIL PROTECTED]
Emne: Re: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor



Hi

sorry for my lack of knowledge but
what means "SV" in front of the subject
of a mail?

where can I find such information so that
I don't have to disturb the list again searching
such answers.

thanks

daniel

=

Daniel Pfuhl
mailto:[EMAIL PROTECTED]

__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor

2001-06-13 Thread Bjarne Jensen

You wrote:
>“In your example, static example data is replaced by dynamic markup,
>which is precisely what we wanted to avoid. The augmented html rather
>looks like this (the datamodel namespace identifies markup related to
>the application data model).

  
Paul
3"
  

>Put this in a web browser, and it will be rendered correctly with
>example data, even if it's in fact a dynamic page !”

I have tried this in my IE 5.5 it looks like a normal table. So IE5.5 does
not care about the extra attributes in the  :-) Netscape 4.7 does not
show anything :-( so to use this approach the designers has to use IE5.5 (or
similar). My question is: how do you put the extra attributes in
Dreamweaver? (I have version 3). Are the designer typing them manually – or
are you using a Javascript or? How does it look like? How do I configure my
Dreamweaver?

The text “Paul” and “3” is deleted when the pages is generated right
dynamically, right?

“for-each=”Person”” is in my opinion programming and not layout (XSLT is a
real programming-language Turin-complete and so on, it’s not just layout).
So haven’t you mixed programming and layout in your example? That was why I
wrote  in stead of .

In the Article (Style-free XSLT) the XSLT is split in two different files
but the layout gets calculated run-time. Is this the same with your
appliaction?

You also wrote:
> What is an XML persistence engine?
>
A component that allows XML data to be read/write/queried in any target
persitence mechanism for which we have written an implementation (files,
SQL db, LDAP directories, etc). The application doesn't have to know
_how_ data is stored.

Is this component made by you or another vendor? This is some kind of
interface-program-logic between the data-model and the transforming logic
that guarantees the data doesn’t get mixed up, right?. ….On top of the
transforming logic there is some layout.

Thanks you very much again :-)
/Bjarne

-Oprindelig meddelelse-
Fra: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Sendt: 13. juni 2001 13:39
Til: [EMAIL PROTECTED]
Emne: Re: Maintaining Cocoon-layout in WYSIWYG-HTML-editor




Bjarne Jensen a écrit :
>
> Is this correctly understood?
>
> --
> Dreamweaver creates HTML like this:
>
> 
>

> 
>
> And your XSLT render this to something like:
>
> 
> Paul
> Ann3332
> …
> ..
> 
>
> How do you do that? Gets the parents and so I XSLT?
>
In your example, static example data is replaced by dynamic markup,
which is precisely what we wanted to avoid. The augmented html rather
looks like this (the datamodel namespace identifies markup related to
the application data model).

  
Paul
3"
  

Put this in a web browser, and it will be rendered correctly with
example data, even if it's in fact a dynamic page !
> -
>
> You wrote:
>
> ”..but this changes with C2) which calls application logic Java
> code either directly through  or using specialized
> logicsheets. “
>
> C1 calls application logic in Java directly doesn’t it?
> It is possible to have your own logicsheets in C1 so I really does not
> understand the difference here?
>
No actual difference since a logicsheet always finally gets translated
to Java code. We use logicsheets for commonly used features while
 is used in non-reusable specific needs.

> I know the sitemap can centralize Processing Instructions (PI) in C2 and
> that is not possible in C1 and that can give a better separation. But that
> has nothing to do with what your are writing.
>
Well, it has in a certain way : in C1, the fact that an XSP decides
(through PI's) how it is to be rendered is mixing of concerns. With C2's
sitemap, you can use a single XSP file to produce content that gets
rendered differently (html, wml, pdf, excel, svg, etc) depending on the
sitemap-defined context.

> -
>
> You also wrote:
> “We also have an XML persistence engine that hides
> SQL/LDAP/files/Whatever for data access.”
>
> What is an XML persistence engine?
>
A component that allows XML data to be read/write/queried in any target
persitence mechanism for which we have written an implementation (files,
SQL db, LDAP directories, etc). The application doesn't have to know
_how_ data is stored.

> Hides the filename in the URL, or?
>
> Well please tell more about this
>
> PS: I really like hearing how you made the separation. The reason why I am
> so interested in the separation is that I am writing the last paper in my
> education and the subject is separation between layers in webapplications.
3
> years ago I worked in a webfirm that mixed the layers and that was a big
> problem then. I think the problem still remains in a lot of companyes you
> are the only one I have ever head about that seems to have accomplished
> this. I agree (

SV: PDF generation

2001-06-13 Thread Bjarne Jensen



When I 
run my cocoon-samples it works well. I use the folowing url:
 
http://localhost:8080/cocoon/samples/fo/test-fo.xml?.pdf
 
This 
includes a table.
/Bjarne

  -Oprindelig meddelelse-Fra: Janesh Vasudeva 
  [mailto:[EMAIL PROTECTED]]Sendt: 13. juni 2001 
  14:03Til: [EMAIL PROTECTED]Emne: PDF 
  generation
  Sample files provided by cocooon itself. it just 
  shows blank screen with no data in it.
   
  Pls let me know
   
  janesh


SV: EJB, Cocoon, transaction management - need help for overview

2001-06-13 Thread Bjarne Jensen

Thanks for your reply. So the technologies fits together and preforms ok for
practically use? Do you know of any articles or a link that would help me
understand how it would be correct to use EJB and Cocoon together?
/Bjarne

-Oprindelig meddelelse-
Fra: RameshBabu R Muthuvel [mailto:[EMAIL PROTECTED]]
Sendt: 13. juni 2001 13:04
Til: [EMAIL PROTECTED]
Emne: Re: EJB, Cocoon, transaction management - need help for overview


Hi

I don't know how cocoon helps in transaction management, but i know how you
attain it using jboss.

In jboss, you include it as part of the deployment descriptor.

ramesh


Original Message Follows

I don’t know much about EJB but I have read that EJB has transaction
management, distributed transactions, and support for mission-critical
applications. My question is how does this fit with Cocoon? Are you putting
Cocoon on top of your EJB-application for cache-use and for converting to
the format desired. Or can you put most of your program-logic in Cocoon and
really don’t need EJB? Are there any transaction control in Cocoon? Do you
only use Cocoon if you don’t need transaction management/control or doesn’t
the technologies fit together - because it would be to slow or so? Has
anyone tried this and made it work well?

Thanks for any help that would clear my view of EJB and Cocoon.
/Bjarne


-
Please check that your question has not already been answered in the
FAQ before posting. 

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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




SV: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor

2001-06-13 Thread Bjarne Jensen

Is this correctly understood?

--
Dreamweaver creates HTML like this:





And your XSLT render this to something like:


Paul
Ann3332
…
..


How do you do that? Gets the parents and so I XSLT?

-

You wrote:

”..but this changes with C2) which calls application logic Java
code either directly through  or using specialized
logicsheets. “

C1 calls application logic in Java directly doesn’t it?
It is possible to have your own logicsheets in C1 so I really does not
understand the difference here?

I know the sitemap can centralize Processing Instructions (PI) in C2 and
that is not possible in C1 and that can give a better separation. But that
has nothing to do with what your are writing.

-

You also wrote:
“We also have an XML persistence engine that hides
SQL/LDAP/files/Whatever for data access.”

What is an XML persistence engine?

Hides the filename in the URL, or?

Well please tell more about this

PS: I really like hearing how you made the separation. The reason why I am
so interested in the separation is that I am writing the last paper in my
education and the subject is separation between layers in webapplications. 3
years ago I worked in a webfirm that mixed the layers and that was a big
problem then. I think the problem still remains in a lot of companyes you
are the only one I have ever head about that seems to have accomplished
this. I agree (se below) to you why the layers should be separate. Another
reason for having the layers separate is that you can substitute one or two
layers and you have a new application that should suits a new customer. Are
you doing that?

Thank you ones again :-)
/Bjarne

-Oprindelig meddelelse-
Fra: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Sendt: 13. juni 2001 11:56
Til: [EMAIL PROTECTED]
Emne: Re: SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor




Bjarne Jensen a écrit :
>
> Well that sounds really interesting – congratulations :-) So by
maintaining
> the website like this you have a separation between layout and content.
What
> about seperation between content and program-logic – have you also
> accomplished this? Are there any need for that?
>
Content is generated by XSPs (which was the main way of doing it with
Cocoon1, but this changes with C2) which calls application logic Java
code either directly through  or using specialized
logicsheets. We also have an XML persistence engine that hides
SQL/LDAP/files/Whatever for data access. This leads to true
presentation/logic/persistence separation.

> And then another question. What if you compute a table (so that you don't
> know how long it would be) – is this also maintained in Dreamweaver or do
> you have the HTML that makes the TABLE inside the XSLT in that situation?
I
> can’t figure out how to maintain a table like this in Dreamweaver only in
> XSLT.
>
Among our specialized tags, some are structure-oriented. The designer
just has to mark the table with the data collection he wants to display,
and this generates an  in the resulting XSL, adding rows as
necessary and feeding cells with live data (this works not only with
tables, but with any repetivite structure : lists, paragraphs, popups,
etc).

The main ideas behind all this are :
- web pages, even if dynamic, should be editable by a web designer (with
no programming skills)
- turning a static page into a dynamic one shouldn't be destructive : in
JSP/ASP/PHP, data access code replaces example data that the designer
has put in the page during the design. With our approach, markup
identifying the data surrounds (tags) or marks (attributes) the static
example data.

The benefits are that you can always show your dynamic pages as static
ones (just send a bunch of HTML files to your customer to show him what
his app looks like) and that a web designer can update the pages with
his favorite tool even if they're dynamic (easy maintenance).

> Thank you very much for your comment :-)
>
WYSIWYG editing is IMO the main feature that's missing for XML/XSL to
spread the whole web industry. That's what we're trying to do.

> /Bjarne
>

--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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




SV: Maintaining Cocoon-layout in WYSIWYG-HTML-editor

2001-06-13 Thread Bjarne Jensen

Well that sounds really interesting – congratulations :-) So by maintaining
the website like this you have a separation between layout and content. What
about seperation between content and program-logic – have you also
accomplished this? Are there any need for that?

And then another question. What if you compute a table (so that you don't
know how long it would be) – is this also maintained in Dreamweaver or do
you have the HTML that makes the TABLE inside the XSLT in that situation? I
can’t figure out how to maintain a table like this in Dreamweaver only in
XSLT.

Thank you very much for your comment :-)
/Bjarne

-Oprindelig meddelelse-
Fra: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Sendt: 13. juni 2001 10:40
Til: [EMAIL PROTECTED]
Emne: Re: Maintaining Cocoon-layout in WYSIWYG-HTML-editor




Bjarne Jensen a écrit :
>
> I have read the article “Style-free XSLT Style Sheets”
> (http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html) by Eric van der
> Vlist and this is IMHO a really great article that told me how to splits
the
> XHTML and XSLT in to different layout-files. Does anyone think it would
work
> in real life, if the XHTML was maintained by a WYSIWYG editor like
> dreamweaver with support for XHTML - anybody know such an editor? (if not
> you can use Dreamweaver and Tidy). The XSLT-part of the layout would be
> maintained by a programmer or a trained graphical designer. Anyone tried
> this in real life – I would really like to hear some opinions? My own
> opinion is that I think this would work because the HTML would be made as
> useual and the process of applying the new HTML to the
> Cocoon-web-application could be done automatically without involving the
> programmer - does anyone disagree or agree?
>
> Thanks for any comments
> /Bjarne
>
We use a similar approach here : a regular HTML page built with a
WYSIWYG editor is augmented with specialized markup that identifies
variable parts of the page. This page is then "compiled" in an XSL that
merges presentation and data to produce dynamic pages.

To avoid HTML source code edition for adding our specialized markup, we
have extended DreamWeaver (it's easily customizable in JavaScript) so
that the web designer can do it all in WYSIWYG mode.

About Tidy, we had some problems with it because it doesn't like
non-HTML markup. So we derived the AElfred parser that's in SAXON
(originally written by David Megginson, author of SAX) so that it
accepts HTML (auto-closing tags, value-less attributes, etc) and our
markup.

And thus we obtain a true separation between presentation and logic, and
a kind of WYSIWYG XSL editor with DreamWeaver !
--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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




Maintaining Cocoon-layout in WYSIWYG-HTML-editor

2001-06-13 Thread Bjarne Jensen

I have read the article “Style-free XSLT Style Sheets”
(http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html) by Eric van der
Vlist and this is IMHO a really great article that told me how to splits the
XHTML and XSLT in to different layout-files. Does anyone think it would work
in real life, if the XHTML was maintained by a WYSIWYG editor like
dreamweaver with support for XHTML - anybody know such an editor? (if not
you can use Dreamweaver and Tidy). The XSLT-part of the layout would be
maintained by a programmer or a trained graphical designer. Anyone tried
this in real life – I would really like to hear some opinions? My own
opinion is that I think this would work because the HTML would be made as
useual and the process of applying the new HTML to the
Cocoon-web-application could be done automatically without involving the
programmer - does anyone disagree or agree?

Thanks for any comments
/Bjarne


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




EJB, Cocoon, transaction management - need help for overview

2001-06-13 Thread Bjarne Jensen

I don’t know much about EJB but I have read that EJB has transaction
management, distributed transactions, and support for mission-critical
applications. My question is how does this fit with Cocoon? Are you putting
Cocoon on top of your EJB-application for cache-use and for converting to
the format desired. Or can you put most of your program-logic in Cocoon and
really don’t need EJB? Are there any transaction control in Cocoon? Do you
only use Cocoon if you don’t need transaction management/control or doesn’t
the technologies fit together - because it would be to slow or so? Has
anyone tried this and made it work well?

Thanks for any help that would clear my view of EJB and Cocoon.
/Bjarne


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




SV: PDF format not seen in Internet Explorer browser

2001-06-12 Thread Bjarne Jensen

Well I have not made a table in FO (FOP converts it to PDF - it's not PDF
directly). In the samples directory there is som FO (PDF) examples and i
think one of them shows you how to make a table. So try to make this work
and start making a small example that just contains a table or so. zvon.org
is a website that has a kind of API for the XSL FO maybe this would help
you. And then there is of course w3.org.
Well hopes this helps you
/Bjarne

-Oprindelig meddelelse-
Fra: Veeramani S [mailto:[EMAIL PROTECTED]]
Sendt: 12. juni 2001 12:27
Til: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Cc: 'Bjarne Jensen'
Emne: PDF format not seen in Internet Explorer browser




Thanks a lot for your help. Now I can open the pdf in both IE and Netscape
browsers.

Now I am trying to include a template for the table inside the stylesheet
used for pdf formatting.  I have another stylesheet which converts the xml
to html and this works perfectly well.  I have written the stylesheet to
convert the xml to pdf very similar to this one.  But I get a
NullPointerException while using this.  Can you please help me with this
stylesheet now.  I have attached both the html and pdf stylesheets.  I need
your help in writing the template for the element named "cms:table".

The exception thrown is:


  java.lang.NullPointerException
  at org.apache.fop.fo.flow.TableRow.layout(Compiled Code)
  at org.apache.fop.fo.FObjMixed.layout(Compiled Code)
  at org.apache.fop.fo.FObjMixed.layout(Compiled Code)
  at org.apache.fop.fo.flow.Block.layout(Compiled Code)
  at org.apache.fop.fo.flow.Flow.layout(Compiled Code)
  at org.apache.fop.fo.pagination.PageSequence.format(Compiled
Code)
  at org.apache.fop.fo.pagination.Root.format(Compiled Code)
  at org.apache.fop.fo.FOTreeBuilder.format(Compiled Code)
  at org.apache.fop.apps.Driver.format(Compiled Code)
  at org.apache.cocoon.formatter.FO2PDFFormatter.format(Compiled
Code)
  at org.apache.cocoon.Engine.handle(Compiled Code)
  at org.apache.cocoon.Cocoon.service(Compiled Code)
  at javax.servlet.http.HttpServlet.service(Compiled Code)
  at
com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
  at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
  at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Compiled
Code)
  at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(Compiled Code)
  at emscmf.cmf.RequestHandler.sendToCocoon(Compiled Code)
  at emscmf.cmf.RequestHandler.processNormalFlow(Compiled Code)
  at emscmf.cmf.RequestHandler.doPost(Compiled Code)
  at emscmf.cmf.RequestHandler.doGet(Compiled Code)
  at javax.servlet.http.HttpServlet.service(Compiled Code)
  at javax.servlet.http.HttpServlet.service(Compiled Code)
  at
com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)




-Original Message-
From: Bjarne Jensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: SV: PDF format not seen in Internet Explorer browser


Have you tried to fake the IE5 by making the url in the location end with
".pdf"? You can du that with an unused cgi-variable like
"content.xml?unused=.pdf". If that dosen't work I don't know what is wrong.
/Bjarne

-Oprindelig meddelelse-
Fra: Veeramani S [mailto:[EMAIL PROTECTED]]
Sendt: 12. juni 2001 08:40
Til: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Emne: PDF format not seen in Internet Explorer browser


Hi All,

> I have an xml file which has to be converted to PDF format.  The PDF file
> can be opened or viewed only when I work with the Netscape Communicator
> 4.51 and above versions.  But I am not able to view or open the PDF file
> when working with Internet Explorer 5 browser.  I am running this XML file
> using IPLANET webserver.  I am using cocoon's xslt ptocessor to convert to
> PDF format.  I have attached both the xml and the xsl file used to
> tranform it.  Somebody please help me.
>
> regards,
> Hema.
>
>  <>  <>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [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]>




SV: samples of images inside PDF in cocoon

2001-05-30 Thread Bjarne Jensen

Well I tried it and actualy it did work - Thanks :-)
I was trying: "e:/myserver/apps/cocoon/samples/prototype4/data/shake.gif"
but missed the "file:/", and then it's just a path and not a url.
/Bjarne

-Oprindelig meddelelse-
Fra: Navneet Joneja [mailto:[EMAIL PROTECTED]]
Sendt: 30. maj 2001 19:57
Til: '[EMAIL PROTECTED]'
Emne: RE: samples of images inside PDF in cocoon


Just a shot in the dark, but why wont the file protocol work?
eg
file:/e:/myserver/apps/cocoon/samples/prototype4/data/shake.gif


-Original Message-
From: Bjarne Jensen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 9:16 AM
To: [EMAIL PROTECTED]
Subject: SV: samples of images inside PDF in cocoon


This works for me (but is maybe not the best way):

http://localhost:8080/cocoon/samples/prototype4/data/shake.gif"/>

Note that just src="shake.gif" would not work! It has to be a url to work
with FO. I do not know how to make a reference to the picture in my local
filesystem with the FO that comes with 1.8.2. Does anyone?
/Bjarne

-Oprindelig meddelelse-
Fra: adel ben [mailto:[EMAIL PROTECTED]]
Sendt: 30. maj 2001 17:35
Til: [EMAIL PROTECTED]
Emne: samples of images inside PDF in cocoon


Hi all,

I would like to view images in pdf using cocoon 1.8.2 .
Can anyone give me a sample of xml file that uses xsl:fo external-images
tags

thanks in advance,
adel





___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



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

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




SV: samples of images inside PDF in cocoon

2001-05-30 Thread Bjarne Jensen

This works for me (but is maybe not the best way):

http://localhost:8080/cocoon/samples/prototype4/data/shake.gif"/>

Note that just src="shake.gif" would not work! It has to be a url to work
with FO. I do not know how to make a reference to the picture in my local
filesystem with the FO that comes with 1.8.2. Does anyone?
/Bjarne

-Oprindelig meddelelse-
Fra: adel ben [mailto:[EMAIL PROTECTED]]
Sendt: 30. maj 2001 17:35
Til: [EMAIL PROTECTED]
Emne: samples of images inside PDF in cocoon


Hi all,

I would like to view images in pdf using cocoon 1.8.2 .
Can anyone give me a sample of xml file that uses xsl:fo external-images
tags

thanks in advance,
adel





___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




SV: Transforming XML into CSV

2001-05-29 Thread Bjarne Jensen

Maybe this is the same thing as with PDFs and IE5. IE5 takes the URL over
the mime-type, so you have to put a fake "&fake=.pdf" in your URL. So you
just change the ".pdf" to ".cvs" or ".xls"?
Well don't know if this helps you or if I miusunderstood your question.
/Bjarne

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]På vegne af Samuel
ARNOD-PRIN
Sendt: 30. maj 2001 08:47
Til: [EMAIL PROTECTED]
Emne: Re: Transforming XML into CSV


Brouillet Yannick a écrit :
>
> Hi.
> I know how to transform an XML file into a CSV file using XSL and Cocoon,
> but on the client IE 5 doesn't recognize it as a CSV file (I would like
> IE5 to load the file into Excel as a CSV, or at least to propose the
> Excel Icon in the icon bar).
> Thank you for your help.

do you send the right mime type ??
If you are using excel2000, try to generate directly a html file that
has as mime type vnd-excel...

-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




Installing current C2 on tomcat 3.2.2: Problem: The sitemap handler's sitemap is not available

2001-05-29 Thread Bjarne Jensen

I have downloaded the newest Cocoon2 from CVS, my build was fine :-) And
know I have tried to follow the installing instructions (rename
parser.jar->xparser.jar etc) - but I am stuck. My Tomcat 3.2.2 starts fine,
but when I tries to acces http://localhost:8080/cocoon/ I get the
exception:" org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available." In an old posted mail (01/03-2001 by Peter
Fleisher), the answer to a similar question was to delete the work
directory. I have tried to delete my tomcatc2\work and
tomcatc2\bin\repository but the problem remains. Hopes for help.

PS: Is there anywhere a large bundle with tomcat and C2, that does not
require configuration (just unzipping)?

Thanks in advance
-Bjarne

Below is my log:

-

DEBUG   330 [cocoon  ] (Thread-10): Trying to load class:
com.ibm.servlet.classloader.Handler
WARN550 [cocoon  ] (Thread-10): Could not force-load class:
com.ibm.servlet.classloader.Handler
java.lang.ClassNotFoundException: com.ibm.servlet.classloader.Handler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at
org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:391)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
DEBUG   550 [cocoon  ] (Thread-10): Trying to load class:
org.hsqldb.jdbcDriver
DEBUG   600 [cocoon  ] (Thread-10): Using configuration file:
/cocoon.xconf
INFO600 [cocoon  ] (Thread-10): Reloading from:
file:C:\tomcatc2\webapps\cocoon\cocoon.xconf
DEBUG   820 [cocoon  ] (Thread-10): New Cocoon object.
DEBUG   820 [cocoon  ] (Thread-10): Using parser:
org.apache.cocoon.components.parser.JaxpParser
DEBUG   930 [cocoon  ] (Thread-10): Attempting to get Handler for:
org.apache.cocoon.components.parser.Parser
DEBUG   990 [cocoon  ] (Thread-10): Handler type =
org.apache.avalon.excalibur.component.DefaultComponentHandler
DEBUG   990 [cocoon  ] (Thread-10): Creating Repository with this
directory: C:\tomcatc2\work\localhost_8080%2Fcocoon
DEBUG   990 [cocoon  ] (Thread-10): Classpath =
C:\tomcatc2\webapps\cocoon\WEB-INF\classes;C:\tomcatc2\webapps\cocoon\WEB-IN
F\lib\avalon-excalibur-4.0b1.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\aval
on-framework-4.0b1.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\batik-all.jar;
C:\tomcatc2\webapps\cocoon\WEB-INF\lib\bsf.jar;C:\tomcatc2\webapps\cocoon\WE
B-INF\lib\cocoon-2.0a7.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\fop-0_18_1
.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\hsqldb.jar;C:\tomcatc2\webapps\c
ocoon\WEB-INF\lib\jakarta-regexp-1.2.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\
lib\javac.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\jimi-1.0.jar;C:\tomcatc
2\webapps\cocoon\WEB-INF\lib\jstyle.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\l
ib\junit.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\logkit-1.0b1.jar;C:\tomc
atc2\webapps\cocoon\WEB-INF\lib\maybeupload.jar;C:\tomcatc2\webapps\cocoon\W
EB-INF\lib\rhino.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\Tidy.jar;C:\tomc
atc2\webapps\cocoon\WEB-INF\lib\velocity-1.0.1-rc1.jar;C:\tomcatc2\webapps\c
ocoon\WEB-INF\lib\w3c.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\xalan-2.1.0
.jar;C:\tomcatc2\webapps\cocoon\WEB-INF\lib\xerces_1_4_0.jar;C:\tomcatc2\web
apps\cocoon\WEB-INF\lib\xt.jar;C:\tomcatc2\classes;C:\tomcatc2\lib\SERVLET.J
AR;C:\tomcatc2\lib\ZPARSER.JAR;C:\tomcatc2\lib\ANT.JAR;C:\tomcatc2\lib\WEBSE
R~1.JAR;C:\tomcatc2\lib\JASPER.JAR;C:\tomcatc2\lib\XERCES~1.JAR;C:\jdk1.3\li
b\tools.jar;
DEBUG   1040[cocoon  ] (Thread-10): Work directory =
C:\tomcatc2\work\localhost_8080%2Fcocoon
DEBUG   1040[cocoon  ] (Thread-10): ComponentHandler initialized for:
org.apache.cocoon.components.parser.JaxpParser
DEBUG