RE : How to serialize a XML file to disk?

2003-03-24 Thread Laurent Trillaud
Have a look on the xsl :document.
I guess that it should be useful for you.
This tag is like a fork for a stream.
In your XSL file, when you use this tag you redirect the output.

...
psome text redirect to the standard stream/p
xsl:document href=request{$id}.xml method=xml
!-- all inside document is redirected to href --
xsl:apply-templates select=MyContentTag/
/xsl:document
panother text redirect to the standard stream/p

Laurent Trillaud

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : samedi 22 mars 2003 19:15
À : [EMAIL PROTECTED]
Objet : How to serialize a XML file to disk?

Hi all :)
 
We're doing a college work on cocoon and xml harvester potencial, and we
would like to know if we can grab a given XML file (on the web) to a
location on harddisk for a repository then work with it..
 
TIA
 
 
 


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



Re: xindice problems

2003-03-24 Thread Yury Mikhienko
On Sun, 23 Mar 2003 18:02:38 +
daniel beeby [EMAIL PROTECTED] wrote:

 
 
 
 Hi,
 This is probably going to be considered to be a newbie question but its 
 driving me insane. Im trying to get cocoon to work with xindice but having 
 difficulties. I followed an example on cocooncenter.de which seemed to be 
 fairly logical but it doesnt seem to work. I am running version 2.04 and 
 have been given the impression from various articles that it contains 
 sitemap and conf.xml configurations for xindice(correct me if im wrong). I 
 couldnt find pipelines,generators, or source handlers for it so decided to 
 put them in myself. When requesting a URL asking for xml I get a sitemap 
 config error saying something about component selector with a hint of 
 [request-parameter]. This is probably not enough information to help answer 
 the problem but perhaps someone can point me in the right direction.
 
 Cheers
 

I'm use the following configuratin for xindice access:

in cocoon.xconf:
!-- xmldb pseudo protocol --

protocol name=xmldb 
class=org.apache.cocoon.components.source.XMLDBSourceFactory
  !-- Xindice driver --
  driver type=xindice class=org.apache.xindice.client.xmldb.DatabaseImpl/
  !-- Add here other XML:DB compliant databases drivers --
   /protocol

in test sitemap.xmap (for example):

   map:match pattern=dbdocs
map:match type=request-parameter pattern=query
  map:generate src=xmldb:xindice:///db/web/docs/#{1}/
 map:serialize type=xml/
/map:match
   /map:match

of course, you must puts the xindice.jar and xmldb-api.jar into cocoon libs directory

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

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



Re: Any Cocoon People in Berlin, Germany?

2003-03-24 Thread Juliane Ndje

- Original Message -
From: Ines Robbers [EMAIL PROTECTED]
To: Cocoon Mailingliste [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 6:32 PM
Subject: Any Cocoon People in Berlin, Germany?


 Hallo!

 Gibt es hier in der Liste Cocoon-Kenner aus Berlin?
 Ich bin auf der Suche nach MitstreiterInnen für ein Gründungsprojekt.

 Freue mich auf Antwort!

 Ines



 Hi there,

 Are there any people from Berlin working with Cocoon and interested in
 meeting up?

 Ines

 when and where?
juli

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



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



Re: RE : How to serialize a XML file to disk?

2003-03-24 Thread Joerg Heinicke
Hello Laurent,

that's not correct. xsl:document/ is not usable. It first appears in the 
XSLT 1.1 working draft which is a dead end. I will probably be available in 
XSLT 2.0. But you can't use it in Cocoon, because the current version of 
Xalan delivered with Cocoon does neither support XSLT 1.1 nor XSLT 2.0. I 
don't know what you use, at least you seem to work with xsl:document/. The 
alternative for Xalan is the proprietary extension xalan:redirect.

Regards,

Joerg

Laurent Trillaud wrote:
Have a look on the xsl :document.
I guess that it should be useful for you.
This tag is like a fork for a stream.
In your XSL file, when you use this tag you redirect the output.
...
psome text redirect to the standard stream/p
xsl:document href=request{$id}.xml method=xml
!-- all inside document is redirected to href --
xsl:apply-templates select=MyContentTag/
/xsl:document
panother text redirect to the standard stream/p
Laurent Trillaud

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : samedi 22 mars 2003 19:15
À : [EMAIL PROTECTED]
Objet : How to serialize a XML file to disk?

Hi all :)
 
We're doing a college work on cocoon and xml harvester potencial, and we
would like to know if we can grab a given XML file (on the web) to a
location on harddisk for a repository then work with it..
 
TIA
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: wget blocks on cocoon pages

2003-03-24 Thread Matthias Brunner
On Friday 21 March 2003 15:23, Andrew Savory wrote:
 Hi Matthias,

 On Fri, 21 Mar 2003, Matthias Brunner wrote:
  Accessing a cocoon page with wget takes much longer than usual:
  wget http://localhost:8080/cocoon/; takes 20 seconds!

 What sort of perceived speed do you get using the GET command?
 Try:

   GET -uUesd http://localhost:8080/cocoon/

Andrew,

what GET command do you mean? Should I telnet to the server and do 
this?

Thanks for your reply,
Matthias

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



R: database forms

2003-03-24 Thread Lorenzo De Sio
Stefan, Thorsten,

I actually implemented something similar to what Stefan outlined in its
first e-mail.
It works mainly like this:

system-wide configuration files (one for each relevant DB table) exist in a
central location, containing information about HTML widget rendering and JS
validation of each field; here is an example:

table name=tasks primary-key=task_id check-field=title
field name=task_id/
field name=title caption=Titolo write-style=width:200
validate=nonempty/
field name=priority caption=Priorita'
validate=nonempty, integer validate-min=0 validate-max=10/
field name=insertion_date caption=Data di inserimento
validate=nonempty,date/
field name=expiration_date caption=Data di scadenza
validate=date/
field name=description caption=Descrizione
widget=textarea/
field name=project_id caption=Progetto
select
esql:connection
esql:poolw4b/esql:pool
esql:execute-query
esql:querySELECT * FROM projects
ORDER BY name/esql:query

