RE: I18n

2001-12-04 Thread Gustav Lidén

Hi Marcus,

Thanks for your quick response!

Actually, I have no problem with the language grouping of strings. However,
for large sites, the message file can tend to grow quite large even for only
one language. This will tend to make handling unpractical, for example
checking uniqueness of all keys.

   Other than that, we'd probably need to look at some code
 changes, I'm
   open to suggestions ? :-)


Ok, I'll try a quick suggestion: How about the ability to override the
catalog's name and location at transformation time? Something that would
look more like the old sitemap entry:

map:transform type=i18n
map:parameter name=catalogue-name value={../1}_sectionmenu_dict.xml/
map:parameter name=catalogue-location
value=other_translations//map:transform

The catalogue-location parameter is there only for the sake of consequence,
catalogue-name is the parameter that would be useful to change in the
pipeline.

Cheers,

Gustav


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

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




Re: Caching

2001-12-04 Thread Nicola Ken Barozzi


- Original Message -
From: Roberto Lo Giacco [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 9:13 PM
Subject: Caching


 Hello all,
 I'm not registered on this list, so I hope the system will accept my email
 and you'll answer me not just on the mailing list..
 My problem is to provide an easy and powerfull way to separate wedmaster,
 webdesigner and content provider roles for my company website. We wish to
 have one style for the entire site and give to the content providers a
 limited control over the web pages style.
 I supposed cocoon 2 was the solution to our problem so I downloaded and
 started it, but I experienced a very slow response even for the cocoon
 documentation which doesn't have dynamic contents.
 My question is: does cocoon2 generate HTML files if all the contents in
the
 processing pipeline are static or does it generate the content everytime
 it's requested? In the latter case cocoon2 doesn't solve my problem
because
 I need to dinamically regenerate static contents, like an HTML page from
an
 XML document which will be updated once a week or once a month...

Cocoon2 was made also with this in mind.
You can execute Cocoon from the command line and have it create the site
statically.
Look at the docs-faqs for this.


Nicola Ken Barozzi These are the days of miracle and wonder...
   ...so don't cry baby, don't cry
[EMAIL PROTECTED] Paul Simon

 Thanx in advance,
Roberto Lo Giacco

 P.S.
 I read the documentation about caching and checked if caching is active
and
 it seems it is active by default: I have changed nothing in the
 configuration file...


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

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




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

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




Re: Setup Cocoon in Win2k Box stuck...!

2001-12-04 Thread Christian Schmitt

Hi,
take a look at all the available log files.
For Tomcat logs look at $TOMCAT_HOME/logs
For Cocoon related log files take a look under 
$TOMCAT_HOME/webapps/cocoon/WEB-INF/logs

Hth,
Christian


On Mon, Dec 03, 2001 at 05:51:06PM -0800, low kok leong wrote:
 i try to follow the instruction given  by building the
 war file the restart my tomcat 4.0.1 but when i access
 the http://localhost:8080/cocoon it give me this...
 
 Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet
 Cocoon2 is currently unavailable
 
 type Status report
 
 message Servlet Cocoon2 is currently unavailable
 
 description The requested service (Servlet Cocoon2 is
 currently unavailable) is not currently available.
 
 
 So i am tring to figure it out what is wrong...i check
 thru the document...but none say this error...
 can anyone help...?
 
 
 =
 Low Kok Leong
 Software Engineer 
 Multimedia Prospect Sdn Bhd
 012-4257312
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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

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




MS SQL Server JDBC and Cocoon Connection Pool

2001-12-04 Thread Schroeter Christian

Hi,

i think about (..ok...i am forced to think about) to use the 
MS-SQL-Server.
Surprisingly i didnt find any post in this mailinglist which deals with this 
challenge.
So my questions:
How do i connect to this MS-Sql-Server by using JDBC and the Cocoon 
Connection Pool (Cocoon 1.8.2)...ok...

processor.xsp.pool.database.default.driver=???
processor.xsp.pool.database.default.url=???

processor.xsp.pool.database.adaptor.DBMSSqlServer=???


Which port is MSSqlServer using?

In addition it was give this link to me: 
http://www.microsoft.com/sql/downloads/2000/jdbc.asp


Cu,
Christian

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

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




Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread Hubert NEOtyk Iwaniuk

If my question is somehow incomplite or unclear, tell me what is
wrong with it.

It is very important to me to know why it is not working.

help, help,

hubert.

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

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




Calling C2 from command line: problem with Oracle driver

2001-12-04 Thread Christoph . Oberle

Hello,

I'm working with Cocoon2.0-rc1a and Tomcat 3.2.3 on a Linux-Server.
With Tomcat everything is fine, but yesterday I tried to call Cocoon from the
command line.
I did not find any documentation on command line parameters and options, only
the definition of
COCOON_LIB and COCOON_WORK environment variables in run.sh.
After some hours my Cocoon command line environment nearly works, but there is a
problem left:

I can not get the Oracle JDBC (thin) driver to work. I think it has do do with
the missing initialization of the JDBC driver class.

When Cocoon is called from Tomcat, there is a configuration file called web.xml
in the WEB-INF directory, where the initial parameters - like load-class - are
defined.

What is the right way to specify these settings for command line execution?

Many thanks in advance
Christoph

PS: How can I specify directories, like the application directory, which is
assumed to be ./webapp etc.



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

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




Help Me fop in Cocoon2 !!! embedded font Problem

2001-12-04 Thread

I made a successful test that FOP was generated a pdf file consisted of Korean.
But, I could not make a pdf consisted of Korean with C2.

Though FOP generate a pdf file using embed fonts, C2 seems to generate a pdf without 
embed fonts.

I'd like to know if what I said is right.
And If C2 can use embed fonts like Korean, Let me know how C2 uses embed fonts.
If possible, Let me take a example.

Regards.


ps.I attached  a log what I made a test below.

1.Shell script with FOP
-generating metrics file using Korean ttf.
-writing a user config file
-making successfully a Korean pdf file with fop-0_20_1-dev.jar of C2.

2.Web browser with C2.
-error that was made an unrecognized pdf file included Korean, when the server with 
the environment described above was accessed.


Re: MS SQL Server JDBC and Cocoon Connection Pool

2001-12-04 Thread Marty McClelland

I am using MS SQL Server with C1.8.2 - but I am not using the connection
pooling feature.  At the Microsoft site - I was able to download the 3 jars
to support jdbc and put them in the tomcat lib.  Microsoft also provided a
fairly lenghty document with examples of the jdbc connection including the
port used.  The format Microsoft used for specifying the database name in
the URL was a little different from what I was familar with - but once I
followed the documentation - everything worked like a charm.

marty
- Original Message -
From: Schroeter Christian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:56 AM
Subject: MS SQL Server JDBC and Cocoon Connection Pool


Hi,

i think about (..ok...i am forced to think about) to use the
MS-SQL-Server.
Surprisingly i didnt find any post in this mailinglist which deals with this
challenge.
So my questions:
How do i connect to this MS-Sql-Server by using JDBC and the Cocoon
Connection Pool (Cocoon 1.8.2)...ok...

processor.xsp.pool.database.default.driver=???
processor.xsp.pool.database.default.url=???

processor.xsp.pool.database.adaptor.DBMSSqlServer=???


Which port is MSSqlServer using?

In addition it was give this link to me:
http://www.microsoft.com/sql/downloads/2000/jdbc.asp


Cu,
Christian

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

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




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

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




[C2.0] Fatal Error when trying to use SVG

2001-12-04 Thread Adrian Geissel



Hi,

I'm running Cocoon 2.0 (Final Release) on Tomcat 
3.2 on Windows NT 4.0 SP5.

I get the message "Fatal Error: No usable fonts 
found." when accessing the Cocoon SVG sample link (of the main sample page), and 
Tomcat dumps with "Java Result: 1".

I have attached the cocoon.log from this session, 
but am unable to locate any hints as to what happened.

Has anyone else experienced a similar problem? 

Many thanks,
Adrian



cocoon.log.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/faqs.html

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


RE: Help Me fop in Cocoon2 !!! embedded font Problem

2001-12-04 Thread Morrison, John

Search the docs for fop and fonts.  It _is_ possible.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 04 December 2001 12:26 pm
 To: cocoon-users
 Subject: Help Me fop in Cocoon2 !!! embedded font Problem
 
 
 I made a successful test that FOP was generated a pdf file 
 consisted of Korean.
 But, I could not make a pdf consisted of Korean with C2.
 
 Though FOP generate a pdf file using embed fonts, C2 seems to 
 generate a pdf without embed fonts.
 
 I'd like to know if what I said is right.
 And If C2 can use embed fonts like Korean, Let me know how C2 
 uses embed fonts.
 If possible, Let me take a example.
 
 Regards.
 
 
 ps.I attached  a log what I made a test below.
 
 1.Shell script with FOP
 -generating metrics file using Korean ttf.
 -writing a user config file
 -making successfully a Korean pdf file with fop-0_20_1-dev.jar of C2.
 
 2.Web browser with C2.
 -error that was made an unrecognized pdf file included 
 Korean, when the server with the environment described above 
 was accessed.
 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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

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




RE: Calling C2 from command line: problem with Oracle driver

2001-12-04 Thread SANSONE, AARON M [Non-Pharmacia/1000]

Hi Christoph,

To get oracle working, you must first add a section to load the oracle
driver class in the web.xml file. Be certain that the Oracle driver Jar file
is in your servlet engine's classpath.

web-app
servlet
servlet-nameCocoon2/servlet-name
init-param
param-nameload-class/param-name
param-value
oracle.jdbc.driver.OracleDriver
/param-value
/init-param
...
/servlet
/web-app

Then in the cocoon.xconf configuration file you must specify a datasource
such as:

  datasources
jdbc name=mydata
  pool-controller min=5 max=10 oradb=true/
  dburljdbc:oracle:thin:@myserver.mydomain.com:1521:myInstance/dburl
  userscott/user
  passwordtiger/password
/jdbc
  /datasources


Finally, you can either use the connection in an XSP page or pass a Query in
XML to the SQL transformer as part of a pipeline in your sitemap:

map:transform type=sql
map:parameter name=use-connection value=fp/
map:parameter name=show-nr-of-rows
value=false/
/map:transform


HTH,
Aaron


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 6:14 AM
To: [EMAIL PROTECTED]
Subject: Calling C2 from command line: problem with Oracle driver


Hello,

I'm working with Cocoon2.0-rc1a and Tomcat 3.2.3 on a Linux-Server.
With Tomcat everything is fine, but yesterday I tried to call Cocoon from
the
command line.
I did not find any documentation on command line parameters and options,
only
the definition of
COCOON_LIB and COCOON_WORK environment variables in run.sh.
After some hours my Cocoon command line environment nearly works, but there
is a
problem left:

I can not get the Oracle JDBC (thin) driver to work. I think it has do do
with
the missing initialization of the JDBC driver class.

When Cocoon is called from Tomcat, there is a configuration file called
web.xml
in the WEB-INF directory, where the initial parameters - like load-class -
are
defined.

What is the right way to specify these settings for command line execution?

Many thanks in advance
Christoph

PS: How can I specify directories, like the application directory, which is
assumed to be ./webapp etc.



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

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

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

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




AW: param-nameextra-classpath

2001-12-04 Thread Ulli Hoffmann


tx, but that doesn't help in cases of EJBs (cocoon/tomcat/jboss). They have
to be deployed as an ear file and cocoon needs to know where the jars are.
I can't put the ear file into WEB-INF/lib and then deploy the cocoon.war.
On the other hand, putting cocoon.war into the ear, cocoon again doesn't
find the jars.

So far I haven't found any examples where EJBs have been used with cocoon
and a scenario sufficiently explained. Is that such a rare architecture?

Ulli

-Ursprüngliche Nachricht-
Von: SANSONE, AARON M [Non-Pharmacia/1000]
[mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 19:29
An: '[EMAIL PROTECTED]'
Betreff: RE: param-nameextra-classpath


Ulli,

Just place any necessary jar files in your WEB-INF/lib directory.  Your
servlet engine should pick it up if it is 2.2 compliant.

HTH,
Aaron

-Original Message-
From: Ulli Hoffmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 5:06 AM
To: [EMAIL PROTECTED]
Subject: param-nameextra-classpath


Hi,

in order to specify additional directories or jars which Cocoon should put
into it's own classpath I use the parameter 'extra-classpath'. The jar to be
used is

E:\jboss-tomcat\jboss-2.1\deploy\servEjb.jar

However neither

param-valueWEB-INF/extra-classes1:E:\jboss-tomcat\jboss-2.1\deploy\servEjb
.jar/param-value
or
param-valueWEB-INF/extra-classes1:..\deploy\servEjb.jar/param-value

seems to work. Any idea how it get to work?

Regards,
Ulli



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

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

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

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


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

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




Cocoon 2.0 and TOMCAT 3.3 installation

2001-12-04 Thread LEBRETON Philippe

does sombody installed Cocoon 2.0 under TOMCAT 3.0?

I have somme problem :
1 - cocoon can't find hte jdk tools.jar (tomcat find it)

2 - all xml file don't work : my browser say not data for this page

Have somebody a idea

Philippe LEBRETON




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

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




Saxon Integration (Newbie)

2001-12-04 Thread Luke Studley








Hi all



I've just started using C2 and am having some
difficulties getting saxon
(6.5) to work. I have a simple XML page and a single stylesheet,
I have this working with the default Xalan processor -
but when I plug in Saxon (by placing it in the WEB-INF/lib directory and
declaring it in the cocoon.xconf) I get the following
errors (and lots of others like it) in components.log.



Does anybody know of any incompatibilities with the built in
stylesheets and saxon
6.5.? Or what else I may be doing wrong?

Thanks

Luke





ERROR (2001-12-04) 14:47.35:960 [root.xsl]
(/webcare/web/overview.html)
HttpProcessor[8080][4]/TraxErrorHandler: Error
in TraxTransformer:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line 17; Column -1; 

;
SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 17; Column#: -1

javax.xml.transform.TransformerConfigurationException:
Attribute xmlns:xsl is not
allowed on this element

 at com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846)

 at com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208)

 at com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)

 at com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:501)

 at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)

 at com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176)

 at com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70)

 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:190)

 at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:144)

 at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaces(Logicsheet.java:126)

 at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:350)

 at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:510)

 at org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368)

 at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)

 at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211)

 at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

 at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)

 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171)

 at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

 at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

 at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

 at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130)

 at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275)

 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309)

 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)

 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:221)

 at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)

 at java.lang.Thread.run(Thread.java:484)

