Cocoon book

2002-07-23 Thread gcasper

Just to let you know,
the first Cocoon book is now available for order on New Riders.

http://www.newriders.com/books/product.asp?product_id
={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}

There is also a sample chapter.


Guido

--
Open Source Group   sunShine - Lighting up e:Business
=
Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87  [EMAIL PROTECTED] - http://www.s-und-n.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]>




Schematron validation

2002-07-23 Thread michael_hampel

Hello,

   please advise if the I can do the following with Schematron:

   I want to use Schematron validation with my XML-Forms.
   eg.: The user has to input a Login Name.
   For this field I have several error messages:
  LoginName must not be null,
Login Name has to have between 5 and 20 characters
and so on..

Now my problem is to display the error messages separated,
as when I check if the String is empty all other assertions are true as
well and I will see all error messages.

Is there a way to solve this problem ?


thanks in advance for any help,

miHam


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




RE: InputModules, map:global-parameters

2002-07-23 Thread Per Kreipke

Barbara,

If you meant the section on global params, use Vadim's suggestions.

If you meant the InputModules, I believe they're in the scratchpad in 2.0.3.
I haven't used them or I'd tell you more :-)

Per.

> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> >
> > Reading this :
> > http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102499709113669&w=2
> > only with C 2.1
> >
> > What is the workaround for C 2.0.3 since I need to use a release
> version ?
> > :-/
> > Thanks a lot.
>
> Write an action "set-param". Call it first thing:
>
> 
> 
>   
>   ...
>
>   ... rest goes here ...
>
> 
> 
>
> It will be similar to global parameters but not so convenient.
>
>
> Vadim
>
>
> > Barbara
> >
>
>
> -
> 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]>




RE: parse generated xml and react in sitemap (Problem with AbstractSAXSource)

2002-07-23 Thread Vadim Gritsenko

Tammo,

This might be some bug. What Cocoon version do you have? Is it 2.0.3?

Can you make test case against 2.0.3 demo sitemap, default install, and
have your action to pull some cocoon:// source from the demo webapp
(cocoon source is also SAX based)?

Vadim


> From: Tammo van Lessen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 7:12 AM
> To: [EMAIL PROTECTED]
> Subject: AW: parse generated xml and react in sitemap (Problem with
> AbstractSAXSource)
> 
> | Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> |
> |
> | Using action. Write your action which reads this  fragment
into
> | DOM/SAX, extracts , ,  and returns
these
> | values in the Map to the sitemap.
> |
> | Then, pass these values to the regular reader.
> |
> |
> | Vadim
> |
> 
> Hello Vadim,
>   thanx for your answer. I tried this, but I had some strange trouble.
I
> wrote my own Action and called it in the sitemap like this:
> 
>   
src="xmldb:xindice://localhost:4080/db/gizmo/documents/#//document[@id=&
apos
> ;{1}']">
> 
> My action has the method act as follows:
> 
> public Map act(Redirector redirector, SourceResolver resolver,
>Map objectModel, String source, Parameters par)
> throws Exception {
> 
> Source src = null;
> HashMap actionMap = new HashMap();
> try {
> src = resolver.resolve(source);
> String systemID = src.getSystemId();
> if (this.getLogger().isDebugEnabled()) {
> getLogger().debug("docprop source [" + source + "]");
> getLogger().debug("docprop resolved to [" + systemID +
"]");
> }
>   // this all works fine...
>   // but...
> Parser parser = (Parser)this.manager.lookup(Parser.ROLE);
>   // src.getInputSource() raises an exception!
>   Document sdoc =
parser.parseDocument(src.getInputSource());
>   NodeList nl = sdoc.getElementsByTagName("document");
>   [...]
> 
> I got an exception from AbstractSAXSource.getInputStream...
> 
> org.apache.cocoon.ProcessingException: could not lookup pipeline
components:
> org.apache.avalon.framework.component.ComponentException:
UnnamedSelector:
> ComponentSelector could not find the component for hint: xml
>   at
>
org.apache.cocoon.components.source.AbstractSAXSource.getInputStream(Abs
trac
> tSAXSource.java:133)
>   at
>
org.apache.cocoon.components.source.AbstractSAXSource.getInputSource(Abs
trac
> tSAXSource.java:151)
>   at
>
de.taval.gizmo.acting.DocumentPropertyAction.act(DocumentPropertyAction.
java
> :116)
> 
> With other sources than the saxbased xmldbsource, it works fine.
> 
> Then I've copied the code of AbstractSAXSource.getInputStream and
> AbstractSAXSource.getInputSource into my action and it works properly.
But I
> dont understand why, and this only works for SAX-based sources. Is
this a
> bug in AbstractSAXSource? I think, both methods should work. I dont
> understand, why the same code works in my action and fails in the
> AbstractSAXSource?!
> 
> Do you have any idea how to solve it? I would like to use any source
for my
> action, not only sax-sources, so do i have now to check for the source
type
> and have to implement the getInputStream method for all sourcetypes
new?
> 
> Thanx
>   Tammo
> 
> PS: my new work-a-round (for sax sources only) act():
> 
>   ComponentSelector cs =
> (ComponentSelector)this.manager.lookup(Serializer.ROLE  + "Selector");
>   Serializer serializer =
(Serializer)cs.select("xml");
> 
> ByteArrayOutputStream os = new ByteArrayOutputStream();
> serializer.setOutputStream(os);
> src.toSAX(serializer);
> 
>   InputSource is = new InputSource(new
> ByteArrayInputStream(os.toByteArray()));
>   is.setSystemId(src.getSystemId());
> 
> 
> Parser parser = (Parser)this.manager.lookup(Parser.ROLE);
>   Document sdoc = parser.parseDocument(is);
>   NodeList nl =
sdoc.getElementsByTagName("document");
> 


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




RE: InputModules, map:global-parameters

2002-07-23 Thread Vadim Gritsenko

> From: Barbara Post [mailto:[EMAIL PROTECTED]]
> 
> Reading this :
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102499709113669&w=2
> only with C 2.1
> 
> What is the workaround for C 2.0.3 since I need to use a release
version ?
> :-/
> Thanks a lot.

Write an action "set-param". Call it first thing:



  
  ...

  ... rest goes here ...




It will be similar to global parameters but not so convenient.


Vadim


> Barbara
> 


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




RE: == I18N question ==

2002-07-23 Thread Vadim Gritsenko

> From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> 
> I think that this discussion that happened at Forrest project will help you
> a little: http://marc.theaimsgroup.com/?t=10240438142&r=1&w=2

or you can simply do something (don't know exactly):


  

  
  ...

 
You can even check existence of the file with ResourceExistAction and return default 
language if translation is not available.


Vadim


> --
> Konstantin Piroumian
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: JИrТme Iffrig [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 4:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: == I18N question ==
> >
> >
> > Hi,
> >
> > I am new with Cocoon, so I am not sure this is the rigth
> > channel to ask question, please accept my apology if it is
> > not.
> > I would like to internationalize my Site - NOT the site
> > itself, but rather its CONTAINT. e.g. I would like to, let
> > say, localise the HELP page of my site in 4 langages and
> > rely on Cocoon for the localisation (depending on the
> > preferences of the visitor). Which means that on one hand I
> > would like to have the XML files for the content in
> > different languages (I would like to have one XML file per
> > language for administration ease), and on the other hand, I
> > would like to have my Cocoon style file. At the end all the
> > localised content files would be parsed according to the
> > style file to he coherent in the styles with different
> > languages.
> > Have anyone of you done this before? I can see tutorials on
> > how to create dictionaries and how to replace strings
> > (Cocoon official website), but nothing realy clear
> > regarding my question.
> >
> > Thanks for your time.
> > Jé-
> > __
> > Boîte aux lettres - Caramail - http://www.caramail.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]>




Re: Excel generator

2002-07-23 Thread Michael Wechner



Andrew C. Oliver wrote:

> But the more important part of my answer was "What do you want on your 
> generator, and
> what do you wish you had on your serializer  --  would you like fries 
> too?"  Meaning I need ideas!  I'm on the fence,  I want some input. 


I have a friend, and unfortunately he doesn't know about XML and doens't 
want
to learn how to work with (maybe he shouldn't be my friend ;-), but he 
loves Excel.

I don't want to work with Excel (maybe I should't be his friend ;-) 
because I want to
use XML.

Well, that's how it is. BUT, we want to collaborate nevertheless!

Therefore I thought it would be nice if he is sending me his Excel and I 
generate an XML,
which I can modify , and then I serialize it back into Excel, such that 
he can work on it.

Thanks

Michael


>
>
> -Andy
>
> Sven Kuenzler wrote:
>
>>> Is there an Excel Generator, which creates *from* an Excel (xls) file
>>> some XML? Or what approach would you take to convert existing Excel
>>> documents into some useful XML?
>>
>>
>>
>> I think the previous responses missed the *from* (my emphasis) :-)
>> So, read Andy's answer on the dev list. In short: No, there is no 
>> HSSFGenerator (yet).
>>
>> Sven
>>
>>
>>
>>
>> -
>> 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]>
>



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




Re: Excel generator

2002-07-23 Thread Michael Wechner

That would certainly be a possible work-around

Thanks a lot

Michael


Litrik De Roy wrote:

>FYI,
>
>This is how I integrate some Excel spreadsheets in a (fairly static) web
>site. The data (tennis results) is sent to me as an Excel spreadsheet. (This
>is is far from perfect but at least it is better than a table in an MS Word
>document. :-)
>
>1) The old way (Before Cocoon, data in Excel 97)
>
>Before Cocoon, I had all documents for the site as xml documents sitting on
>my harddisk. Using Xalan, I applied a stylesheet to convert everything into
>HTML. I saved the spreadsheet (made in Excel 97) to HTML and simply
>copy/pasted everything in the HTML documents that needed the information.
>The result was an HTML table that did not really look like the Excel
>spreadsheet but at least all the data was there and it did not have fixed
>sizes for cells, so everything resized nicely according to the browser
>window.
>
>2) The new way (Using Cocoon, data in Excel 2000)
>
>I still get data in Excel, but now in Excel 2000 instead of Excel 97. The
>problem is that the 'Save as HTML' of Excel 2000 is way too smart. It saves
>every bit of information about the layout of the sheet so it can be
>recreated when opened again in Excel. But it is a lot harder to get 'just'
>the data. My solution for this is to 'cinclude' the HTML version of the
>spreadsheet AFTER applying a stylesheet that removes some HTML/CSS
>information that defines the fixed size.
>
>The following XSLT snippet is all that is required to remove some of the
>unwanted HTML/CSS:
>
>  
>
>cellpadding="0" border="0" str="x:str">
>
>
>  
>
>The result is an HTML table that does resize nicely but still looks like the
>original Excel 2000 version. A static version is available at
>http://users.skynet.be/litrik/rolmite/en/gv_palmares.html
>
>PS: I did look at the POI project but figured out it would be overkill for
>the stuff I am trying to do.
>
>Just sharing my experience...
>
>Litrik De Roy
>www.litrik.com
>
>
>- Original Message -
>From: "Sven Kuenzler" <[EMAIL PROTECTED]>
>Newsgroups: gmane.text.xml.cocoon.user
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 23, 2002 2:57 PM
>Subject: Re: Excel generator
>
>
>>>Is there an Excel Generator, which creates *from* an Excel (xls) file
>>>some XML? Or what approach would you take to convert existing Excel
>>>documents into some useful XML?
>>>
>>I think the previous responses missed the *from* (my emphasis) :-)
>>So, read Andy's answer on the dev list. In short: No, there is no
>>HSSFGenerator (yet).
>>
>>Sven
>>
>>
>>
>>
>>-
>>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]>
>



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