esql:resultsesql:row-resultsoptionxsp:attribute
name=valueesql:get-int
column=project_id//xsp:attributeesql:get-string
column=name//option
/esql:row-results/esql:results
 /esql:execute-query
/esql:connection
/select
/field
/table

these are XSP files, meaning that i.e. select boxes can be populated
dynamically and even based on current user data (privileges, etc.);

you can design any number of forms which refer to these common configuration
files: simply use in your XSLs a few custom tags such as:

w4b:form name=modulo onSuccess={//@referer}
w4b:row mode=write table=projects
pk-value={project_id}
w4b:field src=project_id
value={project_id}/
w4b:caption src=customer_id/:w4b:field
src=customer_id value={customer_id}/
/w4b:row
/w4b:form

the form can refer any number of rows belonging to different tables
(multiple w4b:row inside a w4b:form).

Such forms require a few transformations (a first XSL one which detects the
tables involved, and adds cinclude's to load the configuration XSP for
each table; the actual CInclude trasnformation; two final XSLs which build
all the HTML rendering and JS validation. Current renderings include text
boxes, selects (with automatic DB-bound option selection), textareas, etc.

The result is a HTML form where every field is named with a
table-pk_value-fieldname combination.

All this, after user modification, can be POSTed to a general-purpose form
processing action, which loads the required configurations from the same
files as above (PK names, etc.), writes everything to the DB, and redirects
to the desired URL (onSuccess above). To achieve more flexibility, nothing
prevents from POSTing to custom actions, one for each form, or to XSPs. The
only thing to keep is the form fields naming convention.

I built all this about one year and a half ago, and never divulgated it ;-)
because I thought it would be better to build something new related to
XForms (but using XML, not JavaBeans). Though, if you are interested in this
system and wish to use it and help me contribute something new to Cocoon, we
could join our efforts.

With my best regards,

L.


-Messaggio originale-
Da: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Inviato: venerdì 21 marzo 2003 13.50
A: [EMAIL PROTECTED]; Stefan Klein
Oggetto: AW: database forms


hi Stephan,

by the way are you in Spain right now?

see my answer below:

-Ursprüngliche Nachricht-
Von: Stefan Klein [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 10:48
An: [EMAIL PROTECTED]
Betreff: Re: database forms


Hi Thorsten,

thanks for your reply. I've been pondering about your mail for a little
while now. The xsl looks like a clever idea. A few things remain unclear to
me:

What way do you use to get the data out of the DB. SQL-Transformer?

- No, because I need more logic (e.g. date format ...) [#1]! I use esql and
xsp!
a)cocoon.xconf.snippet
jdbc name=D200301Insta
pool-controller min=5 max=10/
dburljdbc:odbc:MyDB/dburl
user/
password/
/jdbc

b) sitemap.snippet
  map:match pattern=report-info-*.xml
map:generate type=serverpages src=global/reports/xsp/info.xsp
  map:parameter name=pool value={1}/
/map:generate
map:serialize type=xml/
  /map:match

c) xsp.snippet compare [#1]
xsp:logic.../xsp:logic
esql:connection
esql:poolxsp:exprGETpool/xsp:expr/esql:pool
esql:execute-query
esql:query
select * from IDM_info_xml Where 

Re: XSL and script code - please help

2003-03-24 Thread hgadm
Thanks Christopher, Adam, Thorsten and Joerg for your
valuable suggestions. I will try to implement a while
loop in XSL with a recursive xsl:call-template ...
construct and will report back to the group soon !

Cheers Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



cocoon xindice update xml content

2003-03-24 Thread Stavros Kounis
hi

is there any example how to update the content of documents stored
in xindice collections using cocoon?

i have found examples how to make xqueries and get data from xindici using
cocoon but i want to be able to put data or put new nodes in a XML
document stored into xindici

thanks



-- 
Stavros S. Kounis
Development  Research Department
Osmosis - networks  consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



RE: xform repeat and java beans: null pointer exception

2003-03-24 Thread Sylvain.Thevoz
Hi Dan,
 
I don't know if you can use array with repeat tag.
 
I'm using a HashMap instead of an Array (see the wizard example).
It works fine for me.
 
Don't forget to initialize the object.
 
Before that I tried to do the same thing with a Collection but it didn't work for me.
 
Regards
Sylvain (T)

-Message d'origine-
De: Barber, Dan [mailto:[EMAIL PROTECTED]
Date: vendredi, 21. mars 2003 18:01
À: [EMAIL PROTECTED]
Objet: xform repeat and java beans: null pointer exception



Hi, 

There might be a simple solution to this problem, but I have not been able to find it. 
 Here is the problem: 

I have a Java Bean that returns an array of objects.  I try to display the list using 
the xf:repeat in an xml file.  Here's the bean, xml and sitemap entries:

-- 
Cocoon version 2.1 latest CVS files 
--- 
Notes: I have all log levels set to DEBUG.  I haven't found any useful info listed in 
the log file. 

- 
start.xml 
-- 

?xml version=1.0 ? 
document xmlns:xf= http://xml.apache.org/cocoon/xmlform/2002; 

xf:form id=form-feedback view=start action=ruleset 
xf:captionDummy/xf:caption 
 xf:output ref=/dummys[2]/   !-- this works fine -- 

 xf:repeat nodeset=/dummys  !-- this generates an exception.  Please see 
exception below -- 
xf:output ref=./ 
  /xf:repeat 

/xf:form 
/document 

-- 
Bean 
-- 
public class RuleSetHelperBean 
{ 
public RuleSetHelperBean() 
{ 
dummys[0] = new String(blah1); 
dummys[1] = new String(blah2); 
} 

public String[] getDummys() 
{ 
return dummys; 
} 

public String getDummys(int idx) 
{ 
return dummys[idx]; 
} 

protected String dummys[] = new String[2]; 
} 

-- 
Sitemap entries (relevant to this problem) 
-- 
 
  map:action name=RuleSetAction src=com.test.RuleSetAction  
logger=xmlform.sitemap.action.ruleset/ 
. 
  map:match pattern=ruleset* 
map:act type=RuleSetAction 

  !-- XMLForm parameters for the AbstractXMLFormAction -- 
  map:parameter name=xmlform-validator-schema-ns value= 
http://www.ascc.net/xml/schematron/ 
  map:parameter name=xmlform-validator-schema 
value=schematron/ruleset-xmlform-sch-report.xml/ 
  map:parameter name=xmlform-id value=form-feedback/ 
  map:parameter name=xmlform-scope value=session/ 
  map:parameter name=xmlform-model value=com.test.RuleSetHelperBean/ 

- 
Browser exception 
- 
An error occurredorg.apache.cocoon.ProcessingExceptionFailed to execute 
pipeline.org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.NullPointerExceptionOriginal exception : java.lang.NullPointerException at 
org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(TransformerIdentityImpl.java:888)
 at 
org.apache.xalan.transformer.TransformerIdentityImpl.startPrefixMapping(TransformerIdentityImpl.java:931)
 at 
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.startNode(DOMStreamer.java:442)
 at 
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:259)
 at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:173) at 