ERROR (2001-12-04) 14:47.35:960 [root.xsl]
(/webcare/web/overview.html)
HttpProcessor[8080][4]/TraxErrorHandler: Error
in TraxTransformer:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line 17; Column -1; 

;
SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 17; Column#: -1

javax.xml.transform.TransformerConfigurationException:
Attribute xmlns:map is not
allowed on this element

 at com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846)

 at com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208)

 at com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)

 at com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:501)

 at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)


RE: Saxon Integration (Newbie)

2001-12-04 Thread Luke Studley








Think I've found a couple of problems
in the sitemap.xsl file



Line 430


XSLTFactoryLoader:hasSubstitutions(@pattern)

should maybe read:

XSLTFactoryLoader:hasSubstitutions($factory-loader, @pattern)





Line 921


XSLTFactoryLoader:escape($pattern-value)

should maybe read:

XSLTFactoryLoader:escape($factory-loader,
$pattern-value)





Making these changes I can manually run
the stylesheet against my sitemap - I am
guessing that maybe Xalan is less fussy about the
missing java objects (although I don't know how!). Haven't tried re-creating
the jar and re-trying C2 yet though.



Can somebody tell me if these are C2 bugs -
or are they there for a reason - or am I seeing some differences in usage
of Saxon and Xalan?



More generally - if they are bugs -
who should I submit changes to - or should I make changes myself somehow
(I'm not averse to making the changes myself in CVS - but have
never contributed directly to an Open Source project before so don't know
the procedure/etiquette etc.)



Sorry if these are repetitive questions -
I couldn't search the archives as the disks were down and I only started
using Cocoon (and joined the list) yesterday.



Thanks



Luke











-Original Message-
From: Luke Studley
[mailto:[EMAIL PROTECTED]] 
Sent: 04 December 2001 14:52
To: '[EMAIL PROTECTED]'
Subject: Saxon Integration
(Newbie)



Hi all



I've just started using C2 and am
having some difficulties getting saxon (6.5) to work. I have a simple XML page
and a single stylesheet, I have this working with the default Xalan processor -
but when I plug in Saxon (by placing it in the WEB-INF/lib directory and
declaring it in the cocoon.xconf) I get the following errors (and lots of
others like it) in components.log.



Does anybody know of any
incompatibilities with the built in stylesheets and saxon 6.5.? Or what else I
may be doing wrong?

Thanks

Luke





ERROR (2001-12-04) 14:47.35:960 [root.xsl] (/webcare/web/overview.html)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line 17; Column -1; 

; SystemID:
jar:file:/C:/Installations/jakarta-tomcat-4.0.1/webapps/webcare/WEB-INF/lib/cocoon-2.0.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line#: 17; Column#: -1

javax.xml.transform.TransformerConfigurationException:
Attribute xmlns:xsl is not allowed on this element

 at
com.icl.saxon.style.StyleElement.compileError(StyleElement.java:846)

 at
com.icl.saxon.style.StyleElement.checkUnknownAttribute(StyleElement.java:208)

 at
com.icl.saxon.style.XSLStyleSheet.prepareAttributes(XSLStyleSheet.java:287)

 at
com.icl.saxon.style.XSLStyleSheet.processAllAttributes(XSLStyleSheet.java:501)

 at
com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:351)

 at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176)

 at