RE: Excel generator

2002-07-23 Thread Koen Pellegrims

I agree, altough there is a catch... I was going to argument that Microsoft
is not known for keeping long-lasting compatibility between
document-formats, but when I think about it, Open Source projects tend to
evolve very quickly as well.
In this case, the best argument I can come up with PRO Gnumeric is that we
might have a say in the way it evolves... I think chances of us influencing
Redmond's XML-format are slim or worse ;-s

As long as the Gnumeric-format captures 90% of the user's needs, I think we
should opt for Gnumeric; unless there are some real shortcomings compared to
the Excel 2000 XML format. (I'm not that familiar with the Excel format to
answer that one...)

This is not a religious point, I *am* pursuadable...

Koen

> -Oorspronkelijk bericht-
> Van: news [mailto:[EMAIL PROTECTED]]Namens Sven Kuenzler
> Verzonden: dinsdag 23 juli 2002 20:52
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: Excel generator
>
>
> I'd also prefer the Gnumeric format. That's because it's open source,
> it's used by other oss project(s) and there are people maintaining
> documentation for it. So, keeping this format would create some kind of
> open source synergy.
> Plus, it would not break apps which depend on the serializer already.
>
>   Sven
>
> Koen Pellegrims schrieb:
> > Personally, I think it makes most sense to use the Gnumeric
> format. Granted,
> > it is not the easiest format, but it allows you to express most
> anything you
> > have in your stylesheet.
> > I think that -at least in theory- the Generator, followed by
> the Serializer
> > should give you the same worksheet back...
> >
> > IMHO it makes more sense to get aquinted well with one format
> (Gnumeric),
> > rather than constantly swapping between two different formats.
> >
> > If we were to invent a new representation, it would probably
> come very close
> > to the Gnumeric format anyway...
> >
> > Koen.
> >
> >
> >>-Oorspronkelijk bericht-
> >>Van: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> >>Verzonden: dinsdag 23 juli 2002 19:18
> >>Aan: [EMAIL PROTECTED]; Marc Johnson
> >>Onderwerp: Re: Excel generator
> >>
> >>
> >>Geoff Howard wrote:
> >>
> >>
> >>>Well, I'll make a stab at what I would think could be useful for
> >>
> >>a generator
> >>>from an excel file.  I can think of two logical directions
> >>people would want
> >>
> >>>to go.
> >>>
> >>>1) If you are serializing to some display format (html, pdf,
> >>
> >>etc) you'd want
> >>
> >>>to reproduce the data and formatting as it would appear viewed in, or
> >>>printed from excel.
> >>>
> >>
> >>You can of course do an approximation of this in any format via a
> >>stylesheet.  Granted it won't look *eactly* the same due to differences
> >>(HTML borders are vastly different from Excel's).
> >>
> >>
> >>>2) If you are using excel as a make-shift database, you would want to
> >>>preserve the data structure so that it can be transformed and
> acted on or
> >>>displayed.
> >>>
> >>>
> >>
> >>Yes.
> >>
> >>
> >>>I would assume that both of these uses could be accomplished by just
> >>>outputting the format that would have created the same style
> >>
> >>sheet to begin
> >>
> >>>with, except possibly for the option to output formula results
> instead of
> >>>the formulas.  Most users would assume the formats and behaviour
> >>
> >>to be close
> >>
> >>>to symetric - if start with an .xls file, run it through the
> >>
> >>generator and
> >>
> >>>serializer, I ought to wind up pretty close to where I started if not
> >>>exactly where I started.
> >>>
> >>>
> >>
> >>great.
> >>
> >>
> >>>Does that work for a discussion starter?
> >>>
> >>>
> >>
> >>Yes so the question I guess is assuming you can transform it via XSLT to
> >>whatever you like given the effort.  What format (XML tag format) makes
> >>most since?  Preserving the gnumeric compatibility?  A custom format
> >>that makes more sense?  Striving for Excel 2000 XML format
> >>compatibility?
> >>
> >>Currently the serializer shares the gnumeric tag language.
> >>
> >>-Andy
> >>
> >>
> >>>Geoff
> >>>
> >>>
> >>>
> >>>
> -Original Message-
> From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Excel generator
> 
> 
> But the more important part of my answer was "What do you
> want on your
> generator, and
> what do you wish you had on your serializer  --  would you like fries
> too?"  Meaning I need ideas!
> I'm on the fence,  I want some input.
> 
> -Andy
> 
> Sven Kuenzler wrote:
> 
> 
> 
> 
> >>Is there an Excel Generator, which creates *from* an Excel
> >>
> >>
> >
> (xls) file
> 
> 
> 
> >>some XML? Or what approach would you take to convert existing Excel
> >>documents into some useful XML?
> >>
> >>
> >
> >I think the previous responses missed the *from* (my emphasis) :-)
> >So, read Andy's answer

