Simple example

2003-02-02 Thread Alireza Fattahi
Hi,

The currently cocoon web application is very complex. Is there any light
weight example out there; some thing like blank web application in struts.

Alireza.

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




To the Columbia and her crew.

2003-02-02 Thread Robert Simmons



Words cannot express the sorrow we feel at the loss 
of the Columbia. As scientists ourselves, we feel a kinship to those that died 
200,000 feet above the state of Texas. We should all take a moment to say 
farewell and then to push on with science and exploration so that their deaths 
were not in vain. As we mourn their loss, we should also remember that they all 
died living their childhood dream. It should be some solace that they all 
realized the pinnacle of their aspirations before leaving this world. 


To all of the families involved, words cannot 
express the sorrow we feel for the loss of their loved ones. We would only ask 
that in your moment of grief, you remember not how they died, but how they 
lived. 

-- Robert Simmons jr. 
-- Senior Software Engineer
-- American Living in Munich, 
Germany


Re: [XML EDITOR] Netbeans

2003-02-02 Thread Joerg Heinicke
Hello Antonio,

we use Netbeans in our company for almost every editing. While with Java 
it can be quite slow, the XML editor is really good now. I rarely use 
DTD or schema, so I can't say much on this. But a list with possible 
elements and attributes is given, when starting to write an element or 
an attribute. I'm a hardcore XML programmer, i.e. a simple text editor 
would be enough for me, but I really like the auto-tag-closing feature, 
especially for avoiding syntax errors.

Joerg

Antonio Gallardo wrote:
Is anyone here using netbeans? more info at: http://www.netbeans.org

It looks like netbeans has a built-in powerfull XML editor.

Can someone share his own experience with this?

Regards,

Antonio Gallardo



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Logger category control

2003-02-02 Thread Christopher Watson
Hi All,

I'd like to control the target/catgory of some logging at the level of a
map:match, 
or alternatively, change the target/catgory within a bit of xsp.

The most 'atomic' I've managed to control the target it is at
map:generator level for the whole (sub)sitemap.

I've tried changing logger with log:logger/ but looking at the
logicsheet log.xsl, if there's a logger already, then it won't
'override' it.

Can anyone offer any advice?

Thanks,

Christopher


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [XML EDITOR] Netbeans

2003-02-02 Thread Robert Simmons
I use NetBeans. It has a good XML editor built into it but it would do well
to add a WYSIWYG XSLT editor. So you can go write it. =)

-- Robert

- Original Message -
From: Antonio Gallardo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 02, 2003 2:47 AM
Subject: [XML EDITOR] Netbeans


 Is anyone here using netbeans? more info at: http://www.netbeans.org

 It looks like netbeans has a built-in powerfull XML editor.

 Can someone share his own experience with this?

 Regards,

 Antonio Gallardo



 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Bert Van Kets
1.3.1_06 on Win2K

At 01:54 2/02/2003 -0600, you wrote:

1.4.1_01 on Linux

Antonio Gallardo

Litrik De Roy dijo:
 1.3

 Litrik De Roy
 www.litrik.com


 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: Cocoon Users [EMAIL PROTECTED]
 Cc: Cocoon Developers [EMAIL PROTECTED]
 Sent: Saturday, February 01, 2003 8:06 PM
 Subject: [POLL] JDK 1.2 Support


 Hi all:

 To better understand how you are using Cocoon product and serve your
 needs better ;-)
 Cocoon developers would like to know how many of our currect users are
  deploying Cocoon on JDK 1.2 and why they did not switch to JDK1.3 (or
  better).

 This information will help Cocoon developers community to decide on
 wether we should switch to JDK1.3 or continue JDK1.2 support for some
 more time. Thanks for the feedback :)

 Vadim


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Sitemap Tag Reference

2003-02-02 Thread Steven Noels
Robert Simmons wrote:


Is there a reference manual to the sitemap schema and tags ? If you, I 
would appreciate a link.