com.icl.saxon.TemplatesHandlerImpl.getTemplates(TemplatesHandlerImpl.java:70)

 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:190)

 at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:144)

 at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaces(Logicsheet.java:126)

 at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:350)

 at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:510)

 at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368)

 at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575)

 at
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211)

 at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

 at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)

 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171)

 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

 at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

 at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

 at
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)

 at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130)

 at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275)

 at

RE: Cocoon's capacity

2001-12-04 Thread Lai, Harry

Hi Lily,

This is actually a limitation in Java, not Cocoon.  Basically, you can't
have a Java method that's more than 65535 bytes
(http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#8
8659).

I'm a Cocoon newbie, but I think there's probably a way to pull some of your
code out into other methods, which would get you around this issue (unless
this is actually happening in the code generation process).  Could someone
else who knows more about Cocoon address this?  Thanks!

Harry

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:53 PM
To: [EMAIL PROTECTED]
Subject: Cocoon's capacity


I use cocoon1.8.2 and I have a large xml file needed to process. THis is the
error I got from cocoon:  
java.lang.ClassFormatError: Code of a method longer than 65535 bytes
at java.lang.ClassLoader.defineClass0(Native Method) at
java.lang.ClassLoader.defineClass(ClassLoader.java:486) at
java.lang.ClassLoader.defineClass(ClassLoader.java:426) ...
It seems my file is too huge to be processed. Is there anyone who knows how
to modify or if we are able to modify the capacity of cocoon ?
Thanks in advance.


Lily  Zou
REDKNEE Inc.
Phone (905)-625-2962
Email  [EMAIL PROTECTED]




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

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

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

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




Re: Coconn-EJB application build

2001-12-04 Thread Piroumian, Konstantin

 Hi,

 I'm migrating from Tomcat/Jboss to Cocoon2/Tomcat/Jboss and need some data
 on how the packaged application would look like.

 Currently the app.ear consists of:
 app.war
 appEjb.jar
 application.xml
 sun-j2ee-ri.xml
 Manifest.mf

 Now I'm wondering what has to be included in cocoon.war? Do I have to move
 the complete app.war to cocoon/webapp and modify application.xml and
 sun-j2ee-ri.xml accordingly to include cocoon.war instead of app.war?

You can create a needed cocoon web application, add your own staff then call
it app.war.


 Any experience out there?

 Regards,
 Ulli



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

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


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

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




Re: [c2] Please help: howto use ESQL inside own logicsheets?

2001-12-04 Thread Hubert NEOtyk Iwaniuk

C2 users, 
please help.

i send my files that makes me file confiused.

i don't knoe why it's now working.

fp is pooled connection and it works. tables are ok.
sql is ok too.



please i need help on this,

thanks in advance,
hubert.



problem.tgz
Description: GNU Unix tar archive

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

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


RE: Cocoon 2 (B2) on weblogic 6.1 problem

2001-12-04 Thread Helena Ginzburg