how to use a checkbox with DatabaseUpdateAction

2002-07-23 Thread Simon Price

Is it possible to get DatabaseUpdateAction to write, for example, 'Y' or
'N' into an SQL column according to whether a checkbox is checked/unchecked?

The problem is that only "on" (ie. checked) checkboxes submit a value,
so is there an easy way to translate this into a Y/N value to go in the
DB column.

Apologies is this is well documented somewhere, but I can't find it. I
had no problems getting form values from input/text and selections to
work, but this one's less obvious (to a cocoon newbie like me anyway).

Cheers

Simon

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


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




Re: Excel generator

2002-07-23 Thread Litrik De Roy

FYI,

This is how I integrate some Excel spreadsheets in a (fairly static) web
site. The data (tennis results) is sent to me as an Excel spreadsheet. (This
is is far from perfect but at least it is better than a table in an MS Word
document. :-)

1) The old way (Before Cocoon, data in Excel 97)

Before Cocoon, I had all documents for the site as xml documents sitting on
my harddisk. Using Xalan, I applied a stylesheet to convert everything into
HTML. I saved the spreadsheet (made in Excel 97) to HTML and simply
copy/pasted everything in the HTML documents that needed the information.
The result was an HTML table that did not really look like the Excel
spreadsheet but at least all the data was there and it did not have fixed
sizes for cells, so everything resized nicely according to the browser
window.

2) The new way (Using Cocoon, data in Excel 2000)

I still get data in Excel, but now in Excel 2000 instead of Excel 97. The
problem is that the 'Save as HTML' of Excel 2000 is way too smart. It saves
every bit of information about the layout of the sheet so it can be
recreated when opened again in Excel. But it is a lot harder to get 'just'
the data. My solution for this is to 'cinclude' the HTML version of the
spreadsheet AFTER applying a stylesheet that removes some HTML/CSS
information that defines the fixed size.

The following XSLT snippet is all that is required to remove some of the
unwanted HTML/CSS:

  




  

The result is an HTML table that does resize nicely but still looks like the
original Excel 2000 version. A static version is available at
http://users.skynet.be/litrik/rolmite/en/gv_palmares.html

PS: I did look at the POI project but figured out it would be overkill for
the stuff I am trying to do.

Just sharing my experience...

Litrik De Roy
www.litrik.com


- Original Message -
From: "Sven Kuenzler" <[EMAIL PROTECTED]>
Newsgroups: gmane.text.xml.cocoon.user
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 2:57 PM
Subject: Re: Excel generator


> > Is there an Excel Generator, which creates *from* an Excel (xls) file
> > some XML? Or what approach would you take to convert existing Excel
> > documents into some useful XML?
>
> I think the previous responses missed the *from* (my emphasis) :-)
> So, read Andy's answer on the dev list. In short: No, there is no
> HSSFGenerator (yet).
>
> Sven
>
>
>
>
> -
> 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]>




Re: Excel generator

2002-07-23 Thread Andrew C. Oliver

>
>
>Yes, and it may be good to provide a standard "out of the box" stylesheet
>that does this.
>  
>
Well we do have some samples, but its been limited at the moment by kind 
of a chicken and the egg scenario.  The serializer is there, the samples 
are there but we can't more because we don't have any usage scenarios 
except for mine (translation: lots of people are using POI but few 
people are using the serializer).  But that may in itself be the reaons 
that we don't.

Are you using the serializer?  For what?  how?  

...and then bug reports and requests could drive the development a bit more.

>  
>
>>Yes so the question I guess is assuming you can transform it 
>>via XSLT to 
>>whatever you like given the effort.  What format (XML tag 
>>format) makes 
>>most since?  Preserving the gnumeric compatibility?  A custom format 
>>that makes more sense?  Striving for Excel 2000 XML format 
>>compatibility?  
>>
>>Currently the serializer shares the gnumeric tag language.
>>
>>
>
>I haven't been able to find the current gnumeric tag language documented
>either at gnome.org, or at the poi site at jakarta.  If the new native Excel
>
http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html
http://cvs.gnome.org/lxr/source/gnumeric/gnumeric.xsd
http://www.object-refinery.com/jworkbook/index.html
ftp://213.253.31.132/jworkbook/gnumeric-xml.pdf  (Just reappeared after 
being gone for awhile, I'll put this in the docs soon)

>format is great, that'd be worth considering, but I don't see much of a
>
Well it actually kinda sucks and is probably hard to hand generate.  It 
probably actually sucks more than
the Gnumeric format, but it more cleanly maps to the file format.

>reason that it would matter what the intermediate format is - you either
>want to go from an excel spreadsheet or to an excel spreadsheet (or both),
>but what it is in the middle doesn't matter much (except for those writing
>any transformation process in the middle).  The only vote for the new native
>excel xml would be that the total universe of people who will be familiar
>with it will likely vastly out number those familiar with gnumeric.
>  
>
Great feedback.  I appreciate it!

Thanks,

-Andy


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




Re: Excel generator

2002-07-23 Thread Sven Kuenzler

I'd also prefer the Gnumeric format. That's because it's open source, 
it's used by other oss project(s) and there are people maintaining 
documentation for it. So, keeping this format would create some kind of 
open source synergy.
Plus, it would not break apps which depend on the serializer already.

Sven

Koen Pellegrims schrieb:
> Personally, I think it makes most sense to use the Gnumeric format. Granted,
> it is not the easiest format, but it allows you to express most anything you
> have in your stylesheet.
> I think that -at least in theory- the Generator, followed by the Serializer
> should give you the same worksheet back...
> 
> IMHO it makes more sense to get aquinted well with one format (Gnumeric),
> rather than constantly swapping between two different formats.
> 
> If we were to invent a new representation, it would probably come very close
> to the Gnumeric format anyway...
> 
> Koen.
> 
> 
>>-Oorspronkelijk bericht-
>>Van: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
>>Verzonden: dinsdag 23 juli 2002 19:18
>>Aan: [EMAIL PROTECTED]; Marc Johnson
>>Onderwerp: Re: Excel generator
>>
>>
>>Geoff Howard wrote:
>>
>>
>>>Well, I'll make a stab at what I would think could be useful for
>>
>>a generator
>>>from an excel file.  I can think of two logical directions
>>people would want
>>
>>>to go.
>>>
>>>1) If you are serializing to some display format (html, pdf,
>>
>>etc) you'd want
>>
>>>to reproduce the data and formatting as it would appear viewed in, or
>>>printed from excel.
>>>
>>
>>You can of course do an approximation of this in any format via a
>>stylesheet.  Granted it won't look *eactly* the same due to differences
>>(HTML borders are vastly different from Excel's).
>>
>>
>>>2) If you are using excel as a make-shift database, you would want to
>>>preserve the data structure so that it can be transformed and acted on or
>>>displayed.
>>>
>>>
>>
>>Yes.
>>
>>
>>>I would assume that both of these uses could be accomplished by just
>>>outputting the format that would have created the same style
>>
>>sheet to begin
>>
>>>with, except possibly for the option to output formula results instead of
>>>the formulas.  Most users would assume the formats and behaviour
>>
>>to be close
>>
>>>to symetric - if start with an .xls file, run it through the
>>
>>generator and
>>
>>>serializer, I ought to wind up pretty close to where I started if not
>>>exactly where I started.
>>>
>>>
>>
>>great.
>>
>>
>>>Does that work for a discussion starter?
>>>
>>>
>>
>>Yes so the question I guess is assuming you can transform it via XSLT to
>>whatever you like given the effort.  What format (XML tag format) makes
>>most since?  Preserving the gnumeric compatibility?  A custom format
>>that makes more sense?  Striving for Excel 2000 XML format
>>compatibility?
>>
>>Currently the serializer shares the gnumeric tag language.
>>
>>-Andy
>>
>>
>>>Geoff
>>>
>>>
>>>
>>>
-Original Message-
From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Excel generator