org.apache.cocoon.xml.XMLUtils.serializeNode(XMLUtils.java:230) at 
org.apache.cocoon.xml.XMLUtils.serializeNodeToXML(XMLUtils.java:181) at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endRecording(AbstractSAXTransformer.java:496)
 at 
org.apache.cocoon.transformation.XMLFormTransformer.endTransformingElement(XMLFormTransformer.java:965)
 at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:355)
 at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124) at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579) at 
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:897)
 at 

Thanks! 
Dan Barber 



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



Re: A Gzipped XML Serializer component for Cocoon

2003-03-24 Thread Joerg Heinicke
There were some threads about on the developers list. IIRC they came to the 
conclusion to add such things to the pipeline. But after 2.1 release. One 
point in the discussion was, whether this is the task of Cocoon and not of 
Tomcat or Apache (mod_gzip).

Joerg

Michael Riedel wrote:
Hi Bruce!


I'm pretty sure this is something that eventually should be rolled into
Cocoon itself, but as I note in the page, my code is a hack on the
XMLSerializer, and shouldn't be ci'd as-is.


Though I don't need it at this time, I agree, that gzip compression is a
quite usefull. It should be included in the cocoon distribution.
But I'm not sure, if compression should be handled by a serializer. What, if
someone wants to compress something else than XML data. Then he'd have to
rewrite another serializer to support gzip. (I have to admit, I don't have
good application examples right now, since most of the other serializers
produce some kind of compressed data anyway.) What I'm trying to say is,
that compression is orthogonal to the actual data-format.
Wouldn't it be more usefull, if compression was a seperate feature? I'd
suggest a reader handling the gzip-compression.
It could be used to compress any kind of data, both static and dynamic. To
generate a compressed version of a dynamic resource, the reader could access
the uncompressed version through the cocoon-protocol.
(I have to admit, that I have never tried, if using the cocoon-protocol with
a reader really works. But in my oppinion such an approach might be usefull,
whenever non-xml data needs further processing.)
Here is some sitemap fragment, to demonstrate my thoughts. It's only a
scetch, so it might contain some bugs:
  map:readers default=resource
...
map:reader name=gzip src=foo.bar.GzippedReader/
  /map:readers
  ...
  map:pipeline
map:match pattern=**.svg
  ...
  map:serialize type=svg2jpeg/
/map:match
map:match pattern=**.svgz
  map:read type=gzip src=cocoon:/{1}.svg
mime-type=image/svg+xml/
/map:match
  map:pipeline
I'd like to hear other people's oppinion on this topic. If anyone is
interested, I could try to refactor to gzipped-xml-serializer to a reader.
I'd like to see if the above sitemap fragment really works.
A possible problem, when seriallization and compression are seperated might
be the caching-behavior. Can the output of a reader be cached at all? If
yes, both an uncompressed and a compressed version would be cached. And
then, does the cocoon-protocoll check if the requested resource has changed?
If no, caching of the compressed resource would be useless.
Greets, Michael Riedel

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

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


New site C2

2003-03-24 Thread Marco Taiuti
New site powered by Cocoon 2

www.linesrl.it


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



Re: A Gzipped XML Serializer component for Cocoon

2003-03-24 Thread Bruce Robertson
Quoting Joerg Heinicke [EMAIL PROTECTED]:

 There were some threads about on the developers list. IIRC they came to the
 
 conclusion to add such things to the pipeline. But after 2.1 release. One 
 point in the discussion was, whether this is the task of Cocoon and not of 
 Tomcat or Apache (mod_gzip).
 
 Joerg
 
 Michael Riedel wrote:
  Hi Bruce!
  
  
 I'm pretty sure this is something that eventually should be rolled into
 Cocoon itself, but as I note in the page, my code is a hack on the
 XMLSerializer, and shouldn't be ci'd as-is.
  
  
  Though I don't need it at this time, I agree, that gzip compression is a
  quite usefull. It should be included in the cocoon distribution.
  
  But I'm not sure, if compression should be handled by a serializer. What,
 if
  someone wants to compress something else than XML data. Then he'd have to
  rewrite another serializer to support gzip...

Michael, Joerg:

On the issue of if this being handled by mod_gzip or mod_deflate, Apache's own
Batik Squiggle does not, in my experience, receive compressed SVG if compression
is handled this way. Nor do I see why it should send a Accept-Encoding: gzip
header to get *.svgz, since they are not a compressed form of the original (like
html that has been gzipped by the above), but rather a proper manifestation of
the document, like jpg compression. Secondly, there is the issue of sparing your
cache. See the introduction to my
http://wiki.cocoondev.org/Wiki.jsp?page=Gzip_XML_Serializer
(I would post this to the dev group, but I never seem to be able to get
subscribed to that.)

I can see Michael's argument for a reader-based implementation, but efficient
caching is a sine qua non for me. Could something be done with a view?

I'm glad to hear this is on the radar of the developers', for whose hard work I
am most grateful.

Yrs,
-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



Re: cocoon xindice update xml content

2003-03-24 Thread Josema Alonso
Hi, there.

If you prefer to go the XML way, you can take a look at XUpdate and its
transformer, available in 2.1 CVS. This thread can help you a bit:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104714942428556w=2

If you prefer to go the Java way, this how-to can make a good starting point
and you could extend it to suit your needs:
http://xml.apache.org/cocoon/howto/howto-xindice-xmlform.html