Hi,I followed your instructions, but it did 
not solved the problem.However, I found where it is not working 
properly:
CocoonServlet.private void initLogger() 
throws ServletException 
{.. 
subcontext.put("context-root", 
this.servletContext.getRealPath("/"));..}this.servletContext.getRealPath("/") 
=== returns null
The problem is that if I put it as a coccon.WAR 
file it returns null, if I put it as a directory (cocoon) it returns the 
expected value (C:\bea\wlserver6.1\config\mydomain\applications\cocoon), I have 
to work with it as a WAR file. Is there any solution for that?
Thanks,Helena.-Original 
Message-From: Bernhard Huber [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, December 04, 2001 12:14 AMTo: 
[EMAIL PROTECTED]Subject: Re: Cocoon 2 (B2) on weblogic 6.1 
problemhi,i posted a description into cocoon-users mail list 
about my experiencesdeploying cocoon2at WLS6.1 sucessfully, search the 
mailing list for wls6.1As I found the original mail here once 
again:Installing Cocoon2 under WLS6.1I have struggled a bit before I 
managed to run Cocoon2 under WLS6.1The following section describes the 
steps to install Cocoon2 under WLS6.1.I have installed Cocoon2 under 
WIN2000:As WLS6.1 sp1 uses it own XMLParser, and XSLTransformer you have 
toforce Cocoon to usethe apache xerces, and apache xalan 
jars.Edit the following files:1) Edit your server startup 
script: (startWebLogic.cmd in your domaindirectory)Add MYCLASSPATH 
specifying xerxes, and xalan jar of the Cocoon2distribution.Append both 
at the start of the CLASSPATH. This change is neccessary.--- snipped 
---setMYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\cocoon\WEB-INF\lib\xerces_1_4_3.jarsetMYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\cocoon\WEB-INF\lib\xalan-2.1.0.jarset 
CLASSPATH=%MYCLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar...java 
-classpath %CLASSPATH%--- snipped ---2) Next edit the 
cocoon.xconf file, be sure to specify thetransformer-factory set 
toorg.apache.xalan.processor.TransformerFactoryImpl. 
This is very important: Using the WLS6.1 XSLTransformer I couldn'tmanaged to 
generate any valid java sitemap file. This change is 
neccessary.---snippet---!-- XSLT processor: 
-- 
xslt-processorclass="org.apache.cocoon.components.xslt.XSLTProcessorImpl"logger="root.xslt" 
parameter name="use-store" 
value="true"/ parameter 
name="transformer-factory"value="org.apache.xalan.processor.TransformerFactoryImpl"/ 
/xslt-processor---snippet---3) You may activate the xerces 
parser explicitly in cocoon.xconf, too.Although it is not absolutly 
necessary.--snippet---Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser 
-- parser 
class="org.apache.cocoon.components.parser.XercesParser"/--snippet--4) 
Last you may have to edit lib/weblogic.policy, deactivating 
anysecurity-policy setting, allowing to load compiled xsp, andsitemaps. 
At my last test this change was not necessary!--snippet--grant 
{ // make cocoon work ?? // 
permission java.security.AllPermission; // Permission 
"enableSubstitution" needed to run the WebLogic console 
permission java.io.SerializablePermission 
"enableSubstitution";--snippet--I hope it helps!I have not 
checked the JSPEngine under Cocoon2 + WLS6.1, but it may needsome 
reconfiguration, too.Helena Ginzburg wrote:Has anyone 
managed to successfully install Cocoon 2 (B2) on weblogic 6.1?I followed 
the instructions that came with the distribution, but Cocoonfailed to 
load during deployment with the following errors:Dec 3, 2001 
12:05:04 PM IST Error J2EE Error deploying 
applicationcocoon: Could not load 
cocoonjava.lang.reflect.UndeclaredThrowableException:java.lang.NullPointerException 
at 
java.util.Hashtable.put(Hashtable.java:380) 
atorg.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107) 
atorg.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:423) 
atorg.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132) 
atweblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700) 
atweblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643) 
atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588) 
atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2203) 
atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2147) 
atweblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:884) 
atweblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:807) 
atweblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421) 
at 
weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) 
at 
weblogic.j2ee.Application.addComponent(Application.java:160) 
at 
weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) 

Re: MS SQL Server JDBC and Cocoon Connection Pool

2001-12-04 Thread David Rosenstrauch

At 09:56 AM 12/4/01 +0100, you wrote:
Hi,

i think about (..ok...i am forced to think about) to use the 
MS-SQL-Server.
Surprisingly i didnt find any post in this mailinglist which deals with this 
challenge.
So my questions:
How do i connect to this MS-Sql-Server by using JDBC and the Cocoon 
Connection Pool (Cocoon 1.8.2)...ok...

processor.xsp.pool.database.default.driver=???


You have to choose the driver.  I've used the ones from www.inetsoftware.de with SQL 
Server and they work nicely.  Costs $ though.



processor.xsp.pool.database.default.url=???


URL depends on the driver.  In the case of www.inetsoftware.de the url is:

jdbc:inetdae:_hostname_


Which port is MSSqlServer using?


By default, 1433.


Basically, pick a driver first and then put everything into place from there.


HTH.


DR


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

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




Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread David Rosenstrauch

At 10:41 AM 12/4/01 +0100, you wrote:
If my question is somehow incomplite or unclear, tell me what is
wrong with it.

It is very important to me to know why it is not working.

help, help,

 hubert.


Hi Hubert.

Your previous question was a little unclear, but I'll try my best to help.

Generally the way I handle logicsheets and XSP is as follows:

1) take an XML file (what you refer to in your message as my server page I would say 
is not a server page; it's just a regular xml file)

2) at compile time (i.e., using Ant and Xalan, not Cocoon) I perform an XSLT against 
that XML file using the logicsheet.  The result is the XSP server page. (what you 
refer to in your message as output is I would say is your server page; this now 
needs to get executed)

3) at run time (i.e., using Cocoon, in your sitemap), execute the server page (using  
map:generator name=serverpages 
src=org.apache.cocoon.generation.ServerPagesGenerator).  This will perform the 
database calls and make all the esql tag substitutions.


It is also possible to do step 2 at run time (i.e., using Cocoon), although it's a bit 
more complicated.


HTH.  Email back if you need more info.


DR


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

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




Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread Christopher Painter-Wakefield


Obviously the ESQL logicsheet is not being applied.  In Cocoon 1 this would
imply that you had removed the declaration of the esql logicsheet from
cocoon.properties, or that your namespace declaration URI didn't match the
one in the logicsheet.  I don't know how this works in Cocoon 2; maybe the
sitemap?  I know some of the namespace URI's have changed; is it possible
that the one for ESQL is something other than 
http://apache.org/cocoon/SQL/v2;?

If either of these is true then you shouldn't be able to even get a simple
XSP using ESQL to work.

If you *can* get ESQL to work using simple XSP, then it suggests that you
are somehow managing to strip out the ESQL namespace declaration with your
logicsheet.  If that is also not true, perhaps you have found a bug, and
should report it to cocoon-dev.

Sorry I can't help more - I haven't yet upgraded to C2.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  [c2] q: howto use ESQL inside own logicsheets?


Hi all,
i want my logicsheet to use ESQL, i try this:


!-- my logicsheet --
xsl:stylesheet version=1.0
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 xmlns:xsp=http://apache.org/xsp;
 xmlns:my-logicsheet=http://my.org/my-logicsheet;
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

 xsl:template match=my-logicsheet:my-tag
  esql:connection
   esql:poolmy-pool/esql:pool

   esql:execute-query
esql:querySELECT * FROM my-table/esql:query

esql:results
 esql:row-results
  xsp:element name=my-element
   xsp:attribute name=my-attr
 esql:get-string column
=my-string-column/
   /xsp:attribute
  /xsp:element
 /esql:row-results
/esql:results
   /esql:execute-query
  /esql:connection
 /xsl:template

/xsl:stylesheet

!-- my server page --
xsp:page
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 xmlns:xsp=http://apache.org/xsp;
 xmlns:my-logicsheet=http://my.org/my-logicsheet;

 element-embding-my-tag
  my-logisheet:my-tag
 /element-embding-my-tag
/xsp:page


!-- output is --
element-embding-my-tag
 !-- namespace declarations --
 
 esql:connection
  esql:poolfp/esql:pool
  esql:execute-query
   esql:querySELECT * FROM my-table/esql:query
   esql:results
esql:row-results
 my-element my-attr=/
 !-- unprocessed esql tags --
 !-- xsp has been processed --
/esql:row-results
   /esql:results
  /esql:execute-query
 /esql:connection
/element-embding-my-tag