But the more important part of my answer was "What do you
want on your
generator, and
what do you wish you had on your serializer  --  would you like fries
too?"  Meaning I need ideas!
I'm on the fence,  I want some input.

-Andy

Sven Kuenzler wrote:




>>Is there an Excel Generator, which creates *from* an Excel
>>
>>
>
(xls) file



>>some XML? Or what approach would you take to convert existing Excel
>>documents into some useful XML?
>>
>>
>
>I think the previous responses missed the *from* (my emphasis) :-)
>So, read Andy's answer on the dev list. In short: No, there is no
>HSSFGenerator (yet).
>
>   Sven
>
>
>
>
>
>
>

-



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



>>>-
>>>Please check that your question  has not already been answered in the
>>>FAQ before posting. 
>>>
>>>To unsubscribe, e-mail: 

Re: Excel generator

2002-07-23 Thread Andrew C. Oliver

Sorry if it sounds like I'm hounding on this issue, but its very helpful.

And you find the gnumeric format preferrable to striving for Excel 2000 
XML format compatibility?
(with the understanding that If I did do the generator in Excel format 
I'd probably rewrite the serializer to that as well)

-Andy


Koen Pellegrims wrote:

>Personally, I think it makes most sense to use the Gnumeric format. Granted,
>it is not the easiest format, but it allows you to express most anything you
>have in your stylesheet.
>I think that -at least in theory- the Generator, followed by the Serializer
>should give you the same worksheet back...
>
>IMHO it makes more sense to get aquinted well with one format (Gnumeric),
>rather than constantly swapping between two different formats.
>
>If we were to invent a new representation, it would probably come very close
>to the Gnumeric format anyway...
>
>Koen.
>
>  
>
>>-Oorspronkelijk bericht-
>>Van: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
>>Verzonden: dinsdag 23 juli 2002 19:18
>>Aan: [EMAIL PROTECTED]; Marc Johnson
>>Onderwerp: Re: Excel generator
>>
>>
>>Geoff Howard wrote:
>>
>>
>>
>>>Well, I'll make a stab at what I would think could be useful for
>>>  
>>>
>>a generator
>>>from an excel file.  I can think of two logical directions
>>people would want
>>
>>
>>>to go.
>>>
>>>1) If you are serializing to some display format (html, pdf,
>>>  
>>>
>>etc) you'd want
>>
>>
>>>to reproduce the data and formatting as it would appear viewed in, or
>>>printed from excel.
>>>
>>>  
>>>
>>You can of course do an approximation of this in any format via a
>>stylesheet.  Granted it won't look *eactly* the same due to differences
>>(HTML borders are vastly different from Excel's).
>>
>>
>>
>>>2) If you are using excel as a make-shift database, you would want to
>>>preserve the data structure so that it can be transformed and acted on or
>>>displayed.
>>>
>>>
>>>  
>>>
>>Yes.
>>
>>
>>
>>>I would assume that both of these uses could be accomplished by just
>>>outputting the format that would have created the same style
>>>  
>>>
>>sheet to begin
>>
>>
>>>with, except possibly for the option to output formula results instead of
>>>the formulas.  Most users would assume the formats and behaviour
>>>  
>>>
>>to be close
>>
>>
>>>to symetric - if start with an .xls file, run it through the
>>>  
>>>
>>generator and
>>
>>
>>>serializer, I ought to wind up pretty close to where I started if not
>>>exactly where I started.
>>>
>>>
>>>  
>>>
>>great.
>>
>>
>>
>>>Does that work for a discussion starter?
>>>
>>>
>>>  
>>>
>>Yes so the question I guess is assuming you can transform it via XSLT to
>>whatever you like given the effort.  What format (XML tag format) makes
>>most since?  Preserving the gnumeric compatibility?  A custom format
>>that makes more sense?  Striving for Excel 2000 XML format
>>compatibility?
>>
>>Currently the serializer shares the gnumeric tag language.
>>
>>-Andy
>>
>>
>>
>>>Geoff
>>>
>>>
>>>
>>>  
>>>
-Original Message-
From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Excel generator


But the more important part of my answer was "What do you
want on your
generator, and
what do you wish you had on your serializer  --  would you like fries
too?"  Meaning I need ideas!
I'm on the fence,  I want some input.

-Andy

Sven Kuenzler wrote:





>>Is there an Excel Generator, which creates *from* an Excel
>>
>>
>>
>>
(xls) file




>>some XML? Or what approach would you take to convert existing Excel
>>documents into some useful XML?
>>
>>
>>
>>
>I think the previous responses missed the *from* (my emphasis) :-)
>So, read Andy's answer on the dev list. In short: No, there is no
>HSSFGenerator (yet).
>
>   Sven
>
>
>
>
>
>
>
>  
>
-




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

RE: Excel generator

2002-07-23 Thread Geoff Howard

Andy,

> >1) If you are serializing to some display format (html, pdf, 
> etc) you'd want
> >to reproduce the data and formatting as it would appear viewed in, or
> >printed from excel.
> >
> You can of course do an approximation of this in any format via a 
> stylesheet.  Granted it won't look *eactly* the same due to 
> differences 
> (HTML borders are vastly different from Excel's).  

Yes, and it may be good to provide a standard "out of the box" stylesheet
that does this.

> Yes so the question I guess is assuming you can transform it 
> via XSLT to 
> whatever you like given the effort.  What format (XML tag 
> format) makes 
> most since?  Preserving the gnumeric compatibility?  A custom format 
> that makes more sense?  Striving for Excel 2000 XML format 
> compatibility?  
> 
> Currently the serializer shares the gnumeric tag language.

I haven't been able to find the current gnumeric tag language documented
either at gnome.org, or at the poi site at jakarta.  If the new native Excel
format is great, that'd be worth considering, but I don't see much of a
reason that it would matter what the intermediate format is - you either
want to go from an excel spreadsheet or to an excel spreadsheet (or both),
but what it is in the middle doesn't matter much (except for those writing
any transformation process in the middle).  The only vote for the new native
excel xml would be that the total universe of people who will be familiar
with it will likely vastly out number those familiar with gnumeric.

Geoff

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




RE: Excel generator

2002-07-23 Thread Koen Pellegrims

Personally, I think it makes most sense to use the Gnumeric format. Granted,
it is not the easiest format, but it allows you to express most anything you
have in your stylesheet.
I think that -at least in theory- the Generator, followed by the Serializer
should give you the same worksheet back...

IMHO it makes more sense to get aquinted well with one format (Gnumeric),
rather than constantly swapping between two different formats.