Best.


- Original Message -
From: Stavros Kounis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 2:19 PM
Subject: cocoon  xindice update xml content


 hi

 is there any example how to update the content of documents stored
 in xindice collections using cocoon?

 i have found examples how to make xqueries and get data from xindici using
 cocoon but i want to be able to put data or put new nodes in a XML
 document stored into xindici

 thanks



 --
 Stavros S. Kounis
 Development  Research Department
 Osmosis - networks  consulting services

 web: http://www.osmosis.gr
 email: [EMAIL PROTECTED]


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





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



Re: content management systems - who is using a cms with cocoon?

2003-03-24 Thread David Cummings
Chris,

We (hannonhill.com) have built a new commercial CMS
with Cocoon at the core. I can send you more
information if you are interested. Right now it is
private beta and will be released in three weeks at
the Internet World Essentials show in California.

Best regards,
David Cummings
Hannon Hill Corporation
Makers of Award-Winning Content Management Software

--- Chris Dietz [EMAIL PROTECTED] wrote:
 
 
 Anybody using a CMS(content management system) with
 Cocoon?
 
 I would like to hear what you are using.
 
 I am looking into Wyona/Lenya and forrest.
 
 -chris
 

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



mistake in XMLForms HowTo

2003-03-24 Thread Stefan Klein
Hi,

I'm not sure about where to send this, so I thought I'd send it here hoping
for someone to forward it to the right place:

There is a mistake in the XMLForms HowTo. In the sample XMLs the form-id is
set to form-feedback. But according to the sitemap in step 5, it should be
form-howto (well, in the first snippet it's fine, but then in the full
version of the sitemap at the bottom of the page there's the mistake).

I did cut-and-paste and got a form is null exception. Maybe someone can
put it right.

Stefan


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



XMLForm: how to display a text

2003-03-24 Thread Sylvain.Thevoz
Hello,

Is there a way to display a simple text in XMLForm views?

Someting like xf:textmy text/xf:text...


Thanks
Sylvain (T)

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



XSLT does not maintain br 'format' tags in XML??

2003-03-24 Thread hgadm
Dear all,

I have a quite long text in an XML tag description
with some in-line br / tags to format it (the text
containing these tags was created by an HTML mask after
a user input into it[in fact the php script that is
processing the mask is replacing CR/LF with br /])

However after XSL transformation, the HTML result
doesn't contain the tags [in fact the HTML source text
has the br / replaced with CR/LF which is of course
not useful !!].

What's wrong with it ??

Cheers,
Holger

XML
.
.
.
dc:descriptionCOPD is a ...range of disease
characteristics including: 
br / 
br / 
- improvement of FEV1, 
br / 
br / 
- improvement of symptoms, .../dc:description
.
.
.


XSL
.
.
.
Ifont color=#00CC00Description = /font/Ibr/
font color=#00xsl:value-of
select=//dc:description//font
.
.
.

HTML (as it displays in the browser)
.
.
.
Description = 
COPD is a ...range of disease characteristics
including: - improvement of FEV1, - improvement of
symptoms, 
.
.
.

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: XSLT does not maintain br 'format' tags in XML??

2003-03-24 Thread Joerg Heinicke
Hmm, XML, PHP, CR/LF, br/ - it seems a bit poor designed. Why aren't you 
doing the replacing in XSLT?

But at least the solution should be to change

xsl:value-of select=//dc:description/

to

xsl:copy-of select=//dc:description/.

Regards,

Joerg

[EMAIL PROTECTED] wrote:
Dear all,

I have a quite long text in an XML tag description
with some in-line br / tags to format it (the text
containing these tags was created by an HTML mask after
a user input into it[in fact the php script that is
processing the mask is replacing CR/LF with br /])
However after XSL transformation, the HTML result
doesn't contain the tags [in fact the HTML source text
has the br / replaced with CR/LF which is of course
not useful !!].
What's wrong with it ??

Cheers,
Holger
XML
.
.
.
dc:descriptionCOPD is a ...range of disease
characteristics including: 
br / 
br / 
- improvement of FEV1, 
br / 
br / 
- improvement of symptoms, .../dc:description
.
.
.

XSL
.
.
.
Ifont color=#00CC00Description = /font/Ibr/
font color=#00xsl:value-of
select=//dc:description//font
.
.
.
HTML (as it displays in the browser)
.
.
.
Description = 
COPD is a ...range of disease characteristics
including: - improvement of FEV1, - improvement of
symptoms,
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


New version of wikiLand: 0.9

2003-03-24 Thread wikiland
After a lng time and several spams on this list, I am happy to announce
a new version of wikiLand: 0.9
I jumped to that number, because several unreleased versions has been refactored to 
obtain this one.

I no longer use Chpaeron for wiki parsing.
Instead I chose the library Radeox. It works pretty well (the version in wikiLand is a 
bit patched, i will send them to the maintainer asap).
I also chose to make it more an option of Jeremy Quinn's editor (available with any 
Cocoon+scratchpad). 

I hope the guys at Cocoon will agree to incorporate it in the future releases of 
Cocoon.

At the moment, all mly work was done with JDK 1.4. If you find any bug with 1.3, 
please mail me.

This version also provides versionning and reference links management. 
I am pretty happy of it and hope to have some feedback from users.

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



Re: New version of wikiLand: 0.9

2003-03-24 Thread Tony Collen
On Mon, 24 Mar 2003 [EMAIL PROTECTED] wrote:

 After a lng time and several spams on this list, I am happy to announce
 a new version of wikiLand: 0.9
 I jumped to that number, because several unreleased versions has been refactored to 
 obtain this one.

... And where can we acquire this fine application? :)


Tony



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



Where is wikiland.

2003-03-24 Thread wikiland
wikiLand is available here:
http://lOlive.net

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



RE: Where is wikiland.

2003-03-24 Thread Delis, Christopher E.
do you have a demo-site, too?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 11:29 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Where is wikiland.
 
 
 wikiLand is available here:
 http://lOlive.net
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: wget blocks on cocoon pages

2003-03-24 Thread Andrew Savory

Hi,