please tell me why i sthat so, and what i i need to understend to use this
properly.

thanks in advance,
 hubert.

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

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








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

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




Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread Hubert NEOtyk Iwaniuk

Hi David,

 Your previous question was a little unclear, but I'll try my best to help.
 
 Generally the way I handle logicsheets and XSP is as follows:
 
 1) take an XML file (what you refer to in your message as my server page I would 
say is not a server page; it's just a regular xml file)
 
 2) at compile time (i.e., using Ant and Xalan, not Cocoon) I perform an XSLT against 
that XML file using the logicsheet.  The result is the XSP server page. (what you 
refer to in your message as output is I would say is your server page; this now 
needs to get executed)

I'm no familiar with Ant, can you tell me how to do it (some build.xml i gues?).
Or how to do it in cocoon, because that is what i was trying to do.
I wanted to achieve this by using logicsheet, which is an xsl:stylesheet, as
documented in c2docs. what i should do, i think, is to
map:match patter=my_xsp.xsp
map:generate type=file 
src=my_xsl-file-containing-logicsheet-tags.xml/
map:transform type=xslt src=my-logicsheet.xsl/
map:serialize type=xml/
/map:match
but that is what i thought c2 is doing with logisheet.
if it's not then please let me know.


 
 3) at run time (i.e., using Cocoon, in your sitemap), execute the server page (using 
 map:generator name=serverpages 
src=org.apache.cocoon.generation.ServerPagesGenerator).  This will perform the 
database calls and make all the esql tag substitutions.
 
 
 It is also possible to do step 2 at run time (i.e., using Cocoon), although it's a 
bit more complicated.

Is this a bit more complicated the same that i wrote before?


Thanks in advance,
Hubert.

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

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




render dynamic tables jsp2fo

2001-12-04 Thread Kai Ulrich

Hey 
My Problem :
I create a table with a variable amount of coles by an jsp!
Is it there a possibility to create a stylesheet witch conigurates the
fo:table-tag for variable amount of coles ?

k

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

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




Ant: RE: Cocoon 2 (B2) on weblogic 6.1 problem

2001-12-04 Thread Bernhard Huber

Hi,
You are right, in my installation i didn't deployed
cocoon as a single war file, too.

well if you read the spec about Servlet 2.2, 2.3
getRealPath() is allowed to return null.
The solution is to use getResourceX(),
i think in some places of the cocoon code
this has been done - replacing the getRealPath() call -
thus i think it is a bug to use the getRealPath()
in the Logkit code, opening a bugzilla?

bye

Huber Bernhard, email: [EMAIL PROTECTED], homepage:
members.a1.net/berni_huber/index.html



- Ursprüngliche Nachricht -
Von: Helena Ginzburg [EMAIL PROTECTED]
Datum: Dienstag, Dezember 4, 2001 17:52
Betreff: RE: Cocoon 2 (B2) on weblogic 6.1 problem

 Hi,
 I followed your instructions, but it did not solved the problem.
 However, I found where it is not working properly:
 
 
 CocoonServlet.private void initLogger()
throws ServletException {
 ..
subcontext.put(context-root,
 this.servletContext.getRealPath(/));
 ..
 }
 this.servletContext.getRealPath(/) === returns null
 
 
 The problem is that if I put it as a coccon.WAR file it returns 
 null, if I
 put it as a directory (cocoon) it returns the expected value
 (C:\bea\wlserver6.1\config\mydomain\applications\cocoon), I have 
 to work
 with it as a WAR file. Is there any solution for that?
 
 Thanks,
 Helena.
 
 -Original Message-
 From: Bernhard Huber [ mailto:[EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:14 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon 2 (B2) on weblogic 6.1 problem
 
 
 hi,
 i posted a description into cocoon-users mail list about my 
 experiencesdeploying cocoon2
 at WLS6.1 sucessfully, search the mailing list for wls6.1
 
 As I found the original mail here once again:
 Installing Cocoon2 under WLS6.1
 
 I have struggled a bit before I managed to run Cocoon2 under WLS6.1
 
 The following section describes the steps to install Cocoon2 under 
 WLS6.1.I have installed Cocoon2 under WIN2000:
 
 As WLS6.1 sp1 uses it own XMLParser, and XSLTransformer you have to
 force Cocoon to use
 the apache xerces, and apache xalan jars.
 
 Edit the following files:
 
 1) Edit your server startup script: (startWebLogic.cmd in your domain
 directory)
 Add MYCLASSPATH specifying xerxes, and xalan jar of the Cocoon2
 distribution.
 Append both at the start of the CLASSPATH. This change is neccessary.
 --- snipped ---
 set

MYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\coco
 on\WEB-INF\lib\xerces_1_4_3.jar
 
 set

MYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\coco
 on\WEB-INF\lib\xalan-2.1.0.jar
 
 
 set CLASSPATH=%MYCLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
 ...java -classpath %CLASSPATH%
 --- snipped ---
 
 2) Next edit the cocoon.xconf file, be sure to specify the
 transformer-factory set to
 org.apache.xalan.processor.TransformerFactoryImpl.
This is very important: Using the WLS6.1 XSLTransformer I couldn't
 managed to generate any valid java sitemap file. This change is 
 neccessary.---snippet---
 !-- XSLT processor:
--
xslt-processor
 class=org.apache.cocoon.components.xslt.XSLTProcessorImpl
 logger=root.xslt
   parameter name=use-store value=true/
   parameter name=transformer-factory
 value=org.apache.xalan.processor.TransformerFactoryImpl/
/xslt-processor
 ---snippet---
 
 3) You may activate the xerces parser explicitly in cocoon.xconf, too.
 Although it is not absolutly necessary.
 --snippet--
 
 -

Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser
 
--
parser class=org.apache.cocoon.components.parser.XercesParser/
 --snippet--
 
 4) Last you may have to edit lib/weblogic.policy, deactivating any
 security-policy setting, allowing to load compiled xsp, and
 sitemaps. At my last test this change was not necessary!
 --snippet--
 grant {
// make cocoon work ??
// permission java.security.AllPermission;
 
// Permission enableSubstitution needed to run the WebLogic 
 consolepermission java.io.SerializablePermission 
 enableSubstitution;--snippet--
 
 I hope it helps!
 
 I have not checked the JSPEngine under Cocoon2 + WLS6.1, but it 
 may need
 some reconfiguration, too.
 
 
 Helena Ginzburg wrote:
 
 Has anyone managed to successfully install Cocoon 2 (B2) on 
 weblogic 6.1?
 I followed the instructions that came with the distribution, but 
 Cocoonfailed to load during deployment with the following errors:
 Dec 3, 2001 12:05:04 PM IST Error J2EE Error deploying 
 applicationcocoon
 : Could not load cocoon
 java.lang.reflect.UndeclaredThrowableException:
 java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:380)
 at
 org.apache.avalon.framework.context.DefaultContext.put(DefaultContext
 .java:107)
 at
 org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java
 :423)
 at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)

Ant: RE: Cocoon 2 (B2) on weblogic 6.1 problem

2001-12-04 Thread Bernhard Huber

hi,
just wait i had a better solution, i think 
logkit needs some dir to write the log files, too.
If you read the servlet spec. you get a temp-directory location
propoesed from the servlet-content, something like
javax.servlet.tempdir i think.
Probably its the best to use this directory as a base
dir for writing the cocoon logs, too.
Then it might be possible to deploy cocoon as a single war file.
You then spot other getServletPath() code.
bye