If we were to invent a new representation, it would probably come very close
to the Gnumeric format anyway...

Koen.

> -Oorspronkelijk bericht-
> Van: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 23 juli 2002 19:18
> Aan: [EMAIL PROTECTED]; Marc Johnson
> Onderwerp: Re: Excel generator
>
>
> Geoff Howard wrote:
>
> >Well, I'll make a stab at what I would think could be useful for
> a generator
> >from an excel file.  I can think of two logical directions
> people would want
> >to go.
> >
> >1) If you are serializing to some display format (html, pdf,
> etc) you'd want
> >to reproduce the data and formatting as it would appear viewed in, or
> >printed from excel.
> >
> You can of course do an approximation of this in any format via a
> stylesheet.  Granted it won't look *eactly* the same due to differences
> (HTML borders are vastly different from Excel's).
>
> >2) If you are using excel as a make-shift database, you would want to
> >preserve the data structure so that it can be transformed and acted on or
> >displayed.
> >
> >
> Yes.
>
> >I would assume that both of these uses could be accomplished by just
> >outputting the format that would have created the same style
> sheet to begin
> >with, except possibly for the option to output formula results instead of
> >the formulas.  Most users would assume the formats and behaviour
> to be close
> >to symetric - if start with an .xls file, run it through the
> generator and
> >serializer, I ought to wind up pretty close to where I started if not
> >exactly where I started.
> >
> >
> great.
>
> >Does that work for a discussion starter?
> >
> >
> Yes so the question I guess is assuming you can transform it via XSLT to
> whatever you like given the effort.  What format (XML tag format) makes
> most since?  Preserving the gnumeric compatibility?  A custom format
> that makes more sense?  Striving for Excel 2000 XML format
> compatibility?
>
> Currently the serializer shares the gnumeric tag language.
>
> -Andy
>
> >Geoff
> >
> >
> >
> >>-Original Message-
> >>From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, July 23, 2002 9:57 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: Excel generator
> >>
> >>
> >>But the more important part of my answer was "What do you
> >>want on your
> >>generator, and
> >>what do you wish you had on your serializer  --  would you like fries
> >>too?"  Meaning I need ideas!
> >>I'm on the fence,  I want some input.
> >>
> >>-Andy
> >>
> >>Sven Kuenzler wrote:
> >>
> >>
> >>
> Is there an Excel Generator, which creates *from* an Excel
> 
> 
> >>(xls) file
> >>
> >>
> some XML? Or what approach would you take to convert existing Excel
> documents into some useful XML?
> 
> 
> >>>I think the previous responses missed the *from* (my emphasis) :-)
> >>>So, read Andy's answer on the dev list. In short: No, there is no
> >>>HSSFGenerator (yet).
> >>>
> >>>Sven
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>-
> >>
> >>
> >>>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]>
> >>
> >>
> >>
> >
> >-
> >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]>
>
>



Re: Excel generator

2002-07-23 Thread Andrew C. Oliver

Geoff Howard wrote:

>Well, I'll make a stab at what I would think could be useful for a generator
>from an excel file.  I can think of two logical directions people would want
>to go.
>
>1) If you are serializing to some display format (html, pdf, etc) you'd want
>to reproduce the data and formatting as it would appear viewed in, or
>printed from excel.
>
You can of course do an approximation of this in any format via a 
stylesheet.  Granted it won't look *eactly* the same due to differences 
(HTML borders are vastly different from Excel's).  

>2) If you are using excel as a make-shift database, you would want to
>preserve the data structure so that it can be transformed and acted on or
>displayed.
>  
>
Yes.

>I would assume that both of these uses could be accomplished by just
>outputting the format that would have created the same style sheet to begin
>with, except possibly for the option to output formula results instead of
>the formulas.  Most users would assume the formats and behaviour to be close
>to symetric - if start with an .xls file, run it through the generator and
>serializer, I ought to wind up pretty close to where I started if not
>exactly where I started.
>  
>
great.

>Does that work for a discussion starter?
>  
>
Yes so the question I guess is assuming you can transform it via XSLT to 
whatever you like given the effort.  What format (XML tag format) makes 
most since?  Preserving the gnumeric compatibility?  A custom format 
that makes more sense?  Striving for Excel 2000 XML format compatibility?  

Currently the serializer shares the gnumeric tag language.

-Andy

>Geoff
>
>  
>
>>-Original Message-
>>From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 23, 2002 9:57 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: Excel generator
>>
>>
>>But the more important part of my answer was "What do you 
>>want on your 
>>generator, and
>>what do you wish you had on your serializer  --  would you like fries 
>>too?"  Meaning I need ideas!  
>>I'm on the fence,  I want some input.
>>
>>-Andy
>>
>>Sven Kuenzler wrote:
>>
>>
>>
Is there an Excel Generator, which creates *from* an Excel 


>>(xls) file
>>
>>
some XML? Or what approach would you take to convert existing Excel
documents into some useful XML?


>>>I think the previous responses missed the *from* (my emphasis) :-)
>>>So, read Andy's answer on the dev list. In short: No, there is no 
>>>HSSFGenerator (yet).
>>>
>>>Sven
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>-
>>
>>
>>>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]>
>>
>>
>>
>
>-
>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]>




VELOCITY (XML) - COCOON (PDF)

2002-07-23 Thread Terry Anderson

Looking for help posting xml (created with velocity) to cocoon to create
a pdf. I successfully create the pdf with the file-generator (xml file
saved to disk), but having difficulty with the stream-generator. I've
attached my code for review (sorry for length).

Thanks for any assistance!   TA

JAVA CLASS (Posting velocity xml to cocoon stream-generator): package
velocityxml;

import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.net.*;
import org.apache.velocity.*;
import org.apache.cocoon.util.*;
import org.apache.velocity.app.VelocityEngine;

public class data2xml {
public static void main(String[] args) throws Exception {
VelocityEngine ve = new VelocityEngine();
ve.init();

ArrayList alHeaders = new ArrayList();
ArrayList alRows = new ArrayList();
ArrayList alFields;

/*  create headers  */
alHeaders.add("Name");
alHeaders.add("City");
alHeaders.add("State");

/*  create row 1  */
alFields = new ArrayList();
alFields.add("Angelina");
alFields.add("Carol Stream");
alFields.add("IL");
alRows.add(alFields);

/*  create row 2  */
alFields = new ArrayList();
alFields.add("Ben");
alFields.add("Wheaton");
alFields.add("IL");
alRows.add(alFields);

/*  create row 3  */
alFields = new ArrayList();
alFields.add("Eric");
alFields.add("Palatine");
alFields.add("IL");
alRows.add(alFields);


VelocityContext context = new VelocityContext();
context.put("hdrList", alHeaders);
context.put("rowList", alRows);

Template t = ve.getTemplate( "data2xml.vm" );
ByteArrayOutputStream xml_os = null;
Writer writer = null;
try {
   xml_os = new ByteArrayOutputStream();
   writer = new OutputStreamWriter(xml_os);
   t.merge(context,writer);
  } catch(IOException ioe) {
System.out.println("IOException Caught A:");
ioe.printStackTrace();
  } finally {
   if (writer!=null) {
writer.close();
   }
   if (xml_os!=null) {
xml_os.close();
   }
  }

URL url = new
URL("http://localhost:8080/cocoon/samples/genRpt/rpt.pdf2";);
  HttpURLConnection httpConn = null;
  try {
   httpConn = (HttpURLConnection)url.openConnection();
httpConn.setDoInput(true);
httpConn.setDoOutput(true);
httpConn.setRequestMethod("POST");
httpConn.setUseCaches(false);
httpConn.setDefaultUseCaches(false);
httpConn.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
PrintWriter pw = new
PrintWriter(httpConn.getOutputStream());
String content = "Foo=" +
URLEncoder.encode(new
String(xml_os.toByteArray()),"UTF-8");
pw.println(content);
pw.close();

InputStream is = httpConn.getInputStream();
BufferedReader br = new BufferedReader(new
InputStreamReader(is));
String line = null;
while((line=br.readLine())!=null) {
System.out.println(line);
}
is.close();

  } catch(IOException ioe) {
System.out.println("IOException Caught 2:");
ioe.printStackTrace();
  } finally { }
}
}