On Mon, 24 Mar 2003, Matthias Brunner wrote:

 On Friday 21 March 2003 15:23, Andrew Savory wrote:
 
  GET -uUesd http://localhost:8080/cocoon/


 what GET command do you mean? Should I telnet to the server and do
 this?

Ah, okay: GET is a command that some platforms have as part of the
libwww-perl package. It is synonymous with:

telnet localhost 8080
GET /cocoon/ HTTP/1.0
(return)
(return)

Hope that helps,

Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



Re: Any Cocoon People in Berlin, Germany?

2003-03-24 Thread Hubert Holtz
Hy Ines,

please check your comprehend mailbox.

Steve

*** REPLY SEPARATOR  ***

On 21.03.2003 at 18:32 Ines Robbers wrote:

Hallo!

Gibt es hier in der Liste Cocoon-Kenner aus Berlin?
Ich bin auf der Suche nach MitstreiterInnen für ein Gründungsprojekt.

Freue mich auf Antwort!

Ines



Hi there,

Are there any people from Berlin working with Cocoon and interested in
meeting up?

Ines



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




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



[SUMMARY] XSLT does not maintain br 'format' tags in XML??

2003-03-24 Thread hgadm
The solution:

 change
 
 xsl:value-of select=//dc:description/
 
 to
 
 xsl:copy-of select=//dc:description/

Thanks Florian and Joerg !

Regards,

Holger



On Mon, 24 Mar 2003, Joerg Heinicke wrote:

 
 Hmm, XML, PHP, CR/LF, br/ - it seems a bit poor
 designed. Why aren't you 
 doing the replacing in XSLT?
 
 But at least the solution should be to change
 
 xsl:value-of select=//dc:description/
 
 to
 
 xsl:copy-of select=//dc:description/.
 
 Regards,
 
 Joerg
 
 [EMAIL PROTECTED] wrote:
  Dear all,
  
  I have a quite long text in an XML tag description
  with some in-line br / tags to format it (the text
  containing these tags was created by an HTML mask
 after
  a user input into it[in fact the php script that is
  processing the mask is replacing CR/LF with br /])
  
  However after XSL transformation, the HTML result
  doesn't contain the tags [in fact the HTML source
text
  has the br / replaced with CR/LF which is of
course
  not useful !!].
  
  What's wrong with it ??
  
  Cheers,
  Holger
  
  XML
  .
  .
  .
  dc:descriptionCOPD is a ...range of disease
  characteristics including: 
  br / 
  br / 
  - improvement of FEV1, 
  br / 
  br / 
  - improvement of symptoms, .../dc:description
  .
  .
  .
  
  
  XSL
  .
  .
  .
  Ifont color=#00CC00Description =
 /font/Ibr/
  font color=#00xsl:value-of
  select=//dc:description//font
  .
  .
  .
  
  HTML (as it displays in the browser)
  .
  .
  .
  Description = 
  COPD is a ...range of disease characteristics
  including: - improvement of FEV1, - improvement of
  symptoms,
 
 -- 
 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de
 
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Antwort: Multiple pdf with one match?

2003-03-24 Thread Scherler
hi Matthias,

that is a good way!

Thank you for the tip!

My problem is a little bit different because actually I want to send 
this e.g. 4 files to a printer! That I could not to wirth a zip, or 
could I?

King regards
Thorsten
Stoeckel, Matthias wrote:

Hi Thorsten,

another solution would be the ZipArchiveSerializer.  If your users have an
zip client you could put all your pdf's into one zip file. This would avoid
a javascript hack. One problem with opening windows (assuming that you use
IE on Windows) is that you can have a maximum of 4 requests per browser. So
you will get serious trouble with timeouts as soon as you have to send more
than 4 pdfs.
Cheers
 Matthias
 

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 14:31
An: Cocoon-Users (E-Mail)
Betreff: Multiple pdf with one match?
Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date 
there should be called 3 different piplines resulting 3 
DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each 
is for one resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.

Any ideas or links or hints?

King regards
Thorsten
   

Mit freundlichem Gruss,

Thorsten Scherler
Marketing / Telefonmarketing
Weidmüller GmbH  Co.
P.O. Box 2807
33058 Paderborn
Tel.:+ 49 - 5252-960-350
Fax:+ 49 - 5252-960-116
eMail: [EMAIL PROTECTED]
http://www.weidmueller.de
 

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

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


 



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


AW: OpenOffice Flat-XML and XIndice

2003-03-24 Thread Stephan Meinl
Hi,
I am still trying to retrieve a document produced by OpenOffice's
FlatXML-Filter and stored in Xindice.
What I found out is, that document size doesn't matter - but when there
are more than 5 namespace declarations in the document Cocoon delivers
nothing but the xml-header. Is there a limit on the number of
namespaces?
A Java program retrieves the whole content, even if there are more than
ten namespaces. Unfortunately the only message in the cocoon log
(besides the stack trace) is 'org.xmldb.api.base.XMLDBException: '
without any further information.
Can anyone help please?
Thanks,
Stephan