Huber Bernhard, email: [EMAIL PROTECTED], homepage:
members.a1.net/berni_huber/index.html



- Ursprüngliche Nachricht -
Von: Helena Ginzburg [EMAIL PROTECTED]
Datum: Dienstag, Dezember 4, 2001 17:52
Betreff: RE: Cocoon 2 (B2) on weblogic 6.1 problem

 Hi,
 I followed your instructions, but it did not solved the problem.
 However, I found where it is not working properly:
 
 
 CocoonServlet.private void initLogger()
throws ServletException {
 ..
subcontext.put(context-root,
 this.servletContext.getRealPath(/));
 ..
 }
 this.servletContext.getRealPath(/) === returns null
 
 
 The problem is that if I put it as a coccon.WAR file it returns 
 null, if I
 put it as a directory (cocoon) it returns the expected value
 (C:\bea\wlserver6.1\config\mydomain\applications\cocoon), I have 
 to work
 with it as a WAR file. Is there any solution for that?
 
 Thanks,
 Helena.
 
 -Original Message-
 From: Bernhard Huber [ mailto:[EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:14 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon 2 (B2) on weblogic 6.1 problem
 
 
 hi,
 i posted a description into cocoon-users mail list about my 
 experiencesdeploying cocoon2
 at WLS6.1 sucessfully, search the mailing list for wls6.1
 
 As I found the original mail here once again:
 Installing Cocoon2 under WLS6.1
 
 I have struggled a bit before I managed to run Cocoon2 under WLS6.1
 
 The following section describes the steps to install Cocoon2 under 
 WLS6.1.I have installed Cocoon2 under WIN2000:
 
 As WLS6.1 sp1 uses it own XMLParser, and XSLTransformer you have to
 force Cocoon to use
 the apache xerces, and apache xalan jars.
 
 Edit the following files:
 
 1) Edit your server startup script: (startWebLogic.cmd in your domain
 directory)
 Add MYCLASSPATH specifying xerxes, and xalan jar of the Cocoon2
 distribution.
 Append both at the start of the CLASSPATH. This change is neccessary.
 --- snipped ---
 set

MYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\coco
 on\WEB-INF\lib\xerces_1_4_3.jar
 
 set

MYCLASSPATH=%MYCLASSPATH%;D:\bea\wlserver6.1\config\cocoon\applications\coco
 on\WEB-INF\lib\xalan-2.1.0.jar
 
 
 set CLASSPATH=%MYCLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
 ...java -classpath %CLASSPATH%
 --- snipped ---
 
 2) Next edit the cocoon.xconf file, be sure to specify the
 transformer-factory set to
 org.apache.xalan.processor.TransformerFactoryImpl.
This is very important: Using the WLS6.1 XSLTransformer I couldn't
 managed to generate any valid java sitemap file. This change is 
 neccessary.---snippet---
 !-- XSLT processor:
--
xslt-processor
 class=org.apache.cocoon.components.xslt.XSLTProcessorImpl
 logger=root.xslt
   parameter name=use-store value=true/
   parameter name=transformer-factory
 value=org.apache.xalan.processor.TransformerFactoryImpl/
/xslt-processor
 ---snippet---
 
 3) You may activate the xerces parser explicitly in cocoon.xconf, too.
 Although it is not absolutly necessary.
 --snippet--
 
 -

Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser
 
--
parser class=org.apache.cocoon.components.parser.XercesParser/
 --snippet--
 
 4) Last you may have to edit lib/weblogic.policy, deactivating any
 security-policy setting, allowing to load compiled xsp, and
 sitemaps. At my last test this change was not necessary!
 --snippet--
 grant {
// make cocoon work ??
// permission java.security.AllPermission;
 
// Permission enableSubstitution needed to run the WebLogic 
 consolepermission java.io.SerializablePermission 
 enableSubstitution;--snippet--
 
 I hope it helps!
 
 I have not checked the JSPEngine under Cocoon2 + WLS6.1, but it 
 may need
 some reconfiguration, too.
 
 
 Helena Ginzburg wrote:
 
 Has anyone managed to successfully install Cocoon 2 (B2) on 
 weblogic 6.1?
 I followed the instructions that came with the distribution, but 
 Cocoonfailed to load during deployment with the following errors:
 Dec 3, 2001 12:05:04 PM IST Error J2EE Error deploying 
 applicationcocoon
 : Could not load cocoon
 java.lang.reflect.UndeclaredThrowableException:
 java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:380)
 at
 org.apache.avalon.framework.context.DefaultContext.put(DefaultContext
 .java:107)
 at
 org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java
 :423)
 at
 

Inserting / Comining XML data

2001-12-04 Thread Luke Studley

Hiya - Newbie question again,

I'm looking for some advice on the best way to include some dynamically
generated XML data in C2.
I'm new to this, but can see there are a plethora of ways, but I can't yet
see the best way for me.

In my original system I used XSL stylesheets and Custom URIResolvers to
'pull' data in to a stylesheet using the document() function - e.g.
document('rmi://myserver/mydatachunk') sort of thing.

How is this sort of thing accomplished with C2?

1. Using XSP seems to be a good way to insert some small strings - but I
couldn't see any examples (or if it is possible) to insert whole XML
documents in situ in the target doc. And besides to choose which data to
insert at this level seems to break the MVC paradigm - as I need to know
about the view I am catering for.

2. Aggregating - this again seems like a push method whereby you have to
have the data already in memory or on disk somewhere in order to combine it.

3. Maybe I could use some sort of custom URL protocol manager like the
cocoon:/ and resource:/? Is it possible to supply new instances of these?

4. Or I could use my URI resolvers again? Is it possible to set Custom URI
resolvers in C2

5. I haven't had much to do with actions yet? Could they be used to load the
XML data chunk and stick it in some sort of context that could then be fed
into the Transformer layer.

Please tell me what you think / flame me etc. as I'm all in a muddle.

Yours, slightly frustrated but very keen and impressed newbie C2 user

Luke Studley
 


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

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




RE: Cocoon's capacity

2001-12-04 Thread Lily Zou

 Thanks a lot, Harry. Your advice is extremely helpful. By the way, can I
create private method within a xsp or xml page so that the size of main part
could be reduced ?

Lily 

 

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Cocoon's capacity


Hi Lily,

This is actually a limitation in Java, not Cocoon.  Basically, you can't
have a Java method that's more than 65535 bytes
(http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#8
8659).

I'm a Cocoon newbie, but I think there's probably a way to pull some of your
code out into other methods, which would get you around this issue (unless
this is actually happening in the code generation process).  Could someone
else who knows more about Cocoon address this?  Thanks!

Harry