not really, but there are some XML grammars in CVS:

 - src\documentation\xdocs\drafts\sitemap-2.1-draft.xsd
 - src\webapp\WEB-INF\entities\sitemap-v06.rng

That's for HEAD. For the 2.0.* series, I do not know of anything more 
authorative than our poster version at 
http://outerthought.net/downloads/sitemap.pdf

/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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Steven Cummings
1.4.0 and 1.4.1 on WindowsXP and Linux (both JDK's tested on both OS's).

Bert Van Kets [EMAIL PROTECTED] wrote:

1.3.1_06 on Win2K

At 01:54 2/02/2003 -0600, you wrote:
1.4.1_01 on Linux

Antonio Gallardo

Litrik De Roy dijo:
  1.3
 
  Litrik De Roy
  www.litrik.com
 
 
  - Original Message -
  From: Vadim Gritsenko [EMAIL PROTECTED]
  To: Cocoon Users [EMAIL PROTECTED]
  Cc: Cocoon Developers [EMAIL PROTECTED]
  Sent: Saturday, February 01, 2003 8:06 PM
  Subject: [POLL] JDK 1.2 Support
 
 
  Hi all:
 
  To better understand how you are using Cocoon product and serve your
  needs better ;-)
  Cocoon developers would like to know how many of our currect users are
   deploying Cocoon on JDK 1.2 and why they did not switch to JDK1.3 (or
   better).
 
  This information will help Cocoon developers community to decide on
  wether we should switch to JDK1.3 or continue JDK1.2 support for some
  more time. Thanks for the feedback :)
 
  Vadim
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




SourceWritingTransformer and redirect

2003-02-02 Thread Beat De Martin
Hi folks
Is it possible to use SourceWritingTransformer and then a redirect. Like
this:
...
map:transformer name=filewriter
src=org.apache.cocoon.transformation.SourceWritingTransformer/
...
map:match pattern=bestellunguebermittlung.html
map:act type=controller
  map:generate type=serverpages src=xml/bestellung_pdf.xml/
  map:transform src=xsl/bestellung_fo.xsl/
  map:transform type=filewriter
   map:parameter name=serializer value=fo2pdf/
  /map:transform
  map:transform src=xsl/lieferadresse.xsl/
  map:serialize type=xml/
  !-- this works but SourceWritingTransformer does NOT write the file --
  !-- map:redirect-to uri=realbestellunguebermittlung.html/--
/map:act
map:redirect-to uri=logout.html/
/map:match


With map:serialize type=xml/ it works, but when I use redirect, the file
is not written. The redirect itself works.
Any suggestions ?

Cheers
Beat De Martin

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: SourceWritingTransformer and redirect

2003-02-02 Thread Beat De Martin
I guess a serializer is mandatory in a pipeline.
What I did now, I used a aggregation. One map:part just writes the files and
the other one prepares the html which I want to send to the client.

map:match pattern=bestellung
 map:generate type=serverpages src=xml/bestellung.xml/
  map:serialize type=xml/
/map:match
map:match pattern=bestellungmail
  map:generate type=serverpages src=xml/bestellung_pdf.xml/
  map:transform src=xsl/bestellung_fo.xsl/
  map:transform type=filewriter
   map:parameter name=serializer value=fo2pdf/
  /map:transform
map:serialize type=xml/
/map:match

map:match pattern=bestellunguebermittlung.html
 map:act type=controller
  map:aggregate element=page
   map:part src=cocoon:/bestellung strip-root=true/
   map:part src=cocoon:/bestellungmail strip-root=true/
 /map:aggregate
map:transform src=xsl/bestellunguebermittlung.xsl/
map:serialize type=html/
/map:act
map:redirect-to uri=logout.html/
/map:match




 Hi folks
 Is it possible to use SourceWritingTransformer and then a redirect. Like
 this:
 ...
 map:transformer name=filewriter
 src=org.apache.cocoon.transformation.SourceWritingTransformer/
 ...
 map:match pattern=bestellunguebermittlung.html
 map:act type=controller
   map:generate type=serverpages src=xml/bestellung_pdf.xml/
   map:transform src=xsl/bestellung_fo.xsl/
   map:transform type=filewriter