Sitemap looks like this:
!-- === XML:DB == --
map:match pattern=xmldb/**
map:match pattern=xpath type=request-parameter
map:generate
src=xmldb:xindice://localhost:4080/db/{../1}#{1}/
map:serialize type=xml/
/map:match
map:generate src=xmldb:xindice://localhost:4080/db/{1}/
map:serialize type=xml/
/map:match

cocoon.xconf:
!-- === XML:DB  --
protocol class=org.apache.cocoon.components.source.XMLDBSourceFactory
name=xmldb
!-- Xindice driver --
driver class=org.apache.xindice.client.xmldb.DatabaseImpl
type=xindice/
!-- Add here other XML:DB compliant databases drivers --
/protocol

==
The test-document looks like this:
==
?xml version=1.0?
office:document xmlns:office=http://openoffice.org/2000/office;
xmlns:style=http://openoffice.org/2000/style;
xmlns:text=http://openoffice.org/2000/text;
xmlns:table=http://openoffice.org/2000/table;
xmlns:draw=http://openoffice.org/2000/drawing;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:meta=http://openoffice.org/2000/meta;
xmlns:number=http://openoffice.org/2000/datastyle;
xmlns:svg=http://www.w3.org/2000/svg;
xmlns:chart=http://openoffice.org/2000/chart;
xmlns:dr3d=http://openoffice.org/2000/dr3d;
xmlns:math=http://www.w3.org/1998/Math/MathML;
xmlns:form=http://openoffice.org/2000/form;
xmlns:script=http://openoffice.org/2000/script;
xmlns:config=http://openoffice.org/2001/config; office:class=text
office:version=1.0
I will be retrieved...?
/office:document




 -Ursprüngliche Nachricht-
 Von: Stephan Meinl [mailto:[EMAIL PROTECTED] 
 Gesendet: Samstag, 22. März 2003 00:58
 An: [EMAIL PROTECTED]
 Betreff: OpenOffice Flat-XML and XIndice
 
 
 Hi folks,
 I am working on an CMS with OpenOfficeWriter and Xindice. I 
 am using the FlatXML-Filter of OpenOffice to produce raw XML 
 which I wanted to store in Xindice and retrieve it with 
 Cocoon. Everthing seemed to work fine until I tried to 
 retrieve such a document via Cocoon. (Retrieval from a 
 JAVA-program works fine.) When I type something like 
 http://localhost:8080/cocoon/xmldb/xaps/test.x ml I get a loud 
 complaint from the browser saying that only 
 the XML-Declaration was given back and the root element is 
 missing. I tried the same with parts of the document (i.e. 
 settings.xml or
 content.xml) which worked fine even with Cocoon. Only if I 
 try to get the whole thing it doesn't work. Testing with 
 Alexander Schatten's XIndice-Browser also works. There is 
 nothing special with that document - does anyone have an idea 
 what went wrong in Cocoon?
 
 Environment is: Cocoon 2.0.4, Tomcat 4.1.18, WinXP Prof., 
 Xindice 1.0 Stacktrace in Tomcat log says: 2003-03-21 
 23:38:25 StandardWrapperValve[Cocoon2]: Servlet.service() for 
 servlet Cocoon2 threw exception java.lang.IllegalStateException
   at 
 org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteRes
 ponseFacad
 e.java:251)
   at
 org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
 java:1115)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Applica
 tionFilterChain.java:247
 
 I am not that experienced with JAVA to say whether this 
 message is the reason. Can anyone help? Thanks a lot, Stephan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: mistake in XMLForms HowTo

2003-03-24 Thread Ryan Hoegg
I just verified this, it's true.  Also, the map:match pattern=/ 
redirects to wizard.html instead of howto-wizard.html in the big sitemap 
at the end of Step 5.  In the snippet at the top of the page, it is correct.

Anyway, thanks for this howto, it helped me gear up on XMLForms very 
quickly.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Stefan Klein wrote:

Hi,

I'm not sure about where to send this, so I thought I'd send it here hoping
for someone to forward it to the right place:
There is a mistake in the XMLForms HowTo. In the sample XMLs the form-id is
set to form-feedback. But according to the sitemap in step 5, it should be
form-howto (well, in the first snippet it's fine, but then in the full
version of the sitemap at the bottom of the page there's the mistake).
I did cut-and-paste and got a form is null exception. Maybe someone can
put it right.
Stefan



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


[SUMMARY] Re: mistake in XMLForms HowTo

2003-03-24 Thread Ryan Hoegg
Found another one, and now it works.  I had to fix the spelling of the 
traditionalRecipes property on the HowtoBean.

As I went through the howto, I set up a simple build script for it so I 
could make a war out of it.  The war deploys successfully to jboss 3.0.6 
with tomcat.  So I made a zip with the fixes in this thread and my build 
script, along with a snapshot of a minimal Cocoon 2.1 dev build from 
yesterday.  If anyone wants to take a look at it, feel free:

http://www.hoegg.net/cocoon-xmlforms-howto.zip

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using parameterised URL in FileGenerator

2003-03-24 Thread Alex Romayev
Hi,

I'm running into problems trying to use FileGenerator
go get XML via a parameterised URL.

The following is invalid XML:

map:generate
src=http://foo.com?param1=xparam2=yparam3=z/

and the following is not the right URL:

map:generate
src=http://foo.com?param1=xamp;param2=yamp;param3=z/

Any ideas?

Thanks,
-Alex


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



Re: Using parameterised URL in FileGenerator

2003-03-24 Thread Alex Romayev
It didn't come out quite clearly on the email, but the
basic point is that if I use , it's not valid XML,
and if I substitute it with amp; the URL is
incorrect.

--- Alex Romayev [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm running into problems trying to use
 FileGenerator
 go get XML via a parameterised URL.
 
 The following is invalid XML:
 
 map:generate
 src=http://foo.com?param1=xparam2=yparam3=z/
 
 and the following is not the right URL:
 
 map:generate

src=http://foo.com?param1=xamp;param2=yamp;param3=z/
 
 Any ideas?
 
 Thanks,
 -Alex
 
 

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


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



Re: Using parameterised URL in FileGenerator

2003-03-24 Thread Alex Romayev
Never mind, I had a space in my URL -- just like
publicly talking to myself ;)

--- Alex Romayev [EMAIL PROTECTED] wrote:
 It didn't come out quite clearly on the email, but
 the
 basic point is that if I use , it's not valid
 XML,
 and if I substitute it with amp; the URL is
 incorrect.
 
 --- Alex Romayev [EMAIL PROTECTED] wrote:
  Hi,
  
  I'm running into problems trying to use
  FileGenerator
  go get XML via a parameterised URL.
  
  The following is invalid XML:
  
  map:generate
  src=http://foo.com?param1=xparam2=yparam3=z/
  
  and the following is not the right URL:
  
  map:generate
 

src=http://foo.com?param1=xamp;param2=yamp;param3=z/
  
  Any ideas?
  
  Thanks,
  -Alex
  
  
 

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

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


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



Re: Problems with Cocoon 2.1 dev (CVS)

2003-03-24 Thread Lars Gieseking
Yes, the problem doesn't seem to be a temporary one.
I recently got a mail from Carsten Ziegeler and he told me
that the CVS version worked fine for him, but he
didn't know where my error came from.
A few months ago it still worked..

I think we're doing something wrong, but i don't know what.

Lars


On Sun, 23 Mar 2003, Michael Riedel wrote:

  today i wanted to build and install the newest
  Cocoon 2.1 dev from CVS. I did it like always (build war),
  but this time the compiled Cocoon didn't work.
 
 I had the same problem, even though a few days already passed. The
 Cocoon-Servlet works, but only deliveres the error-message you mentioned:
 
   Request Processing Failed
 
  Message: Cocoon engine failed in process the request
 
  Description: The processing engine failed to process
  the request. This could be due to lack of matching or
  bugs in the pipeline engine.
 
  Sender: org.apache.cocoon.servlet.CocoonServlet
 
  Source: Cocoon Servlet
 
  Request URI
  request-uri
  /cocoon/
 
  Apache Cocoon 2.1-dev
 
 It is displayed, whenever you request the welcome-page, or any other page
 which should normally apear. If a resource which is not specified in the
 sitemap is requested, another error-message apears. But since it states
 
 Also when I build I get the following error at the end:
 
   validate-xdocs:
   Conducting validation of core XML documentation.
   Validating all **/book.xml instances using RELAX NG ...
   Fatal error: exception java.net.MalformedURLException thrown: no
 protocol: dtd/book-cocoon-v10.dtd
 
   BUILD FAILED
 
 file:///G:/Dokumente%20und%20Einstellungen/Michael/Eigene%20Dateien/WebSites
 /cocoon-2.1/build.xml:835: Validation failed, messages should have been
 provided.
 
 ... but anything else seams to be built correctly. Also when I set
 validate.xdocs=false in local.build.properties, the error does not occur,
 and the build is successfull. So I don't think, the problem lies here.
 
 However, I have no clue what could still be wrong. None of the hints from
 the mail-list worked for me so far. And I've also tried several CVS updates
 by now, so it's not a temporar problem.
 
 -- Michael Riedel
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Problem in converting umlaut characters..