-Original Message-
From: Lily Zou [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:53 PM
To: [EMAIL PROTECTED]
Subject: Cocoon's capacity


I use cocoon1.8.2 and I have a large xml file needed to process. THis is the
error I got from cocoon:  
java.lang.ClassFormatError: Code of a method longer than 65535 bytes
at java.lang.ClassLoader.defineClass0(Native Method) at
java.lang.ClassLoader.defineClass(ClassLoader.java:486) at
java.lang.ClassLoader.defineClass(ClassLoader.java:426) ...
It seems my file is too huge to be processed. Is there anyone who knows how
to modify or if we are able to modify the capacity of cocoon ?
Thanks in advance.


Lily  Zou
REDKNEE Inc.
Phone (905)-625-2962
Email  [EMAIL PROTECTED]




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

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

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

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

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

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




Cocoon ignoring xsl:output ident?

2001-12-04 Thread David Rosenstrauch

Having a problem.

My stylesheet starts with:

xsl:stylesheet
version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xalan=http://xml.apache.org/xslt;
 
xsl:output
indent=yes
xalan:indent-amount=4
/


But Cocoon seems to be ignoring the xsl:output indent=yes   All of the output 
is coming out on the same line.

Ideas?  Suggestions?  Do I need to somehow tell cocoon to turn on Xalan indent 
processing some other way?


TIA!

DR


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

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




AW: Coconn-EJB application build

2001-12-04 Thread Ulli Hoffmann

Hi Konstantin,

tx for the reply.
I still have the following problems:
--- 1) Deploying the cocoon.war (including my xsp/xsl stuff) and the
app.jar together in one app.ear; the xsp imports a package from the ejb and
makes a call to a class of that package - error:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
index_xsp:
Line 89, column 7:  Package com.inidfab.serv.control.web not found in
import.
Line 0, column 0:
1 error

--- 2) Deploying cocoon.war and app.jar separately (without the
application.xml); the xsp imports a package from the ejb and makes a call to
a class of that package - error:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException:  :env not bound

The error in 2) seems obvious since the application is not deployed
correctly, 1) seems to have problems with finding the classpath. Is there
any path to be set somewhere in Cocoon?

Tx and regards,
Ulli


-Ursprüngliche Nachricht-
Von: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Dezember 2001 17:39
An: [EMAIL PROTECTED]
Betreff: Re: Coconn-EJB application build


 Hi,

 I'm migrating from Tomcat/Jboss to Cocoon2/Tomcat/Jboss and need some data
 on how the packaged application would look like.

 Currently the app.ear consists of:
 app.war
 appEjb.jar
 application.xml
 sun-j2ee-ri.xml
 Manifest.mf

 Now I'm wondering what has to be included in cocoon.war? Do I have to move
 the complete app.war to cocoon/webapp and modify application.xml and
 sun-j2ee-ri.xml accordingly to include cocoon.war instead of app.war?

You can create a needed cocoon web application, add your own staff then call
it app.war.


 Any experience out there?

 Regards,
 Ulli



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

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


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

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


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

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




XSLT and international characters.

2001-12-04 Thread Marcin Kos

Hi!

For serveral days I'm trying to solve the following problem. I'm sure that 
somebody has already faced it, but I could not find any answer on the net.

I use Cocoon 2 for XSLT transformations (Tomcat 4.0.1 glued to Apache using 
mod_webapp). These are very simple transformations producing HTML output. I 
pass some parameters in the QUERY STRING to the XSL. Those parameters contain 
international (polish) characters, somewhere during the transformation those 
charcters are converted into some rubbish. For example polish character 
%C5%82 is transformed into Aring;#130; i.e., each byte of the two-byte 
value is treated separetely. 

How to overcome this problem? 

-- 
Pozdrawiam
Marcin 'Quosoo' Kos



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

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




Re: Cocoon ignoring xsl:output ident?

2001-12-04 Thread Jörg Heinicke

http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput

Regards,

Joerg


 But Cocoon seems to be ignoring the xsl:output indent=yes   All of
the output is coming out on the same line.

 Ideas?  Suggestions?  Do I need to somehow tell cocoon to turn on Xalan
indent processing some other way?


 TIA!

 DR



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

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




Re: Cocoon ignoring xsl:output ident?

2001-12-04 Thread David Rosenstrauch

Thanks for the RTFM!  :-)

But how does this work in C2?


Thanks!

DR


At 08:22 PM 12/4/01 +0100, you wrote:
http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput

Regards,

Joerg


  But Cocoon seems to be ignoring the xsl:output indent=yes   All of
the output is coming out on the same line.
 
  Ideas?  Suggestions?  Do I need to somehow tell cocoon to turn on Xalan
indent processing some other way?
 
 
  TIA!
 
  DR



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

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


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

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




Antwort: RE: Calling C2 from command line: problem with Oracle driver

2001-12-04 Thread Christoph . Oberle

Hi all,

thank you Aaron, for the desription how to use Oracle from within Cocoon (and
Tomcat!).
This also works in my environment.

My question is:

I want to call Cocoon2 from then command line WITHOUT Tomcat.
There is a run.sh file in the Cocoon root directory, which starts Cocoon with a
stand alone java-cmd. No Tomcat!

In this case, Cocoon makes some assumptions, e.g. where the applications are
(./webapp), where the work-dir is, etc.

I wonder, where I can set these parameters. Also I wonder, where the settings
can be done, which are normally set in the web.xml file of Tomcat, like the
init-param named load-class (because there is no Tomcat in command line
operation).

 web-app
servlet
 servlet-nameCocoon2/servlet-name
 init-param
  param-nameload-class/param-name
  param-value
   oracle.jdbc.driver.OracleDriver
  /param-value
 /init-param
 ...
/servlet
 /web-app

So, in other words, my problem is: how can I set up an environment for starting
Cocoon stand alone which is compatable to my Tomcat environment.

Did anybody run Cocoon2 from the command line already

Any reports are appreciated!

The background for my request is the following:
I have written an application sampling together data concerning a life insurance
contract  from several SQL-databases with the esql-taglib in a xsp:page,
which is then transformed to html.
Now I want to run this application for many cases and send the final html-pages
to an other department.

Thank you
Christoph



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

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




XML include for masthead and navigation

2001-12-04 Thread therandthem
Title: Message



I know that this 
list is for Cocoon specific questions but with so many options available to me 
in Cocoon, I thought I might ask it here.

I am using Cocoon 2 
and would like to have standard headers and footers on every page. I have 
my site navigation in the Header. I would like the navigation to get its 
information from a totally seperate XML file that only has data (no 
presentation, XSL or logic, XSP). Something like this:

menu
 item 
name="Home" uri="/welcome"
 
item name="Services" uri="/services"/
 
item name="Products" uri="/services"/
 
/item
 item 
name="About Us" uri="/aboutus"
/menu

I don't want my 
individual pages to have any concept of this "menu.xml" file. I'd like to 
reference"menu.xml"from somewhere like XSL, read in the values and 
prepend the generated pages with the Header and this navigation content. 
The end result being, I can add and remove values from one file and have it can 
the navigation on all pages, instantly. What is the most simple way to do 
this in Cocoon 2?

Thanks for any 
help,

Richard


RE: XSLT and international characters.

2001-12-04 Thread Luca Morandini

Marcin,

you may try setting the enconding of the HTML serializer in your sitemp to
the one that fits you (in the example below I used, quite understandably, an
Italian enconding):

map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingiso-8859-1/encoding
/map:serializer