map:parameter name=serializer value=fo2pdf/
   /map:transform
   map:transform src=xsl/lieferadresse.xsl/
   map:serialize type=xml/
   !-- this works but SourceWritingTransformer does NOT write the file --
   !-- map:redirect-to uri=realbestellunguebermittlung.html/--
 /map:act
 map:redirect-to uri=logout.html/
 /map:match
 
 
 With map:serialize type=xml/ it works, but when I use redirect, the
 file
 is not written. The redirect itself works.
 Any suggestions ?
 
 Cheers
 Beat De Martin
 
 -- 
 +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
 NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Cocoon and MySQL

2003-02-02 Thread Richard Cunliffe








(I have attached my cocoon and tomcat logs as Zip
files)





Hi,



 MS
Windows XP

 Apache
 2.0.43

 Tomcat 4.0.6

 Cocoon 2.0.4

 JDK 1.3.1_06

 MySQL 3.23.55

 JDBC 2.0.14





I am trying to connect to a MySQL database and have
followed the instructions provided by Flash Guides and Wiki, but cocoon does
not start-up after I edit the cocoon.xconf. If I comment out the inserted code,
and restart tomcat then cocoon will load.



I have download the JDBC file: mysql-connector-java-2.0.14.jar
and have put it in the following directories:



 C:\tomcat\webapps\cocoon\WEB-INF\lib\mysql-connector-java-2.0.14-bin.jar

 C:\tomcat\lib\mysql-connector-java-2.0.14-bin.jar







The relevant part of web.xml looks like this:





 init-param

 param-nameload-class/param-name

 param-value

 !--
For MySQL Driver: --

 com.mysql.jdbc.Driver

 !--
For Database Driver: --


 org.hsqldb.jdbcDriver




!-- For parent ComponentManager sample:


org.apache.cocoon.samples.parentcm.Configurator


--

 /param-value

 /init-param











The relevant part of cocoon.xconf looks like so:





 !-- Datasources:
--

 datasources

 jdbc
logger=core.datasources.personnel name=personnel


!--


If you have an Oracle database, and are using the the


pool-controller below, you should add the attribute


oradb and set it to true.




pool-controller min=5 max=10 oradb=true/




That way the test to see if the server has disconnected


the JdbcConnection will function properly.


--


pool-controller max=10 min=5/


!--


If you need to ensure an autocommit is set to true or


false, then create the auto-commit element below.




auto-commitfalse/auto-commit




The default is true.


--


dburljdbc:hsqldb:hsql://localhost:9002/dburl


usersa/user


password/

 

 jdbc
name=personnel

 pool-controller
min=5 max=10/

 auto-committrue/auto-commit

 dburljdbc:mysql://192.168.44.21:3306/soundpool/dbrul

 userr_cunliffe/user

 password/password

 /jdbc





 /jdbc

 /datasources







The following line I was unsure about:



dburljdbc:mysql://192.168.44.21:3306/dbrul



I got the localhost address from MySQL Admin 
Im not sure if this is right? I uncommented these items from the my.ini file.



I am also not sure about jdbc name = .
I have tried researching this but Im still unsure.







On the Flash Guide it suggested that I should delete
the following directory, which I have done:



C:\tomcat\work\Standalone\localhost\cocoon



But it recreates itself.



What can you suggest? Is there anything on the MySQL
side I should be checking?







Thanks,



Richard.














cocoon_logs.zip
Description: Zip compressed data


tomcat_logs.zip
Description: Zip compressed data
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Emmanuil Batsis (Manos)
 Usually our production machines run 1.4.x on Linux, Solaris and Windows.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Christoph Gaffga