2003-03-24 Thread jaya
Hello,

I am using Cocoon latest version. When I am generating a text file from
XML document using XSL, I got the following problem in Cocoon.

Müller is shown as Müller

I have given the encoding in XML and XSL file properly and I have
generated the same text file in the Command line using Xalan XSLT
processor. I got the text Müller properly.  I am not getting this
while I am using Cocoon.

Could U please tell me whether I have to give any settings in Cocoon for

this Umlaut characters ?

Expecting reply,

Thanks a lot,

Jaya


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



Re: R: database forms

2003-03-24 Thread webmaster
Lorenzo De Sio wrote:
[...]
I built all this about one year and a half ago, and never divulgated it ;-)
because I thought it would be better to build something new related to
XForms (but using XML, not JavaBeans). Though, if you are interested in this
system and wish to use it and help me contribute something new to Cocoon, we
could join our efforts.
[...]

ok, I haven't understood every line you wrote but I think I got the picture.

Though, if you are interested in this
system and wish to use it and help me contribute something new to Cocoon, we
could join our efforts.
ok please send me the files (DTD, XML) and how to use them because you 
are refering to

w4b:... I need to know what that is.

king regards
Thorsten
Stefan, Thorsten,

I actually implemented something similar to what Stefan outlined in its
first e-mail.
It works mainly like this:
system-wide configuration files (one for each relevant DB table) exist in a
central location, containing information about HTML widget rendering and JS
validation of each field; here is an example:
table name=tasks primary-key=task_id check-field=title
field name=task_id/
field name=title caption=Titolo write-style=width:200
validate=nonempty/
field name=priority caption=Priorita'
validate=nonempty, integer validate-min=0 validate-max=10/
field name=insertion_date caption=Data di inserimento
validate=nonempty,date/
field name=expiration_date caption=Data di scadenza
validate=date/
field name=description caption=Descrizione
widget=textarea/
field name=project_id caption=Progetto
select
esql:connection
esql:poolw4b/esql:pool
esql:execute-query
esql:querySELECT * FROM projects
ORDER BY name/esql:query

esql:resultsesql:row-resultsoptionxsp:attribute
name=valueesql:get-int
column=project_id//xsp:attributeesql:get-string
column=name//option
/esql:row-results/esql:results
 /esql:execute-query