Best regards,

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


 -Original Message-
 From: Marcin Kos [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:33 PM
 To: [EMAIL PROTECTED]
 Subject: XSLT and international characters.


 Hi!

 For serveral days I'm trying to solve the following problem. I'm
 sure that
 somebody has already faced it, but I could not find any answer on the net.

 I use Cocoon 2 for XSLT transformations (Tomcat 4.0.1 glued to
 Apache using
 mod_webapp). These are very simple transformations producing HTML
 output. I
 pass some parameters in the QUERY STRING to the XSL. Those
 parameters contain
 international (polish) characters, somewhere during the
 transformation those
 charcters are converted into some rubbish. For example polish character
 %C5%82 is transformed into Aring;#130; i.e., each byte of the two-byte
 value is treated separetely.

 How to overcome this problem?

 --
 Pozdrawiam
 Marcin 'Quosoo' Kos

 

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

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



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

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




Sitemap

2001-12-04 Thread Carlos

I have the sitemap listed below and have the following questions:


* Is it possible to refer to a single document and then refer to something
more specific? For example; Is it valid to use:

* Also, in the second element. Is the map:transform src... / element
valid?

   map:match pattern=welcome
map:generate src=site/index.xml/
map:transform src=stylesheets/page-html.xsl/
map:serialize/
   /map:match

   map:match pattern=welcome/**
map:generate src=site/{1}.xml/
map:transform src=stylesheets/page-html.xsl/
map:serialize/
   /map:match


* Are the two sitemap expressions below valid? Where would I have to put
The documents?

* In the two snipets below, what difference does it make if I use ** instead
of *

   map:match pattern=*.pdf
map:generate src={1}.xml/
map:transform src=xsl/fo/docbook.xsl/
map:serialize type=pdf/
   /map:match

   map:match pattern=*.html
map:generate src={1}.xml/
map:transform src=/xsl/html/docbook.xsl/
map:serialize/
   /map:match

Carlos

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 G | California Virtual Campus
 - | C/O De Anza College
 P | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Paradoxically, a refusal to 'put a monetary value on life' means that
life is often undervalued.
-- Artificial Intelligence: A Modern Approach



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

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




Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread Christian Haul

On 04.Dec.2001 -- 06:20 PM, Hubert NEOtyk Iwaniuk wrote:
 Hi David,
 
  Your previous question was a little unclear, but I'll try my best to help.
  
  Generally the way I handle logicsheets and XSP is as follows:
  
  1) take an XML file (what you refer to in your message as my server page I would 
say is not a server page; it's just a regular xml file)
  
  2) at compile time (i.e., using Ant and Xalan, not Cocoon) I perform an XSLT 
against that XML file using the logicsheet.  The result is the XSP server page. (what 
you refer to in your message as output is I would say is your server page; this now 
needs to get executed)
 
 I'm no familiar with Ant, can you tell me how to do it (some build.xml i gues?).
 Or how to do it in cocoon, because that is what i was trying to do.
 I wanted to achieve this by using logicsheet, which is an xsl:stylesheet, as
 documented in c2docs. what i should do, i think, is to
   map:match patter=my_xsp.xsp
   map:generate type=file 
src=my_xsl-file-containing-logicsheet-tags.xml/
   map:transform type=xslt src=my-logicsheet.xsl/
   map:serialize type=xml/
   /map:match
 but that is what i thought c2 is doing with logisheet.
 if it's not then please let me know.
 

Wait a minute. stylesheet != taglib
taglib: used when creating .java from XSP. taglibs are aka logicsheets.
stylesheet: used when styling XML

usually, both are implemented in XSLT

you apply your taglib to XML - wrong

right: add your taglib to cocoon.xconf

search this ML for examples. this has been asked many times. see
concepts section in docs. it is all explained in great detail.

To David: yes, you could use your two pipeline setup. but then you
would need to know in which order to apply all taglibs. the official
way is much more comfortable.

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. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon ignoring xsl:output ident?

2001-12-04 Thread Jörg Heinicke

In the default-sitemap there are a few examples:

map:serializers default=html
map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
doctype-public-//W3C//DTD HTML 4.01//EN/doctype-public

doctype-systemhttp://www.w3.org/TR/html4/strict.dtd/doctype-system
encodingiso-8859-1/encoding
/map:serializer
/map:serializers

Like encoding is specified here, everything else of xsl:output has to be
specified too. I don't know whether there are any limitations in comparison
with xsl:output.

Regards,

Joerg

- Original Message -
From: David Rosenstrauch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:33 PM
Subject: Re: Cocoon ignoring xsl:output ident?


 Thanks for the RTFM!  :-)

 But how does this work in C2?


 Thanks!

 DR


 At 08:22 PM 12/4/01 +0100, you wrote:
 http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput
 
 Regards,
 
 Joerg
 
 
   But Cocoon seems to be ignoring the xsl:output indent=yes 
All of
 the output is coming out on the same line.
  
   Ideas?  Suggestions?  Do I need to somehow tell cocoon to turn on
Xalan
 indent processing some other way?
  
  
   TIA!
  
   DR
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

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




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

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




topeka

2001-12-04 Thread Nandakumar Mounasamy



only newspapers who 
have users without usernames since 2001 are TCJ and 
FTU.


RE:RE: Help Me fop in Cocoon2 !!! embedded font Problem

2001-12-04 Thread

I found serveral articles related my problem, and I made a test with a guide described 
a good article below.
http://www2.real-time.com/pipermail/cocoon-users/2001-October/019861.html
Cocoon, Fop, and embedded Truetype fonts 
Jacob Cantwell [EMAIL PROTECTED] 

cocoon2 embedded font Configuration task 
1. metrics file create
2. userconfig.xml create
3. userconfig.xml added sitemap.xml 
4. run  test

but It didn't work.. 

After the test, I could not see Korean fonts in a pdf as before.

A shell script using FOP in the C2 is generated a Korean charactors.
In C2, it is referenced userconfig defined in the sitemap.
However, in rendering a pdf, it may be refereced only default fonts, not additional 
fonts.
So, Korean charactors in the generated pdf is generated as unrecognized charactors 
like 

Though I read carefully detailed guides serveral times and made a test, every time I 
failed a test with unrecognized charactors.
I'm convinced that there is no problem related the environment configuration of C2.

Search the docs for fop and fonts.  It _is_ possible.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 04 December 2001 12:26 pm
 To: cocoon-users
 Subject: Help Me fop in Cocoon2 !!! embedded font Problem
 
 
 I made a successful test that FOP was generated a pdf file 
 consisted of Korean.
 But, I could not make a pdf consisted of Korean with C2.
 
 Though FOP generate a pdf file using embed fonts, C2 seems to 
 generate a pdf without embed fonts.
 
 I'd like to know if what I said is right.
 And If C2 can use embed fonts like Korean, Let me know how C2 
 uses embed fonts.
 If possible, Let me take a example.
 
 Regards.
 
 
 ps.I attached  a log what I made a test below.
 
 1.Shell script with FOP
 -generating metrics file using Korean ttf.
 -writing a user config file
 -making successfully a Korean pdf file with fop-0_20_1-dev.jar of C2.
 
 2.Web browser with C2.
 -error that was made an unrecognized pdf file included 
 Korean, when the server with the environment described above 
 was accessed.
 


url on esql

2001-12-04 Thread Ivan Manuel Andrade Muñoz








As an url of a base data it is placed: In mysql, the one which this installed in /usr/local/mysql / Whose jdbc, this: /usr/local/mm.mysql.jdbc1.2c / Which I have inside the file.bash_profile like: CLASSPATH=/usr/local/mysql_com.jar 









Cocoon 1.8.2



Error found handling the request.
java.lang.RuntimeException: Error loading driver: org.gjt.mm.mysql.Driver
	at _usr._local._jakarta._build._tomcat._webapps._cocoon._samples._memoriaII._esql.populateDocument(_esql.java:141)
	at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
	at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:527)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
From already thank you for your help.Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.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]>