Ours also,
Java 1.4.1_01 on Linux (Redhat 7.3)

Christoph Gaffga
http://www.triplemind.com


- Original Message -
From: Emmanuil Batsis (Manos) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 02, 2003 11:16 PM
Subject: Re: [POLL] JDK 1.2 Support


   Usually our production machines run 1.4.x on Linux, Solaris and Windows.


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Heiko Milke
using 1.3.1 and above



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: Cocoon and MySQL

2003-02-02 Thread Marco Rolappe
hi richard,

first point: don't be afraid to look at the logs yourself ;-) most of the
time they'll reveal what's going wrong. for example in the error.log you
attached:

ERROR   (2003-02-02) 22:45.52:747   [core] (Unknown-URI)
Unknown-thread/Cocoon: Could not configure Cocoon environment
org.xml.sax.SAXParseException: The element type dburl must be terminated
by the matching end-tag /dburl.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.ja
va:213)
...

looking at the following:

 The following line I was unsure about:

 dburljdbc:mysql://192.168.44.21:3306/dbrul
  ^^^ this one's wrong ;-)

ok, next point:

 I got the localhost address from MySQL Admin - I'm not sure if this is
right? I uncommented these items from the my.ini file.

you can just use 'localhost' (assuming the db is running on the same
machine).

 I am also not sure about jdbc name = .  I have tried researching this
but I'm still unsure.

you can name the datasource as you wish, e.g.:

jdbc name=emotion
pool-controller max=10 min=5/
auto-committrue/auto-commit
dburljdbc:mysql://localhost/soundpool/dbrul !-- mysql
database soundpool must exist --
userr_cunliffe/user !-- mysql user r_cunliffe must
exist --
password/password
/jdbc

of course, the data given in this configuration must correspond to your
database configuration. in the dburl you can leave out the port if you're
using the standard.

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag
von Richard Cunliffe
Gesendet: Sonntag, 2. Februar 2003 23:52
An: [EMAIL PROTECTED]
Betreff: Cocoon and MySQL


(I have attached my cocoon and tomcat logs as Zip files)


Hi,

MS Windows  XP
Apache  2.0.43
Tomcat 4.0.6
Cocoon  2.0.4
JDK   1.3.1_06
MySQL  3.23.55
JDBC 2.0.14


I am trying to connect to a MySQL database and have followed the
instructions provided by Flash Guides and Wiki, but cocoon does not start-up
after I edit the cocoon.xconf. If I comment out the inserted code, and
restart tomcat then cocoon will load.

I have download the JDBC file: mysql-connector-java-2.0.14.jar and have put
it in the following directories:


C:\tomcat\webapps\cocoon\WEB-INF\lib\mysql-connector-java-2.0.14-bin.jar
  C:\tomcat\lib\mysql-connector-java-2.0.14-bin.jar



The relevant part of web.xml looks like this:


 init-param
param-nameload-class/param-name
param-value
  !-- For MySQL Driver: --
com.mysql.jdbc.Driver
!-- For Database Driver: --
 org.hsqldb.jdbcDriver

!-- For parent ComponentManager sample:
org.apache.cocoon.samples.parentcm.Configurator
--
/param-value
/init-param





The relevant part of cocoon.xconf looks like so:


  !-- Datasources: --
  datasources
jdbc logger=core.datasources.personnel name=personnel
  !--
  If you have an Oracle database, and are using the the
  pool-controller below, you should add the attribute
  oradb and set it to true.

  pool-controller min=5 max=10 oradb=true/

  That way the test to see if the server has disconnected
  the JdbcConnection will function properly.
  --
  pool-controller max=10 min=5/
  !--
  If you need to ensure an autocommit is set to true or
  false, then create the auto-commit element below.

  auto-commitfalse/auto-commit

  The default is true.
  --
  dburljdbc:hsqldb:hsql://localhost:9002/dburl
  usersa/user
  password/

  jdbc name=personnel