/esql:connection
/select
/field
/table
these are XSP files, meaning that i.e. select boxes can be populated
dynamically and even based on current user data (privileges, etc.);
you can design any number of forms which refer to these common configuration
files: simply use in your XSLs a few custom tags such as:
w4b:form name=modulo onSuccess={//@referer}
w4b:row mode=write table=projects
pk-value={project_id}
w4b:field src=project_id
value={project_id}/
w4b:caption src=customer_id/:w4b:field
src=customer_id value={customer_id}/
/w4b:row
/w4b:form

the form can refer any number of rows belonging to different tables
(multiple w4b:row inside a w4b:form).
Such forms require a few transformations (a first XSL one which detects the
tables involved, and adds cinclude's to load the configuration XSP for
each table; the actual CInclude trasnformation; two final XSLs which build
all the HTML rendering and JS validation. Current renderings include text
boxes, selects (with automatic DB-bound option selection), textareas, etc.
The result is a HTML form where every field is named with a
table-pk_value-fieldname combination.
All this, after user modification, can be POSTed to a general-purpose form
processing action, which loads the required configurations from the same
files as above (PK names, etc.), writes everything to the DB, and redirects
to the desired URL (onSuccess above). To achieve more flexibility, nothing
prevents from POSTing to custom actions, one for each form, or to XSPs. The
only thing to keep is the form fields naming convention.
I built all this about one year and a half ago, and never divulgated it ;-)
because I thought it would be better to build something new related to
XForms (but using XML, not JavaBeans). Though, if you are interested in this
system and wish to use it and help me contribute something new to Cocoon, we
could join our efforts.
With my best regards,

L.

-Messaggio originale-
Da: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Inviato: venerdì 21 marzo 2003 13.50
A: [EMAIL PROTECTED]; Stefan Klein
Oggetto: AW: database forms
hi Stephan,

by the way are you in Spain right now?

see my answer below:

-Ursprüngliche Nachricht-
Von: Stefan Klein [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 10:48
An: [EMAIL PROTECTED]
Betreff: Re: database forms
 

Hi Thorsten,

thanks for your reply. I've been pondering about your mail for a little
while now. The xsl looks like a clever idea. A few things remain unclear to
me:
What way do you use 

Re: Antwort: Multiple pdf with one match?

2003-03-24 Thread webmaster
hi Matthias,

that is good way!

Thank you for the tip!

My problem is a little bit different because actually I want to send 
this e.g. 4 files to a printer! That I could not to wirth a zip, or could I?

King regards
Thorsten
Stoeckel, Matthias wrote:

Hi Thorsten,

another solution would be the ZipArchiveSerializer.  If your users have an
zip client you could put all your pdf's into one zip file. This would avoid
a javascript hack. One problem with opening windows (assuming that you use
IE on Windows) is that you can have a maximum of 4 requests per browser. So
you will get serious trouble with timeouts as soon as you have to send more
than 4 pdfs.
Cheers
 Matthias
 

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 14:31
An: Cocoon-Users (E-Mail)
Betreff: Multiple pdf with one match?
Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date 
there should be called 3 different piplines resulting 3 
DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each 
is for one resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.

Any ideas or links or hints?

King regards
Thorsten
   

Mit freundlichem Gruss,

Thorsten Scherler
Marketing / Telefonmarketing
Weidmüller GmbH  Co.
P.O. Box 2807
33058 Paderborn
Tel.:+ 49 - 5252-960-350
Fax:+ 49 - 5252-960-116
eMail: [EMAIL PROTECTED]
http://www.weidmueller.de
 

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

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


 



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


RE: Where is wikiland.

2003-03-24 Thread Derek Hohls
IS this site active?
 
When I try to access  
 http://lOlive.net  
I get:
 
Bad Gateway
The following error occurred: 
A DNS lookup error occurred. (DNS_MISC_ERROR) 
Please contact the administrator. 

 [EMAIL PROTECTED] 24/03/2003 07:48:49 
do you have a demo-site, too?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 24, 2003 11:29 AM
 To: [EMAIL PROTECTED] 
 Cc: [EMAIL PROTECTED] 
 Subject: Where is wikiland.
 
 
 wikiLand is available here:
 http://lOlive.net 
 

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

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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



RE: Where is wikiland.

2003-03-24 Thread Tony Collen
On Tue, 25 Mar 2003, Derek Hohls wrote:

 IS this site active?

 When I try to access
  http://lOlive.net
 I get:

 Bad Gateway
 The following error occurred:
 A DNS lookup error occurred. (DNS_MISC_ERROR)
 Please contact the administrator.


it works for me. it's a redirect to http://rossel.free.fr/ .. that url
should work.

tony


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



Re: Problems with Cocoon 2.1 dev (CVS)

2003-03-24 Thread Mark Eggers
I did a build this morning using jdk1.4.1_02 on Win/2K
and everything worked fine.  I was able to drop the
resulting cocoon.war file into Tomcat 4.1.24 and run
many of the samples.

OK - as well as the CVS has been building since the
move to the new blocks format . . . . I still don't
get all of the samples copied in to the right spots
for the war file or webapp.  Noticably missing are the
script samples (javascript, python, php) even though I
have the appropriate jars in lib/optional and have
added them to my jars.xml file.

However, checking things out this evening produced a
new error.

It seems that concurrent-1.3.1.jar is now a core jar,
but it is not provided during CVS checkout.  Looking
at the jars.xml file, I found that you can download
the source from 

http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html

Since this is a core jar, the build failed.

I guess I'll try building that jar tomorrow, and then
building cocoon to see what happens.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: Where is wikiland.

2003-03-24 Thread Derek Hohls



No - I get this error message after being
redirectedand when accessing the site
directly... [EMAIL PROTECTED] 25/03/2003 08:16:16 
On Tue, 25 Mar 2003, Derek Hohls wrote: IS this site 
active? When I try to access  http://lOlive.net I get: 
Bad Gateway The following error occurred: A DNS lookup error 
occurred. (DNS_MISC_ERROR) Please contact the 
administrator.it works for me. it's a redirect to http://rossel.free.fr/ .. that urlshould 
work.tony-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
commands, e-mail: [EMAIL PROTECTED]-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



Re: Where is wikiland.

2003-03-24 Thread Martin Holz
Hi Derek,

Derek Hohls [EMAIL PROTECTED] writes:

 IS this site active?
  
 When I try to access  
  http://lOlive.net  
 I get:
  
 Bad Gateway
 The following error occurred: 
 A DNS lookup error occurred. (DNS_MISC_ERROR) 
 Please contact the administrator. 
 

It works fine for me. There might be something wrong with your local 
name server. Unfortunately the IP address (212.27.35.39 and a dozen more) 
won't help you,since the server behaves different, if it is called by IP.
Guess, its some kind of name based virtual host. 

--
Martin Holz [EMAIL PROTECTED]

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin 


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



Re: Where is wikiland.

2003-03-24 Thread Tony Collen
On 25 Mar 2003, Martin Holz wrote:

 It works fine for me. There might be something wrong with your local
 name server. Unfortunately the IP address (212.27.35.39 and a dozen more)
 won't help you,since the server behaves different, if it is called by IP.
 Guess, its some kind of name based virtual host.

google to the rescure:

http://216.239.37.100/search?q=cache:4SCIvE8r3UIC:rossel.free.fr/+wikilandhl=enie=UTF-8


tony




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



RE: XMLForm: how to display a text

2003-03-24 Thread Sylvain.Thevoz
Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like paragraph.  Then 
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

Hello,

Is there a way to display a simple text in XMLForm views?

Someting like xf:textmy text/xf:text...



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


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



Re: Where is wikiland.

2003-03-24 Thread Steven Noels
On 25/03/2003 7:06 Derek Hohls wrote:

do you have a demo-site, too?
I've installed it on 
http://cocoon.cocoondev.org/mount/editor/edit/see(wiki)/StartingPoints. 
It looks better than it used too, at the brink of being something 
useful. Olivier, what TextFormattingRules does Radeox support?

(Radeox is the wiki-xhtml rendering engine used in SnipSnap, a very 
cool if somehow weird blog/wiki engine)

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]