SITEMAP.XMAP:
  
  
  
  
  
  
  



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




How to provide xml to sitemap

2002-07-23 Thread Abhishek Goel

Hi,
 In my application i am generating xml usingtoSAX(contenthandler) method
of  XMLizable interface
My site map expects a xml from a directory,but  the problem is i have to save
this generated xml at that directory dynamically which i am unable to do.
Is there any way around?
Regards
Abhishek Goel



begin:vcard 
n:Goel;Abhishek
tel;work:020-767-79811
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Abhishek Goel
end:vcard



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


RE: Excel generator

2002-07-23 Thread Geoff Howard

Well, I'll make a stab at what I would think could be useful for a generator
from an excel file.  I can think of two logical directions people would want
to go.

1) If you are serializing to some display format (html, pdf, etc) you'd want
to reproduce the data and formatting as it would appear viewed in, or
printed from excel.
2) If you are using excel as a make-shift database, you would want to
preserve the data structure so that it can be transformed and acted on or
displayed.

I would assume that both of these uses could be accomplished by just
outputting the format that would have created the same style sheet to begin
with, except possibly for the option to output formula results instead of
the formulas.  Most users would assume the formats and behaviour to be close
to symetric - if start with an .xls file, run it through the generator and
serializer, I ought to wind up pretty close to where I started if not
exactly where I started.

Does that work for a discussion starter?

Geoff

> -Original Message-
> From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Excel generator
> 
> 
> But the more important part of my answer was "What do you 
> want on your 
> generator, and
> what do you wish you had on your serializer  --  would you like fries 
> too?"  Meaning I need ideas!  
> I'm on the fence,  I want some input.
> 
> -Andy
> 
> Sven Kuenzler wrote:
> 
> >> Is there an Excel Generator, which creates *from* an Excel 
> (xls) file
> >> some XML? Or what approach would you take to convert existing Excel
> >> documents into some useful XML?
> >
> >
> > I think the previous responses missed the *from* (my emphasis) :-)
> > So, read Andy's answer on the dev list. In short: No, there is no 
> > HSSFGenerator (yet).
> >
> > Sven
> >
> >
> >
> >
> > 
> -
> > 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]>
> 

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




Re: Excel generator

2002-07-23 Thread Andrew C. Oliver

But the more important part of my answer was "What do you want on your 
generator, and
what do you wish you had on your serializer  --  would you like fries 
too?"  Meaning I need ideas!  
I'm on the fence,  I want some input.

-Andy

Sven Kuenzler wrote:

>> Is there an Excel Generator, which creates *from* an Excel (xls) file
>> some XML? Or what approach would you take to convert existing Excel
>> documents into some useful XML?
>
>
> I think the previous responses missed the *from* (my emphasis) :-)
> So, read Andy's answer on the dev list. In short: No, there is no 
> HSSFGenerator (yet).
>
> Sven
>
>
>
>
> -
> 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]>




RE: Modifying an xslt stylesheet before utilisation.

2002-07-23 Thread Rogier Peters

OK, some sloppy copying as well!
Originally, this would look like:


   > 
> > 
> > 
> > 
  


So besides the request-parameters a paramater named path is also passed to the xsl, 
which can be helpfull. For instance, you're building a navigation, then the xml and 
xsl would be the same for each request, and the xsl could then highlight the nav-item 
that matches path.


> I used this already, but what is the meaning of the second line?
> 
> 
> 
> 
> 
> could you be so kind and explain this a little more deeply? 
> thank you!!
> 
> 
> Alex
> 
> 
> 
> -
> 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]>




Re: Excel generator

2002-07-23 Thread Sven Kuenzler

> Is there an Excel Generator, which creates *from* an Excel (xls) file
> some XML? Or what approach would you take to convert existing Excel
> documents into some useful XML?

I think the previous responses missed the *from* (my emphasis) :-)
So, read Andy's answer on the dev list. In short: No, there is no 
HSSFGenerator (yet).

Sven




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




Re: Excel generator

2002-07-23 Thread Andrew C. Oliver

Nicola Ken Barozzi wrote:

>
> Geoff Howard wrote:
>
>> I didn't think there was, but the POI site 
>> (http://jakarta.apache.org/poi/)
>> claims that there is, so you may want to check more carefully in 
>> scratchpad.
>> I assume you know about  the transformers and serializers for Excel 
>> format
>> using the POI/HSSF work from Apache Jakarta.  Using their work, it 
>> should be
>> fairly easy to create a generator if one doesn't already exist in
>> scratchpad.
>
>
> It's already in the core, and is also already in 2.0.3, with examples.
>
Wait I'm confused. Here I was posting a long old response about why I 
haven't done a
generator, and he meant serializer.doh.



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




Re: Excel generator

2002-07-23 Thread Nicola Ken Barozzi


Geoff Howard wrote:
> I didn't think there was, but the POI site (http://jakarta.apache.org/poi/)
> claims that there is, so you may want to check more carefully in scratchpad.
> I assume you know about  the transformers and serializers for Excel format
> using the POI/HSSF work from Apache Jakarta.  Using their work, it should be
> fairly easy to create a generator if one doesn't already exist in
> scratchpad.

It's already in the core, and is also already in 2.0.3, with examples.

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


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




RE: Excel generator

2002-07-23 Thread Geoff Howard

I didn't think there was, but the POI site (http://jakarta.apache.org/poi/)
claims that there is, so you may want to check more carefully in scratchpad.
I assume you know about  the transformers and serializers for Excel format
using the POI/HSSF work from Apache Jakarta.  Using their work, it should be
fairly easy to create a generator if one doesn't already exist in
scratchpad.

Geoff Howard

-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 12:37 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Excel generator


Hi

Is there an Excel Generator, which creates from an Excel (xls) file
some XML? Or what approach would you take to convert existing Excel
documents into some useful XML?

Thanks  a lot

Michael


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




AW: parse generated xml and react in sitemap (Problem with AbstractSAXSource)

2002-07-23 Thread Tammo van Lessen

| Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
|
|
| Using action. Write your action which reads this  fragment into
| DOM/SAX, extracts , ,  and returns these
| values in the Map to the sitemap.
|
| Then, pass these values to the regular reader.
|
|
| Vadim
|

Hello Vadim,
  thanx for your answer. I tried this, but I had some strange trouble.  I
wrote my own Action and called it in the sitemap like this:

  

My action has the method act as follows:

public Map act(Redirector redirector, SourceResolver resolver,
   Map objectModel, String source, Parameters par)
throws Exception {

Source src = null;
HashMap actionMap = new HashMap();
try {
src = resolver.resolve(source);
String systemID = src.getSystemId();
if (this.getLogger().isDebugEnabled()) {
getLogger().debug("docprop source [" + source + "]");
getLogger().debug("docprop resolved to [" + systemID + "]");
}
// this all works fine...
// but...
Parser parser = (Parser)this.manager.lookup(Parser.ROLE);
// src.getInputSource() raises an exception!
Document sdoc = parser.parseDocument(src.getInputSource());
NodeList nl = sdoc.getElementsByTagName("document");
[...]

I got an exception from AbstractSAXSource.getInputStream...

org.apache.cocoon.ProcessingException: could not lookup pipeline components:
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: xml
at
org.apache.cocoon.components.source.AbstractSAXSource.getInputStream(Abstrac
tSAXSource.java:133)
at
org.apache.cocoon.components.source.AbstractSAXSource.getInputSource(Abstrac
tSAXSource.java:151)
at
de.taval.gizmo.acting.DocumentPropertyAction.act(DocumentPropertyAction.java
:116)

With other sources than the saxbased xmldbsource, it works fine.

Then I've copied the code of AbstractSAXSource.getInputStream and
AbstractSAXSource.getInputSource into my action and it works properly. But I
dont understand why, and this only works for SAX-based sources. Is this a
bug in AbstractSAXSource? I think, both methods should work. I dont
understand, why the same code works in my action and fails in the
AbstractSAXSource?!

Do you have any idea how to solve it? I would like to use any source for my
action, not only sax-sources, so do i have now to check for the source type
and have to implement the getInputStream method for all sourcetypes new?

Thanx
  Tammo

PS: my new work-a-round (for sax sources only) act():

ComponentSelector cs =
(ComponentSelector)this.manager.lookup(Serializer.ROLE  + "Selector");
Serializer serializer = (Serializer)cs.select("xml");

ByteArrayOutputStream os = new ByteArrayOutputStream();
serializer.setOutputStream(os);
src.toSAX(serializer);

InputSource is = new InputSource(new
ByteArrayInputStream(os.toByteArray()));
is.setSystemId(src.getSystemId());


Parser parser = (Parser)this.manager.lookup(Parser.ROLE);
Document sdoc = parser.parseDocument(is);
NodeList nl = sdoc.getElementsByTagName("document");



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




unknown font error

2002-07-23 Thread zhaiyun
Hi
I am running cocoon-2.0.2 under tomcat-4.0.3 and fop-0.20.3.
i used fop to generate PDF.

useconfig file is specified in sitemap.xmap as following:

   

   

following are defined in the userconfig.xml

  
   
  

in fo i use mysimsun as following:

 
  
   
  
 

following error out in the logs of tomcat:

2002-07-23 13:26:50 ERROR   (2002-07-23) 13:26.50:017   [fop ]
(/OTSYS/report/bill/APL) HttpProcessor[8080][0]/MessageHandler: unknown font
mysimsun,normal,normal so defaulted font to any

who can point out the miss?

Thanks!

ZhaiYun


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


Re: troubles with map:select type="request-parameter"

2002-07-23 Thread Barbara Post

Thank you so much Elmar, it works now :-)

In fact there are no brackets with "value". I don't know why I saw brackets
in the documentation.

Barbara
- Original Message -
From: Sternath Elmar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 11:51 AM
Subject: AW: troubles with map:select type="request-parameter"


Hi Barbara,

try to use the selector like this:





Good luck,
Elmar

-Ursprüngliche Nachricht-
Von: Barbara Post [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. Juli 2002 11:14
An: [EMAIL PROTECTED]
Betreff: troubles with map:select type="request-parameter"


Using C 2.0.3.

I cannot get into the  part although I checked, request parameter
"platform" value is indeed "All". Thanks for any help.
I suspect that my request parameter is at a deepest level because of the
sunRise authentication act ?

Barbara

Pipeline :


  
   


 
 


   platform
   
   

< >

  
   
  
  http://www.google.fr/{../platform}"/> [and I get
redirected to http://www.google.fr/All]
  






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



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




AW: troubles with map:select type="request-parameter"

2002-07-23 Thread Sternath Elmar

Hi Barbara,

try to use the selector like this:





Good luck,
Elmar

-Ursprüngliche Nachricht-
Von: Barbara Post [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. Juli 2002 11:14
An: [EMAIL PROTECTED]
Betreff: troubles with map:select type="request-parameter"


Using C 2.0.3.

I cannot get into the  part although I checked, request parameter
"platform" value is indeed "All". Thanks for any help.
I suspect that my request parameter is at a deepest level because of the
sunRise authentication act ?

Barbara

Pipeline :


  
   


 
 


   platform
   
   

< >

  
   
  
  http://www.google.fr/{../platform}"/> [and I get
redirected to http://www.google.fr/All]
  






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




Re: pulling content - reader vs. generator + serializer

2002-07-23 Thread Nicola Ken Barozzi


Michael Wechner wrote:
> 
> 
> gv wrote:
> 
>> I'm pulling some existing web page content into my
>> Cocoon app by simply mapping a URI in Cocoon to an
>> HTTP URI. I'm using a Reader with the mime-type set to
>> "text/html"; works fine. I also tried a FileGenerator
>> and Serializer, both type "html", which also works.
>> Which is the preferred way to handle this, and are
>> there significant advantages/disadvantages to either
>> approach?
>>
> 
> I think the Reader is faster. The FileGenerator actually "needs" XHTML,
> (e.g.  instead of ). Which means I would use the Reader if you 
> just
> want to pull through common HTML, or even better use Apache (or Tomcat) 
> itself,
> which is even faster.
> 
> But please better let my statements be confirmed.

I confirm  ;-)

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


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




troubles with map:select type="request-parameter"

2002-07-23 Thread Barbara Post

Using C 2.0.3.

I cannot get into the  part although I checked, request parameter
"platform" value is indeed "All". Thanks for any help.
I suspect that my request parameter is at a deepest level because of the
sunRise authentication act ?

Barbara

Pipeline :


  
   


 
 


   platform
   
   

< >

  
   
  
  http://www.google.fr/{../platform}"/> [and I get
redirected to http://www.google.fr/All]
  






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




unknown font error

2002-07-23 Thread zhaiyun
Hi
I am running cocoon-2.0.2 under tomcat-4.0.3 and fop-0.20.3.
i used fop to generate PDF.

useconfig file is specified in sitemap.xmap as following:

   

   

following are defined in the userconfig.xml

  
   
  

in fo i use mysimsun as following:

 
  
   
  
 

following error out in the logs of tomcat:

2002-07-23 13:26:50 ERROR   (2002-07-23) 13:26.50:017   [fop ]
(/OTSYS/report/bill/APL) HttpProcessor[8080][0]/MessageHandler: unknown font
mysimsun,normal,normal so defaulted font to any

Anyone got any ideas?

Thanks!

ZhaiYun


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


session & wap device

2002-07-23 Thread zze-STIENNE Nicolas FTRD/DMI/CAE

Hi !!

  I want to know if the wap devices support the sessions used in Cocoons protected 
area sample. It seams to work bad... I can't validate a login...


I am redireted to the login1 page with the wap (not with the conventionnal 
browser)[the * in the match pattern stands for wap or defaut-browser]

  
  
  
  


  
  
  
  



  



  


Thanks for help...

Nicolas !!

Cocoon2.0.2 Tomcat4.0.4 JDK1.3.1_03 W2000

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




Re: Esql and rollback

2002-07-23 Thread Christian Haul

On 23.Jul.2002 -- 09:25 AM, Leszek Gawron wrote:
> I'm quite new to JDBC and ESQL. My question is: I have more that one database
> inserts. Every one in different esql:execute tag. How can I rollback the
> transaction if say the 3rd goes wrong? There is no such esql tag and I do not
> know how to obtain the appropriate jdbc session variable? or maybe I'm totally
> wrong?

Set connection to autocommit false, start transaction with "begin
transaction" and do "rollback work" or "commit work" as
appropriate. The above depends on your DBMS and various DBMS
settings.

There has been a post regarding esql and autocommit recently, but I've
just returned from a short vaccation and haven't looked at this (and
other) issues, yet.

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

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




unknown font

2002-07-23 Thread zhaiyun



Hi
    I am running cocoon-2.0.2 under 
tomcat-4.0.3 and fop-0.20.3. 
i used fop to generate PDF. 
 
useconfig file is specified in sitemap.xmap as 
following:
 
   
 
following are defined in the 
userconfig.xml
 
   
 
in fo i use mysimsun as following:
 
 
 

following error out in the logs of 
tomcat:
 
    2002-07-23 13:26:50 
ERROR   (2002-07-23) 13:26.50:017   
[fop ] (/OTSYS/report/bill/APL) 
HttpProcessor[8080][0]/MessageHandler: unknown font mysimsun,normal,normal so 
defaulted font to any
 
Anyone got any ideas?
 
Thanks!
 
ZhaiYun
 


InputModules, map:global-parameters

2002-07-23 Thread Barbara Post

Reading this :
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102499709113669&w=2
only with C 2.1

What is the workaround for C 2.0.3 since I need to use a release version ?
:-/
Thanks a lot.

Barbara


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




RE: == I18N question ==

2002-07-23 Thread Piroumian Konstantin

I think that this discussion that happened at Forrest project will help you
a little: http://marc.theaimsgroup.com/?t=10240438142&r=1&w=2

--
Konstantin Piroumian 
[EMAIL PROTECTED]


> -Original Message-
> From: JИrТme Iffrig [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 22, 2002 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: == I18N question ==
> 
> 
> Hi, 
> 
> I am new with Cocoon, so I am not sure this is the rigth 
> channel to ask question, please accept my apology if it is 
> not.
> I would like to internationalize my Site - NOT the site 
> itself, but rather its CONTAINT. e.g. I would like to, let 
> say, localise the HELP page of my site in 4 langages and 
> rely on Cocoon for the localisation (depending on the 
> preferences of the visitor). Which means that on one hand I 
> would like to have the XML files for the content in 
> different languages (I would like to have one XML file per 
> language for administration ease), and on the other hand, I 
> would like to have my Cocoon style file. At the end all the 
> localised content files would be parsed according to the 
> style file to he coherent in the styles with different 
> languages.
> Have anyone of you done this before? I can see tutorials on 
> how to create dictionaries and how to replace strings 
> (Cocoon official website), but nothing realy clear 
> regarding my question.
> 
> Thanks for your time.
> Jé-
> __
> Boîte aux lettres - Caramail - http://www.caramail.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]>




RE: Strange SQLTransformer problem: Encoding bug in Cocoon 2?

2002-07-23 Thread Luca Morandini

> o.k.: I mean: there is an "official" docu for Cocoon 2 and the
> SQLTransformer part is pretty long, and seems to be not too bad. but
> this seems to be a VERY essential point and should be mentioned, dont
> you think so.

Well, I'd love doing that (no, what I'd really love would de solving this issue once 
for all) but, so far, I wans't able even to
clearly define it.

> all right: I will try this, but prefixing is not the point: do you know
> the precise namespace URL?

The one you see in the doc (http://apache.org/cocoon/SQL/2.0)... should it be a 
different one ?

Best regards,
-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Alexander Schatten [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 12:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Strange SQLTransformer problem: Encoding bug in Cocoon 2?
>
>
> Luca Morandini wrote:
>
> > Alexander,
> >
> > yes, it is definitely strange. Anyway, regarding your points:
>
>
> so, than this is not only my perception...
>
> >
> > 
> >  (1) I found nothing about these problems in the Cocoon documentation
> > 
> >
> > Well, if you look hard enough in the users-list...
>
>
> o.k.: I mean: there is an "official" docu for Cocoon 2 and the
> SQLTransformer part is pretty long, and seems to be not too bad. but
> this seems to be a VERY essential point and should be mentioned, dont
> you think so.
>
> >
> > 
> > (2) this solution works, but is practically completely unusable, as it
> > makes writing even simple templates a pain.
> > 
> >
> > Hmm... you could prefix everything with "sql:" if you like, but either way is 
>annoying (though viable, believe me).
> >
>
>
> all right: I will try this, but prefixing is not the point: do you know
> the precise namespace URL?
>
>
> thank you again for your extensive help!!
>
> > Best regards,
> >
> > P.S.
> > Could you please summarize your experience and send it to the list (citing 
>[sumamry] in the subject) ?
>
>
> yes, I will do this. I just would like to know the namespace, then I try
> to fine a better way, than those xpath function stuff...
>
>
>
> thank you
>
>
> Alex
>
>
>
> -
> 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]>




Re: newbie: aggregation question

2002-07-23 Thread Leszek Gawron

On Tue, Jul 23, 2002 at 09:23:47AM +0200, Luca Morandini wrote:
> Leszek,
> 
> I presume this issue can't be solved like you suggested.
> 
> Including a stylesheets (which is what Zach wants) is just a mean for separating 
>source code into different files, but the
> transformation is happening at the same time.
> What you suggested is a serial bunch of transformations, which is quite different.
I think I did not got the point. Sorry for messing up
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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




Re: problem using input RequestParameterModule

2002-07-23 Thread Christian Haul

On 22.Jul.2002 -- 11:41 AM, Ramsés Morales wrote:
> 
> > Sorry, sitemap integration is only available with the treeprocessor
> > and only in 2.1. (Treeprocessor is available in 2.0.3, integration is
> > not). 
> 
> Will upgrading to cocoon 2.1 will require major changes on my web-app?

I don't think so.

> Do you think cocoon 2.1 is stable enough to be used for a production
> app?

I cannot answer that one. It depends, I think. I have not experienced
problems with it so far. But then I don't do load tests.

There has been a significant slow-down, as I haven't compared the
results with 2.0.3 yet, I can't tell you how it relates to 2.0.3's
performance. 

Will post more on this later.

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

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




Esql and rollback

2002-07-23 Thread Leszek Gawron

I'm quite new to JDBC and ESQL. My question is: I have more that one database
inserts. Every one in different esql:execute tag. How can I rollback the
transaction if say the 3rd goes wrong? There is no such esql tag and I do not
know how to obtain the appropriate jdbc session variable? or maybe I'm totally
wrong?
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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




RE: newbie: aggregation question

2002-07-23 Thread Luca Morandini

Leszek,

I presume this issue can't be solved like you suggested.

Including a stylesheets (which is what Zach wants) is just a mean for separating 
source code into different files, but the
transformation is happening at the same time.
What you suggested is a serial bunch of transformations, which is quite different.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Leszek Gawron [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 9:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie: aggregation question
>
>
> On Mon, Jul 22, 2002 at 06:20:02PM +, zach rappaport wrote:
> > Hello -
> >
> > I am using Cocoon version: 2.0.2 and Tomcat version: 4.0.4, and am very
> > very new to Cocoon.
> >
> > I have a currently working xml -> xsl stylesheet -> html module developed
> > to publish various reports. I would like to move
> > my existing setup over to Cocoon. In my current setup, the xml data is
> > passed to 1 xsl stylesheet and transformed to hmtl output. This 1 xsl
> > stylesheet (the main xsl stylesheet) calls a few other xsl stylesheets
> > within (via: ). How do I mimic this behavior in
> > Cocoon? Am I to use aggregation? If so, what are my ?
> >
> > Once again, the current setup is like this:
> >
> > xml -> main xsl stylesheet -> html
> >
> > main xsl stylesheet (main.xsl) calls (header.xsl, body.xsl, footer.xsl).
> >
> > Can I aggregate the html output proffered by the various xsl stylesheets by
> >  and ?
> You do not need aggregation for this
> the only thing you do is:
>
> 
>   
>   
>   
>   
>   
> 
>
> you do not have to reference other stylesheets in main.xsl
>   ouzo
> --
> __
>  | /  \ |Leszek Gawron//  \\
> \_\\  //_/  [EMAIL PROTECTED]  _\\()//_
>  .'/()\'. Phone: +48(600)341118 / //  \\ \
>   \\  //  recursive: adj; see recursive  | \__/ |
>
>
> -
> 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]>