pool-controller min=5 max=10/
auto-committrue/auto-commit
dburljdbc:mysql://192.168.44.21:3306/soundpool/dbrul
userr_cunliffe/user
password/password
  /jdbc


  /jdbc
  /datasources



The following line I was unsure about:

dburljdbc:mysql://192.168.44.21:3306/dbrul

I got the localhost address from MySQL Admin - I'm not sure if this is
right? I uncommented these items from the my.ini file.

I am also not sure about jdbc name = .  I have tried researching this
but I'm still unsure.



On the Flash Guide it suggested that I should delete the following
directory, which I have done:

C:\tomcat\work\Standalone\localhost\cocoon

But it recreates itself.

What can you suggest? Is there anything on the MySQL side I should be
checking?



Thanks,

Richard.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To 

Re: [POLL] JDK 1.2 Support

2003-02-02 Thread Gary Rambo
1.4.1_01, linux

Thanks for asking.

Vadim Gritsenko wrote:

Hi all:

To better understand how you are using Cocoon product and serve your 
needs better ;-)
Cocoon developers would like to know how many of our currect users are 
deploying Cocoon on JDK 1.2 and why they did not switch to JDK1.3 (or 
better).

This information will help Cocoon developers community to decide on 
wether we should switch to JDK1.3 or continue JDK1.2 support for some 
more time. Thanks for the feedback :)

Vadim


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-02-02 Thread Andrew Timberlake
Thorsten

On Sun, 2003-02-02 at 05:27, Thorsten Scherler wrote:
 Hello Andrew,
 
 how is weather in SA? Here in Germany it is snowing!
Here it is hotter than I have experienced for many years.

What problem are you still experiencing?
The code you included produced the following results when run with the
querystring date=01.02.2003

document
   request01.02.2003/request
   transformedSat Feb 01 00:00:00 SAST 2003/transformed
   static31.01.2002/static
/document

-- 
Andrew

I have never let my schooling interfere with my education.
--Mark Twain


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




XSP TransformCustomDate [was: Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?]

2003-02-02 Thread Scherler, Thorsten
Hello everyone,

after all the help I received from you I wrote a little How-to about transforming a 
custom date string to a valid Java Date object.

Please have a look at http://wiki.cocoondev.org/Wiki.jsp?page=XSPTransformCustomDate.

It is more or less the conclusion off the thread xsp-element equivalent to 
xsl:param? and some other that I have posted in regards to the topic.
I would like to thank especially Andrew Timberlake for being so patient.

Hope that will cut down developing time for you ;-).

King regards


 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
 
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: mapping to basepath in static content

2003-02-02 Thread Murad Jura
Hello Robert,

see the AugmentTransformer's startElement() method. You can extends this 
class and modify the 'if (attrName.equals(href)) {' string to add your 
attributes (src/value/action).

Regards,
Murad Jura.

Robert Sösemann wrote:
Yes, thank you, it's better than nothing. But I need to replace URL in scr,
value, action ... attributes as well. Sometimes even in javascript commands.
I tried to write my own xsl, but then it really gets very slow.

Any idea.

Robert
- Original Message -
From: Murad Jura [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 1:15 PM
Subject: Re: mapping to basepath in static content




Hello Robert,

there is the AugmentTransformer which augments all 'href' attributes
with the full path to the request. IMHO it is a good starting point for


you.


Regards,
Murad Jura.

Robert Sösemann wrote:


Hello,

what I need is a centralized mechanism to change the paths in all my
site-elements. (that means: Later when I switsch from development to
production I just want to change pathname at one single point, not every
single href, src ...)

Inside elements handled by cocoon (XSP, Generators, Action) thats no
problem, because they know their own context. Things I later add in my
Transformers are also no problem. I use xsl:include to set a variable in
very other xsl.

BUT: I also use static html or xhtml pages. How can change path



attributes


an even javascript command in a similar centralized way?

Who can help? Maybe I am on a totally wrong way.

Rob



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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