JBoss+Tomcat+Cocoon

2001-06-15 Thread david berkowicz

I have not had much success trying to find information
about integrating JBoss and Tomcat with Cocoon 1.8.2.
However, after long and frustrating hours I have
succeeded in getting a 95% perfect installation. I
followed the general installation instructions for
integrating cocoon with an Apache-Tomcat distribution
but I obviously omitted the Apache specific
instructions. The key difference was changes made to
the run.bat file under the JBoss directory. The
classpath variable must be initially set to point to
the xerces parser. For good measure this is a good
place to point to all the cocoon specific files.
Another important this is to comment out reference to
the jaxp.jar file. This seems to have the unwanted
effect of causing the Tomcat-test.ear file not to
deploy successfully - hence the 95% solution.
Does anybody have an answer to this problem.
I eagerly await some sage advice.
David Berkowicz.

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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

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




Re: Xalan version for Cocoon 1.8.x

2001-06-15 Thread Steven Punte

Werner:

   If you are looking for better performance, I've
   achieve operation of cocoon 1.8.2+ with Saxon.
   Straigh 1.8.2 requires some modifications.  See
   http://www.candlelightsoftware.com/cocoon for
   detail information.

   steve



On Fri, 15 Jun 2001 16:14:19 +0100, [EMAIL PROTECTED] and
[EMAIL PROTECTED] wrote:

>  Hi,
>  
>  Given that I have not seen any reply to my question, let's try it again
(and
>  rephrase it at the same time .. ;-)).
>  
>  Is it possible to move from Xalan 1.2.2 to Xalan 2 without breaking
anything
>  in Cocoon 1.8.2 ?. I just tried this last week, and I am having problems
>  telling me that the XMLParserLiaison class can not be found. Checked the
JAR
>  file of Xalan 2, and indeed it seems as if that class does not exist
>  anymore.
>  
>  Is it that I am doing things wrong, or does Cocoon require Xalan to be of
>  version 1.x.y ?
>  
>  Thanks
>  Werner
>  
>  Werner Guttmann wrote:
>  
>  > Hi,
>  >
>  > I am running Cocoon 1.8.2 on Solaris 2.7 with Sun's JDK 1.2.2, and I
>  > having problems with different Cocoon and non-Cocoon web applications
>  > (residing on the same servlet engine) having different requirements
>  > related to Xalan version numbers, i.e. some of them requiring Xalan
1.2.
>  >
>  > Before describing the problem in detail, would anybody know of a reason
>  > why Cocoon 1.8.x would require Xalan 1.2.2 (or below) and hence would
>  > prevent me from switching to Xalan 2 ?
>  >
>  > Regards
>  > Werner
>  >
>  > -
>  > Please check that your question has not already been answered in the
>  > FAQ before posting. 
>  >
>  > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>  > For additional commands, e-mail: <[EMAIL PROTECTED]>
>  
>  
>  -
>  Please check that your question has not already been answered in the
>  FAQ before posting. 
>  
>  To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>  For additional commands, e-mail: <[EMAIL PROTECTED]>
>





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



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

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




Re: Xalan version for Cocoon 1.8.x

2001-06-15 Thread Frans Thamura

Yah, Cocoon 1.8.2 have problem if you install Xalan
2..

Bad...yeah..

Frans


--- Werner Guttmann
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Given that I have not seen any reply to my question,
> let's try it again (and
> rephrase it at the same time .. ;-)).
> 
> Is it possible to move from Xalan 1.2.2 to Xalan 2
> without breaking anything
> in Cocoon 1.8.2 ?. I just tried this last week, and
> I am having problems
> telling me that the XMLParserLiaison class can not
> be found. Checked the JAR
> file of Xalan 2, and indeed it seems as if that
> class does not exist
> anymore.
> 
> Is it that I am doing things wrong, or does Cocoon
> require Xalan to be of
> version 1.x.y ?
> 
> Thanks
> Werner
> 
> Werner Guttmann wrote:
> 
> > Hi,
> >
> > I am running Cocoon 1.8.2 on Solaris 2.7 with
> Sun's JDK 1.2.2, and I
> > having problems with different Cocoon and
> non-Cocoon web applications
> > (residing on the same servlet engine) having
> different requirements
> > related to Xalan version numbers, i.e. some of
> them requiring Xalan 1.2.
> >
> > Before describing the problem in detail, would
> anybody know of a reason
> > why Cocoon 1.8.x would require Xalan 1.2.2 (or
> below) and hence would
> > prevent me from switching to Xalan 2 ?
> >
> > Regards
> > Werner
> >
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> >
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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

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




Re: generate dinamic page from a single index.xml

2001-06-15 Thread Frans Thamura

Usually in dynamic page, pages is a collection of 1 or
more function, in cocoon this is mean 1 or more XML.

I think cocoon don't have that feature..

I usually used cocoon just for create 1 XML, RDF, or
RSS file. just it, or create html form, which I do it
right now.

Frans


--- Christopher Painter-Wakefield
<[EMAIL PROTECTED]> wrote:
> 
> Simone,
> 
> this is very easy to do, and Cocoon provides many
> different ways you can do
> it.
> 
> Here's a simple example using only XML and XSLT:
> 
> index.xml:
>
> 
>
> href="index.xsl"?>
> 
>
>  one
>  two
>  three
>
> 
> index.xsl:
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> 
>
> 
>
>  
>
>  
>
> 
>
>  Current item: 
>  
>  
>
>  index.xml?item-number= select="$item-number+1"/>
>
>Next
>  
>
> 
>
>  Current item: 
>  
>  Next
>
> 
>
> 
>
> 
> 
> The reason this works is because Cocoon has nicely
> made it possible for you
> to get query parameters in your XSLT stylesheet just
> by declaring an
>  with the same name.  So, the link we
> create in the stylesheet
> uses a query parameter (?item-number=n) and we pick
> it up with  name="item-number"/>.
> 
> There are many more complex approaches you can try,
> particularly if you get
> into XSP, where you have the whole range of Java and
> servlet programming
> available to you.
> 
> -Christopher
> 
> 
> 
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   <[EMAIL PROTECTED]>
> cc:
> 
> Subject:  generate dinamic page from a single
> index.xml
> 
> Hi
> My prior mail was been quite generic. The question 
> is about the
> possibility of create dynamically web page starting
> from a  single
> index.xml page and translate with cocoon and 
> XSLT. Following the links on
> index.xml displayed on browser  the will load a new
> page that came from
> index.xml new  rapresentation.
> 
> Is there some suggestion or can be implemented an 
> equivalent architecture?
> 
> Thank for all in advace.
> Simone
> 
> 
> 
> 
> 
> 
> 
>
-
> 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]>
> 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.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]>




cocoon2 + logicsheet

2001-06-15 Thread Kester Habermann

Hi,

I am trying to get the example "greeting3.xml" from
http://xml.apache.org/cocoon2/logicsheet-guide.html
to work with cocoon2.

On the page it says:
  There is another way to apply a logicsheet, which doesn't require a
  processing instruction for each file that uses the logicsheet. The
  second way to use a logicsheet depends on whether you are using
  Cocoon 1 or Cocoon 2. For Cocoon 2, take a look at the Cocoon 2 Site

The Link "Cocoon 2 Site" points to http://xml.apache.org/cocoon/cocoon2/
which doesn't exist. I suppose it's supposed to be 
http://xml.apache.org/cocoon2/ but I couldn't find the way to do it
there either; nor did I find anything appropriate in the FAQ.

I see two possible solutions:
  (1) remove the PIs from greeting3.xml and configure the sitemap (or
  maybe cocoon.xconf) to first do the xsp-processing and then the
  xslt- processing
  (2) make cocoon2 behave like cocoon1, so you can just access
  greeting3.xml and all the PIs will be processed.  I tried
  configuring this in the sitemap, but didn't succeed.  [ This
  isn't really the solution I want, I only tried it because I
  couldn't figure out how to do (1) ]

My efforts trying it like in (1), I removed the PIs and added rules to
the sitemap.

This is what I used in sitemap.xmap to tun "greeting.xml" and it works
(all files are in test/):
   



   

With this I can run "greeting2.xml":
   



   

[ But this wouldn't work until I changed
  http://www.apache.org/1999/XSP/Core";
  >
to
  http://apache.org/xsp"; 
  >
in "greeting2.xml". Same change applied to "greeting3.xml". ]

This applies the logic-sheet on "greeting3.xml":
   



   
and the resulting file contains the correct xsp code. So I'd only have
to execute the xsp code and do the final xslt, but It won't work like
this:
   





   

as cocoon won't run two generators.

I have no idea on how to do "greeting3.xml" with the logicsheet.

Could someone provide me with an example on how to do this in cocoon2?


Thanks in advance,

Kester.

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




WHAT IS WRONG??

2001-06-15 Thread Pankaj Malhan

I WANT TO UNSUSCRIBE AND I AM NOT ...
WHAT TO DO/??


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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

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




Re: [c1->c2] Is it a must to create a war file ... etc

2001-06-15 Thread Christopher Kohlhaas

giacomo [[EMAIL PROTECTED]] wrote:

> >   
> >
> > Windows 95/98 tells me that I don't have enough environment- memory?
> >
> >
> > This is another neat feature from DOS- times.
> > To increase enviroment-space add the following line to your
> > config.sys (and restart):
> > shell=c:\command.com /E:4096 /P
> >
> >   
> 
> Thanks for the faq entry. I've commited it right away.

Sorry, 
but the answer-tag in my FAQ-Post is not valid to the
faq-v10.dtd, which I did not read before posting to the list.

Please apply the following Patch:

Index: xdocs/faq.xml
===
RCS file: /home/cvspublic/xml-cocoon2/xdocs/faq.xml,v
retrieving revision 1.2
diff -u -r1.2 faq.xml
--- xdocs/faq.xml   2001/06/14 19:39:28 1.2
+++ xdocs/faq.xml   2001/06/15 22:25:27
@@ -156,11 +156,12 @@
  
   Windows 95/98 tells me that I don't have enough environment- memory?
  
- 
+ 
   This is another neat feature from DOS- times.
   To increase enviroment-space add the following line to your
-  config.sys (and restart):
-  shell=c:\command.com /E:4096 /P
+  config.sys (and restart):
+  shell=c:\command.com /E:4096 /P
+  
  
 
 







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




[C2] How do I install a taglib?

2001-06-15 Thread Gary Clark

OK, I'm lame.  I've read everything I could find so if its out there, I
missed it.  How do I install a taglib under C2b1?


Here is the taglib (testing.xml)


http://apache.org/xsp";
  xmlns:testing="http://www.jeld-wen.com/testing/1.0";
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>
 
   A Testing Message
 



Here is the test page (testing.xsl)


http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:testing="http://www.jeld-wen.com/testing/1.0";
>
 
  
 



In cocoon.xconf, I've added


  
  http://www.jeld-wen.com/devtool/1.0"/>
  


I admit I'm guessing the value of  should work based on examples
from C1, but I don't know for sure.

I've read the XSP Logicsheet Guide on the C2 website, but it indicates that
I should go to the C2 website to get information about installing a
logicsheet :-/  Any pointers?

BTW, I'll be adding  nodes next, so I do need this to be a taglib
instead of just an XSLT transformation.

TIA,
Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems


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




preserving xslt indentation?

2001-06-15 Thread Anthony E.

Is there ANY way to preserve the xslt indentation of
stylesheet templates in the output when using cocoon
1.8?

one line of output is extremely difficult to debug,
and makes it hard for 3rd parties to coherently read
the resulting xml.

I've read the usual arguments that whitespace slows
the processing time for cocoon - so it's stripped out,
but in the case of processing being done offline, time
is not of the essence...legibility of the output is
however.



__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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

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




Re: C2: recommended method for accessing Database, esp. for nestedqueries?

2001-06-15 Thread Donald Ball

On Wed, 13 Jun 2001, [iso-8859-1] Götz Botterweck wrote:

> I'm already using the ESQL. Now I'd like to do nested queries. Somewhat
> like that
>
> QUERY
>   retrieve departments
>   FOR EACH department d
>   retrieve all members of d
>   /FOR EACH
> /QUERY
>
> I've seen the file ../docs/samples/sql/sql-page.xml with the
>  tag. Is something similar possible with ESQL?

yes:





http://www.apache.org/1999/XSP/Core";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
>




  org.postgresql.Driver
  jdbc:postgresql://localhost/test
  test
  test
  
select id,name from department_table

  header info
  

  
  
  
select name from user_table where department_id = 


  

  


  No employees

  

  
  footer info

  







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

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




RE: (urgent)ESQL question

2001-06-15 Thread Donald Ball

On Wed, 13 Jun 2001, Ramesh Vejendla wrote:

> HI ALL,
> here i tried to keep esql results into varible and comparing with
> other variable , but its not working ...plz help me out.
>
> 
>   String uname="";
> 
>
> 
>   
>   uname=;
>   if( username.equals(uname)){
>   }
>   else
>   { do something}
>   
> 

er, you aren't even doing a query here...

- donald


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




Access to EngineWrapper inner classes

2001-06-15 Thread Mark McGettrick

Hello all,

I'd like to pass the 'request' object into a java function... I see that
it's provided as what seems to be an inner class to EngineWrapper. The java
program 'request' is getting passed to needs to import and declare the
appropriate data type, and of course that doesn't seem to be working... can
anyone think of a hack to make this work?

thanks,

-mark


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




UK Apache User Group

2001-06-15 Thread Peter Hargreaves

Hi Folks,

Is anybody in the London / Thames Valley area of the UK interested in 
getting together for a drink, a chat and to promote the use of open 
standards and solutions (particularly Apache Cocoon)?

Perhaps someone already knows of an Apache or similar User Group in the 
area.

Any other ideas on Apache User Groups also welcome.

If there is a more appropriate to post this notice, please also advise.

Please feel free to get in touch direct - details below.

Many thanks.

Regards,
Pete Hargreaves.
-- 
Mill-Wheel Cottage, Sandford Lane,
Woodley, Reading, Berkshire, England, RG5 4TB.
Tel: +44 (0)118 932 1171,  Fax: +44 (0)118 934 2355,
Email: [EMAIL PROTECTED]

http://pdh-online.com - an introduction.
http://duty-rota.com - for planning your work rotas.
http://u-castellu.com - a Corsican holiday villa.


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

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




Re: cocoon 2 building ...

2001-06-15 Thread Eirik Dentz

I had the same problem trying to build Cocoon2 on with 1.3.1. Downgraded to
Blackdown's 1.3.0 and it built without any problems.

Anyone out there able to build Cocoon2 with 1.3.1 on Linux?  Any special
configuration needed to get it to work? (kernel, C library, classpath)

> From: Christopher Cobb <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 15 Jun 2001 12:26:56 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: cocoon 2 building ...
> 
> I've gotten segfaults using 1.3.1 on Linux with a number of different
> applications.  Stay with 1.3.
> 
> cc
> 
> Sylvain PERROT wrote:
> 
>> Hi all cocooners ...
>> 
>> I have 2 quick questions about cocoon 2 building ...
>> 
>> 1) When I try to build cocoon 2 using the jdk1.3.1  and I only get an
>> error message :
>> 
>> # ./build.sh  -Dinclude.webapp.libs=yes webap
>> p
>> 
>> Apache Cocoon 2 Build System
>> 
>> Buildfile: build.xml
>> /root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
>> $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
>> $ANT_OPTS org.apache.tools.ant.Main "$@"
>> 
>> Can cocoon be builed with jdk1.3.1 ?
>> if yes ... how ?
>> 
>> 2) When I try to build cocoon 2 using the jdk1.2.2 ... it starts compiling
>> ... but it fails very quickly ...
>> 
>> # ./build.sh  -Dinclude.webapp.libs=yes webapp
>> 
>> Apache Cocoon 2 Build System
>> 
>> Buildfile: build.xml
>> 
>> init:
>> --- Apache Cocoon 2.1-dev [1999-2001] 
>> 
>> compile:
>> Compiling 1 source file to /root/jakarta/xml-cocoon2/build/cocoon/classes
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:10: Class javax.naming.Context not found in import.
>> import javax.naming.Context;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:11: Class javax.naming.directory.Attribute not found in
>> import.
>> import javax.naming.directory.Attribute;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:12: Class javax.naming.directory.BasicAttribute not
>> found in import.
>> import javax.naming.directory.BasicAttribute;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:13: Class javax.naming.directory.DirContext not found
>> in import.
>> import javax.naming.directory.DirContext;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:14: Class javax.naming.directory.InitialDirContext not
>> found in import.
>> import javax.naming.directory.InitialDirContext;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:15: Class javax.naming.directory.ModificationItem not
>> found in import.
>> import javax.naming.directory.ModificationItem;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:16: Class javax.naming.directory.SearchControls not
>> found in import.
>> import javax.naming.directory.SearchControls;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:17: Class javax.naming.directory.SearchResult not found
>> in import.
>> import javax.naming.directory.SearchResult;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:18: Class javax.naming.NamingEnumeration not found in
>> import.
>> import javax.naming.NamingEnumeration;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:19: Class javax.naming.NamingException not found in
>> import.
>> import javax.naming.NamingException;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
>> found.
>> protected DirContext ctx;
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:1204: Class javax.naming.NamingException not found in
>> throws.
>> protected void execute() throws Exception, NamingException {
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
>> found.
>> SearchControls constraints = new SearchControls();
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
>> found.
>> SearchControls constraints = new SearchControls();
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
>> LDAPTransformer.java:1213: Class javax.naming.NamingException not found in
>> try.
>> try {
>> ^
>> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformat

disable-output-escaping needed in this situation?

2001-06-15 Thread Wes Morgan

I am trying to generate some Javascript with an XSLT stylesheet. I have 
to generate it with the stylesheet and put it in the document because 
the values that go into the Javascript function calls come from the data 
in the XML file itself. I am also putting HTML into the function calls, 
so this means that I must use ' to quote the strings (otherwise the " 
around the attributes in the HTML tags would confuse the Javascript 
parser). However, some of the data I am pulling from the XML files has 
apostrophes in it already, and I need to be able to include those in the 
final output. However, Cocoon insists on changing ' into '. This 
also confuses the Javascript parser. The apostrophes in the XML are 
entities (') so it would be ideal if I could tell Cocoon to stop 
turning them into '. I can't change the XML files so that they all say 
' (nor would I want to, yuck!), so what am I supposed to do? It 
doesn't seem like disable-output-escaping would be "bad programming 
practice" in this instance. Maybe I'm rushing to judgment here, but it 
seems that it was a poor design decision to *disable* something you 
think a "bad programming practice." After all, goto's in C still compile 
and work, but no C programmer worth her salt would *ever* use one, and 
that's because over the years we have more or less proven you can do 
anything w/o goto's that you can do with them, only better. If someone 
knows a way I can do this with the functionality already in Cocoon, I'll 
recant... :-)

-- 
Wes Morgan

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Debian: apt-get into it.


-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDrckPYRBACX731+mhYmj3oFUCGclJFn3YfM3FCmuLoPxGCy5QtRzHZY4XtM
gQ54gSLkTNafhpLC0S+/BfYVpsumLrkif2AGTg0Dnuww0/xDSLKdWhFZUhcopRy5
xXBnz1PZQCJnCjDcSHl4RaVoywmKcZ3TfaDNnu1/RLtlr9tx5XNbWBnw3wCgntC+
lbCBz+LidCrRrEC2N/PlYpMD/0Icn7Uex7jRYcDx2R78cFKDpUGHMtx7VCzGyQbC
L3kz94mm1/aXt0ELqbq5k8qKPq80kXhJkx7jwSqn0V6XO9GAk85Dkk3GHm/iCli6
KhSzC4m485ZKvPKnEU3Nue9hgvC08YSjrfvXosEZsm5kwcniHphugbviW0C+AdmA
BWEoA/9qoxeIntesKq1MsUAXTgDCkT1BCBGn9YoxWhbiyz5iLPn4nTq2hwR1xqhQ
xztHYJkmSlBHeUIhAicPsk3U8gd9L5S3FEWrelm+1GRBhy1/HRBam33ypgg9U5i6
IDST1hqExj3WPG68pJsRl6TwKkrUGNIXi8/yl2ximBOYooFx7rQrV2VzIE1vcmdh
biAoQmFzc0hvbWJyZSkgPHdlc21Ac2xhY2tuZXQub3JnPohXBBMRAgAXBQI63JD2
BQsHCgMEAxUDAgMWAgECF4AACgkQVHVnnbHtaCXu9wCfQBJ5Vsep8waEZEP7cT5/
el7CIF4AoI3dZamvLWsMK7YPdatRNObsf6/guQENBDrckPoQBADZpcFo6MyA0rhP
q43mNdpfMJm4JnmD5kMnRSli/HDdLk2Epa3EY1wgMB6NovLr8fV/2cp/5KdXg8j/
V780qOZhpQpTL8AXvIw9yMAIwwpARpFl//VVK+3l1+IgzHRWiQC7SWhTsqIk4ppP
kRafwefx8r3KYFxljAmlV2zKNSiQrwADBQP+KDV3Lh/k3IHORiX1FV5fZALbJi+X
TTs+onMndtZyhIPpZ6Z6AMygdXa2WQy2U24tkvmMQdMuIOTCZiCuXsbnBw5FwwvL
tfSloF1R6xfvme8yATDZXJnPFUW5jFwwMto3Hnoh95MqJLfXTpu1FrBXVE4YVSJa
eA1FuaQJnnllGu+IRgQYEQIABgUCOtyQ+gAKCRBUdWedse1oJbQIAJ9uDRktfJHP
5veOAfncvrX99hnHKQCgmdySczcSbc9/YxTAJ+GfA1/OOtU=
=PCOv
-END PGP PUBLIC KEY BLOCK-





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

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




Re: cocoon 2 building ...

2001-06-15 Thread Christopher Cobb

I've gotten segfaults using 1.3.1 on Linux with a number of different
applications.  Stay with 1.3.

cc

Sylvain PERROT wrote:

> Hi all cocooners ...
>
> I have 2 quick questions about cocoon 2 building ...
>
> 1) When I try to build cocoon 2 using the jdk1.3.1  and I only get an
> error message :
>
> # ./build.sh  -Dinclude.webapp.libs=yes webap
> p
>
> Apache Cocoon 2 Build System
> 
> Buildfile: build.xml
> /root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
> $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
> $ANT_OPTS org.apache.tools.ant.Main "$@"
>
> Can cocoon be builed with jdk1.3.1 ?
> if yes ... how ?
>
> 2) When I try to build cocoon 2 using the jdk1.2.2 ... it starts compiling
> ... but it fails very quickly ...
>
> # ./build.sh  -Dinclude.webapp.libs=yes webapp
>
> Apache Cocoon 2 Build System
> 
> Buildfile: build.xml
>
> init:
> --- Apache Cocoon 2.1-dev [1999-2001] 
>
> compile:
> Compiling 1 source file to /root/jakarta/xml-cocoon2/build/cocoon/classes
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:10: Class javax.naming.Context not found in import.
> import javax.naming.Context;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:11: Class javax.naming.directory.Attribute not found in
> import.
> import javax.naming.directory.Attribute;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:12: Class javax.naming.directory.BasicAttribute not
> found in import.
> import javax.naming.directory.BasicAttribute;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:13: Class javax.naming.directory.DirContext not found
> in import.
> import javax.naming.directory.DirContext;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:14: Class javax.naming.directory.InitialDirContext not
> found in import.
> import javax.naming.directory.InitialDirContext;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:15: Class javax.naming.directory.ModificationItem not
> found in import.
> import javax.naming.directory.ModificationItem;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:16: Class javax.naming.directory.SearchControls not
> found in import.
> import javax.naming.directory.SearchControls;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:17: Class javax.naming.directory.SearchResult not found
> in import.
> import javax.naming.directory.SearchResult;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:18: Class javax.naming.NamingEnumeration not found in
> import.
> import javax.naming.NamingEnumeration;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:19: Class javax.naming.NamingException not found in
> import.
> import javax.naming.NamingException;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
> found.
> protected DirContext ctx;
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1204: Class javax.naming.NamingException not found in
> throws.
> protected void execute() throws Exception, NamingException {
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
> found.
> SearchControls constraints = new SearchControls();
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
> found.
> SearchControls constraints = new SearchControls();
>  ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1213: Class javax.naming.NamingException not found in
> try.
> try {
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1225: Variable constraints may not have been
> initialized.
> constraints.setTimeLimit(time_limit);
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
> LDAPTransformer.java:1231: Class javax.naming.NamingEnumeration not found.
>

Re: generate dinamic page from a single index.xml

2001-06-15 Thread Christopher Painter-Wakefield


Simone,

this is very easy to do, and Cocoon provides many different ways you can do
it.

Here's a simple example using only XML and XSLT:

index.xml:
   

   
   

   
 one
 two
 three
   

index.xsl:
   
   http://www.w3.org/1999/XSL/Transform"; version="1.0">

   

   
 
   
 
   

   
 Current item: 
 
 
   
 index.xml?item-number=
   
   Next
 
   

   
 Current item: 
 
 Next
   

   

   


The reason this works is because Cocoon has nicely made it possible for you
to get query parameters in your XSLT stylesheet just by declaring an
 with the same name.  So, the link we create in the stylesheet
uses a query parameter (?item-number=n) and we pick it up with .

There are many more complex approaches you can try, particularly if you get
into XSP, where you have the whole range of Java and servlet programming
available to you.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:

Subject:  generate dinamic page from a single index.xml

Hi
My prior mail was been quite generic. The question  is about the
possibility of create dynamically web page starting from a  single
index.xml page and translate with cocoon and  XSLT. Following the links on
index.xml displayed on browser  the will load a new page that came from
index.xml new  rapresentation.

Is there some suggestion or can be implemented an  equivalent architecture?

Thank for all in advace.
Simone







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




[c1->c2] Is it a must to create a war file ... etc

2001-06-15 Thread Arno Illmann

Hi all! 

And thanks for the help setting the environment for command.com.

And after the build etc. (a bit difficult was deciding to put all cocoon
jar-files into tomcat/lib, and which old jars have to be deleted) my
questions about if it is a must to create a war file are obsolete. ;-)

Best regards, Arno

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

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




AW: cocoon 2 building ...

2001-06-15 Thread Felix Knecht

Thats correct, LDAPTransformer uses the JNDI package.

Felix

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 15. Juni 2001 14:01
> An: [EMAIL PROTECTED]
> Betreff: RE: cocoon 2 building ...
>
>
> Seems like you need the JNDI package (which is packaged with
> jdk1.3, but not
> with 1.2)
>
> See http://java.sun.com/products/jndi/index.html
>
> good luck
> tomK
>
> -Original Message-
> From: Sylvain PERROT [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 15 juni 2001 11:19
> To: [EMAIL PROTECTED]
> Subject: cocoon 2 building ...
>
>
> Hi all cocooners ...
>
> I have 2 quick questions about cocoon 2 building ...
>
> 1) When I try to build cocoon 2 using the jdk1.3.1  and I
> only get an
> error message :
>
> # ./build.sh  -Dinclude.webapp.libs=yes webap
> p
>
> Apache Cocoon 2 Build System
> 
> Buildfile: build.xml
> /root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
> $JAVACMD -classpath "$LOCALCLASSPATH" -
> Dant.home="${ANT_HOME}"
> $ANT_OPTS org.apache.tools.ant.Main "$@"
>
>
> Can cocoon be builed with jdk1.3.1 ?
> if yes ... how ?
>
>
> 2) When I try to build cocoon 2 using the jdk1.2.2 ... it
> starts compiling
> ... but it fails very quickly ...
>
> # ./build.sh  -Dinclude.webapp.libs=yes webapp
>
> Apache Cocoon 2 Build System
> 
> Buildfile: build.xml
>
> init:
> --- Apache Cocoon 2.1-dev [1999-2001] 
>
> compile:
> Compiling 1 source file to
> /root/jakarta/xml-cocoon2/build/cocoon/classes
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:10: Class javax.naming.Context not found
> in import.
> import javax.naming.Context;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:11: Class
> javax.naming.directory.Attribute not found in
> import.
> import javax.naming.directory.Attribute;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:12: Class
> javax.naming.directory.BasicAttribute not
> found in import.
> import javax.naming.directory.BasicAttribute;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:13: Class
> javax.naming.directory.DirContext not found
> in import.
> import javax.naming.directory.DirContext;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:14: Class
> javax.naming.directory.InitialDirContext not
> found in import.
> import javax.naming.directory.InitialDirContext;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:15: Class
> javax.naming.directory.ModificationItem not
> found in import.
> import javax.naming.directory.ModificationItem;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:16: Class
> javax.naming.directory.SearchControls not
> found in import.
> import javax.naming.directory.SearchControls;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:17: Class
> javax.naming.directory.SearchResult not found
> in import.
> import javax.naming.directory.SearchResult;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:18: Class javax.naming.NamingEnumeration
> not found in
> import.
> import javax.naming.NamingEnumeration;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:19: Class javax.naming.NamingException
> not found in
> import.
> import javax.naming.NamingException;
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
> found.
> protected DirContext ctx;
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:1204: Class javax.naming.NamingException
> not found in
> throws.
> protected void execute() throws Exception, NamingException {
>^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:1210: Class
> javax.naming.directory.SearchControls not
> found.
> SearchControls constraints = new SearchControls();
> ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformation/
> LDAPTransformer.java:1210: Class
> javax.naming.directory.SearchControls not
> found.
> SearchControls constraints = new SearchControls();
>  ^
> /root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/t
> ransformat

RE: Rant (was: Re: Style-free XSLT Style Sheets samples code)

2001-06-15 Thread Ross Burton

On 14 Jun 2001 21:32:23 +0200, Uli Mayring wrote:
> There is no consolation, it's too late. Microsoft is well on its way to
> sabotage the Internet by ignoring standards. The only thing we can do is 
> stop using their products. Sorry for sounding religious, but with the
> latest smart tags controversy I am beginning to get very angry at MS.

Grrr. Smart Tags.  Grrr.

> > Could you please recommend browser(s) to use, or at least tell us which one
> > you use?
> 
> Use any browser that supports standards. Mozilla, Konqueror, Opera come to
> mind. I'm using Netscape 4.* and will switch to Mozilla, once it's out the
> door.

Uli - you run Linux don't you?  If you do (and anyone else out there who
does) I can recommend Galeon (galeon.sourceforge.net) - the latest
release (0.11) requires Mozilla 0.9.1 and it excellent.  It does require
GNOME however, but there is a similar project called Skipstone which
only requires GTK+.

Ross
--
Ross Burton Software Engineer
OneEighty Software Ltd  Tel: +44 20 8680 8712
Cygnet HouseFax: +44 20 8680 8453
12-14 Syndenham Road[EMAIL PROTECTED]
Croydon, Surrey CR9 2ET, UK http://www.180sw.com./

Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act OneEighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act


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

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




Re: Xalan version for Cocoon 1.8.x

2001-06-15 Thread Werner Guttmann

Hi,

Given that I have not seen any reply to my question, let's try it again (and
rephrase it at the same time .. ;-)).

Is it possible to move from Xalan 1.2.2 to Xalan 2 without breaking anything
in Cocoon 1.8.2 ?. I just tried this last week, and I am having problems
telling me that the XMLParserLiaison class can not be found. Checked the JAR
file of Xalan 2, and indeed it seems as if that class does not exist
anymore.

Is it that I am doing things wrong, or does Cocoon require Xalan to be of
version 1.x.y ?

Thanks
Werner

Werner Guttmann wrote:

> Hi,
>
> I am running Cocoon 1.8.2 on Solaris 2.7 with Sun's JDK 1.2.2, and I
> having problems with different Cocoon and non-Cocoon web applications
> (residing on the same servlet engine) having different requirements
> related to Xalan version numbers, i.e. some of them requiring Xalan 1.2.
>
> Before describing the problem in detail, would anybody know of a reason
> why Cocoon 1.8.x would require Xalan 1.2.2 (or below) and hence would
> prevent me from switching to Xalan 2 ?
>
> Regards
> Werner
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




RE: cocoon 2 building ...

2001-06-15 Thread tom . klaasen

Seems like you need the JNDI package (which is packaged with jdk1.3, but not
with 1.2)

See http://java.sun.com/products/jndi/index.html

good luck
tomK

-Original Message-
From: Sylvain PERROT [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 15 juni 2001 11:19
To: [EMAIL PROTECTED]
Subject: cocoon 2 building ...


Hi all cocooners ...

I have 2 quick questions about cocoon 2 building ...

1) When I try to build cocoon 2 using the jdk1.3.1  and I only get an
error message :

# ./build.sh  -Dinclude.webapp.libs=yes webap
p

Apache Cocoon 2 Build System

Buildfile: build.xml
/root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
$ANT_OPTS org.apache.tools.ant.Main "$@"


Can cocoon be builed with jdk1.3.1 ?
if yes ... how ?


2) When I try to build cocoon 2 using the jdk1.2.2 ... it starts compiling
... but it fails very quickly ...

# ./build.sh  -Dinclude.webapp.libs=yes webapp

Apache Cocoon 2 Build System

Buildfile: build.xml

init:
--- Apache Cocoon 2.1-dev [1999-2001] 

compile:
Compiling 1 source file to /root/jakarta/xml-cocoon2/build/cocoon/classes
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:10: Class javax.naming.Context not found in import.
import javax.naming.Context;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:11: Class javax.naming.directory.Attribute not found in
import.
import javax.naming.directory.Attribute;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:12: Class javax.naming.directory.BasicAttribute not
found in import.
import javax.naming.directory.BasicAttribute;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:13: Class javax.naming.directory.DirContext not found
in import.
import javax.naming.directory.DirContext;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:14: Class javax.naming.directory.InitialDirContext not
found in import.
import javax.naming.directory.InitialDirContext;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:15: Class javax.naming.directory.ModificationItem not
found in import.
import javax.naming.directory.ModificationItem;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:16: Class javax.naming.directory.SearchControls not
found in import.
import javax.naming.directory.SearchControls;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:17: Class javax.naming.directory.SearchResult not found
in import.
import javax.naming.directory.SearchResult;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:18: Class javax.naming.NamingEnumeration not found in
import.
import javax.naming.NamingEnumeration;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:19: Class javax.naming.NamingException not found in
import.
import javax.naming.NamingException;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
found.
protected DirContext ctx;
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1204: Class javax.naming.NamingException not found in
throws.
protected void execute() throws Exception, NamingException {
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
SearchControls constraints = new SearchControls();
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
SearchControls constraints = new SearchControls();
 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1213: Class javax.naming.NamingException not found in
try.
try {
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1225: Variable constraints may not have been
initialized.
constraints.setTimeLimit(time_limit);
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1231: Class javax.naming.NamingEnumeration not found.
  

RE: Xsl Formatting

2001-06-15 Thread JEULIN Olivier

I'm using Stylus 2.0. Althought it's not a WYSIWYG editor the way you (we?)
want, it helps stylesheet editing: you can see the effect of your templates
in real time, all the templates can be accessed in a scroll list,
auto-completion...
Here is a 30 days free evaluation:
http://www.exceloncorp.com/products/excelon_stylus.html

Hope this helps a little.
Olivier

-Message d'origine-
I am facing lots of problems in formatting xsl's

as we have frontpage for generating html code , emulators for generating wml
code,

do we have any tool for creating xsl's for html , wap  which is easy to use
, placing components and getting xsl code 
instead of writing and checking it again and again

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




Xsl Formatting

2001-06-15 Thread Janesh Vasudeva



I am facing lots of problems in formatting 
xsl's
 
as we have frontpage for generating html code , 
emulators for generating wml code,
 
do we have any tool for creating xsl's for html , 
wap  which is easy to use , placing components and getting xsl code 

instead of writing and checking it again and 
again
 
 
Thanks in advance


RE: How to pass sitemap parameters to XSP

2001-06-15 Thread Torsten Curdt

> Hi Cocooners!
> 
> First congratulations on exelent work. Cocoon2 is shaping up
> quite nicely. 
> 
> What I would like to do is to pass parameter into XSP from
> sitemap. Here is a part of sitemap:
> 
>
> 
>  
> 
> 
>
> 
> How can I get hold of category_id  in XSP... Sorry if this is RTFM.

In the XSP try:

 String fromSitemap = parameters.getParameter("category_id","default");

 
> Also sitemaps compiles in background and replaces old sitemap
> only after compilation finishes? If so can it be turned off since it is
> kinda irritating while developing. 

In cocoon.xconf set your sitemap reloading from asynchron to synchron.
--
Torsten

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

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




RE: Rant (was: Re: Style-free XSLT Style Sheets samples code)

2001-06-15 Thread JEULIN Olivier

> On Fri, 15 Jun 2001, Daniel Schneider wrote:
> 
> > . and IE users can't see the *.text as intended. This 
> is one very simple
> > reason why I really do not recommend IE in any educational 
> environment.
> 
> Even worse with Cocoon-generated XML ==> HTML files. Say you 
> have foo.xml
> and transform it with Cocoon and XSLT to an HTML file. You cannot view
> source with IE, because it insists on wanting to show the original XML
> file instead of the generated HTML. Of course it can't get at 
> the original
> XML and so comes up with an error message to that effect.

Well, I'm using IE 5.0 (NT) and I can display the HTML code...
But I haven't succesfully installed the MS's xml parser and stuff...
This bug appears to be another "functionality" of XML support by IE :-/

Olivier

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

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




Re: problems with xsp date__cking java code?

2001-06-15 Thread Janesh Vasudeva

There's a repository dirctory where all java codes generated by xsp are
foung and it is specified cocoon.properties

check it whether it is commented ?

Janesh
- Original Message -
From: Denny <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 2:55 PM
Subject: Re: problems with xsp date__cking java code?


> Hi Jan
>
> You mention cking the java code:
>
> > You can always check the Java code generated by the xsp, this sometimes
> > helps to understand the error.
>
> Can you tell us how you do that? I'm a newbie as you might have guessed!
>
> TIA
> Denny
>
> Uyttenhove Jan wrote:
> >
> > Lisa,
> >
> > first, java.util.Date is included, but java.util.Calendar isn't.
> > Try to include it by adding :
> >   
> >java.util.Calendar
> >   
> >
> > second, you should put your  block inside your  block
> >
> > So, try this:
> >
> >   
> >java.util.Calendar
> >   
> > 
> >   
> >   Calendar now = Calendar.getInstance();
> >   now.setTime( new Date() );
> >   float hourAngle = (float) now.get( Calendar.HOUR   ) / 12 *
360;
> >   float minAngle  = (float) now.get( Calendar.MINUTE ) / 60 *
360;
> > 
> >   hourAngle
> > minAngle
> > 
> >
> > You can always check the Java code generated by the xsp, this sometimes
> > helps to understand the error.
> >
> > Jan
> >
> > Jan Uyttenhove
> > - Software Engineer -
> > The E-corporation
> > http://www.the-ecorp.com
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 13, 2001 11:28
> > To: [EMAIL PROTECTED]
> > Subject: problems with xsp date
> >
> > Hi all
> >
> > I'm trying to create a simple XSP page that gets the current hour and
minute
> > and passes it on to a stylesheet. The cocoon docs say XSP automatically
> > generates import statements for the most commonly used Java libraries
> > (including java.util.Date).
> >
> > However when I try run the page I get an error: Type expected.
> > now.setTime(new Date());
> >
> > Has anybody got any ideas?
> >
> > Here is the relevant part of the page:
> >
> > 
> >Calendar now = Calendar.getInstance();
> > now.setTime( new Date() );
> > float hourAngle = (float) now.get( Calendar.HOUR   ) / 12 * 360;
> > float minAngle  = (float) now.get( Calendar.MINUTE ) / 60 * 360;
> >   
> >
> > 
> >
> > hourAngle
> >minAngle
> >
> > 
> >
> > thanks in advance!
> >
> > Lisa
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




How to pass sitemap parameters to XSP

2001-06-15 Thread Vjekoslav Nesek

Hi Cocooners!

First congratulations on exelent work. Cocoon2 is shaping up
quite nicely. 

What I would like to do is to pass parameter into XSP from
sitemap. Here is a part of sitemap:

   

 


   

How can I get hold of category_id  in XSP... Sorry if this is RTFM.

Also sitemaps compiles in background and replaces old sitemap
only after compilation finishes? If so can it be turned off since it is
kinda irritating while developing. 

Thanks,
Vjekoslav Nesek

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

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




Re: problems with xsp date__cking java code?

2001-06-15 Thread Denny

Hi Jan

You mention cking the java code:

> You can always check the Java code generated by the xsp, this sometimes
> helps to understand the error.

Can you tell us how you do that? I'm a newbie as you might have guessed!

TIA
Denny

Uyttenhove Jan wrote:
> 
> Lisa,
> 
> first, java.util.Date is included, but java.util.Calendar isn't.
> Try to include it by adding :
>   
>java.util.Calendar
>   
> 
> second, you should put your  block inside your  block
> 
> So, try this:
> 
>   
>java.util.Calendar
>   
> 
>   
>   Calendar now = Calendar.getInstance();
>   now.setTime( new Date() );
>   float hourAngle = (float) now.get( Calendar.HOUR   ) / 12 * 360;
>   float minAngle  = (float) now.get( Calendar.MINUTE ) / 60 * 360;
> 
>   hourAngle
> minAngle
> 
> 
> You can always check the Java code generated by the xsp, this sometimes
> helps to understand the error.
> 
> Jan
> 
> Jan Uyttenhove
> - Software Engineer -
> The E-corporation
> http://www.the-ecorp.com
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 11:28
> To: [EMAIL PROTECTED]
> Subject: problems with xsp date
> 
> Hi all
> 
> I'm trying to create a simple XSP page that gets the current hour and minute
> and passes it on to a stylesheet. The cocoon docs say XSP automatically
> generates import statements for the most commonly used Java libraries
> (including java.util.Date).
> 
> However when I try run the page I get an error: Type expected.
> now.setTime(new Date());
> 
> Has anybody got any ideas?
> 
> Here is the relevant part of the page:
> 
> 
>Calendar now = Calendar.getInstance();
> now.setTime( new Date() );
> float hourAngle = (float) now.get( Calendar.HOUR   ) / 12 * 360;
> float minAngle  = (float) now.get( Calendar.MINUTE ) / 60 * 360;
>   
> 
> 
> 
> hourAngle
>minAngle
> 
> 
> 
> thanks in advance!
> 
> Lisa
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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




cocoon 2 building ...

2001-06-15 Thread Sylvain PERROT

Hi all cocooners ...

I have 2 quick questions about cocoon 2 building ...

1) When I try to build cocoon 2 using the jdk1.3.1  and I only get an
error message :

# ./build.sh  -Dinclude.webapp.libs=yes webap
p

Apache Cocoon 2 Build System

Buildfile: build.xml
/root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
$ANT_OPTS org.apache.tools.ant.Main "$@"


Can cocoon be builed with jdk1.3.1 ?
if yes ... how ?


2) When I try to build cocoon 2 using the jdk1.2.2 ... it starts compiling
... but it fails very quickly ...

# ./build.sh  -Dinclude.webapp.libs=yes webapp

Apache Cocoon 2 Build System

Buildfile: build.xml

init:
--- Apache Cocoon 2.1-dev [1999-2001] 

compile:
Compiling 1 source file to /root/jakarta/xml-cocoon2/build/cocoon/classes
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:10: Class javax.naming.Context not found in import.
import javax.naming.Context;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:11: Class javax.naming.directory.Attribute not found in
import.
import javax.naming.directory.Attribute;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:12: Class javax.naming.directory.BasicAttribute not
found in import.
import javax.naming.directory.BasicAttribute;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:13: Class javax.naming.directory.DirContext not found
in import.
import javax.naming.directory.DirContext;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:14: Class javax.naming.directory.InitialDirContext not
found in import.
import javax.naming.directory.InitialDirContext;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:15: Class javax.naming.directory.ModificationItem not
found in import.
import javax.naming.directory.ModificationItem;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:16: Class javax.naming.directory.SearchControls not
found in import.
import javax.naming.directory.SearchControls;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:17: Class javax.naming.directory.SearchResult not found
in import.
import javax.naming.directory.SearchResult;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:18: Class javax.naming.NamingEnumeration not found in
import.
import javax.naming.NamingEnumeration;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:19: Class javax.naming.NamingException not found in
import.
import javax.naming.NamingException;
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
found.
protected DirContext ctx;
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1204: Class javax.naming.NamingException not found in
throws.
protected void execute() throws Exception, NamingException {
   ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
SearchControls constraints = new SearchControls();
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
SearchControls constraints = new SearchControls();
 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1213: Class javax.naming.NamingException not found in
try.
try {
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1225: Variable constraints may not have been
initialized.
constraints.setTimeLimit(time_limit);
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1231: Class javax.naming.NamingEnumeration not found.
NamingEnumeration ldapresults =
ctx.search(searchbase, filter, constraints);
^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1231: Variable constraints may not have been
initialized.
NamingEnumeratio

Re: [C2] Flash

2001-06-15 Thread cc




On Fri, 15 Jun 2001, Denny wrote:

> 
> You might as well consider the developments taking place in SVG. With
> the inclusion of SMIL and SVG in the not too distant future SVG IMHO
> holds more promise than any "proprietary" format...
> 
> regards
> Denny

 It's not directly XML but you might want to have a look at libming as a php
module ... that's right a module in a module ;), php can also render XML
 but that's another story.

http://opaque.net/ming/

 One can make Flash movies entirly with the ming extensions to php. There
are some usefull examples on the ming site.
 One can directly produce flash stuff or write a .swf for use elsewhere. I too
think svg has great promise but flash works well and now we have several
libraries, libswf which is not GPL and libming which is ;^).

 S' fun got a bit at:

 http://bcbuds.org

> 
> Sylvain BERGEON wrote:
> > 
> > Dmitry Skavisk, is actually developping
> > a Generator-like servlet.
> > 
> > JGenerator 1.2.4 (http://flashgap.com)
> > 
> > It's an open development effort (source forge),
> > It's working fine, as well as the Macromedia Generator,
> > It actually exploit data from text files or jdbc connection.
> > 
> > But they are trying to implement xml data connection.
> > 
> > In my opinion (but I don't know nothing about Java development),
> > JGenerator could be used as a "Flash Serializer" that produce a
> > binary swf (Flash) file by processing a swt (template) with a
> > xml data file .
> > 
> > Try it and tell me your opinion.
> 

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

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




Re: Rant (was: Re: Style-free XSLT Style Sheets samples code)

2001-06-15 Thread Uli Mayring

On Fri, 15 Jun 2001, Daniel Schneider wrote:

> . and IE users can't see the *.text as intended. This is one very simple
> reason why I really do not recommend IE in any educational environment.

Even worse with Cocoon-generated XML ==> HTML files. Say you have foo.xml
and transform it with Cocoon and XSLT to an HTML file. You cannot view
source with IE, because it insists on wanting to show the original XML
file instead of the generated HTML. Of course it can't get at the original
XML and so comes up with an error message to that effect.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


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

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




Re: Rant (was: Re: Style-free XSLT Style Sheets samples code)

2001-06-15 Thread Daniel Schneider

Uli Mayring wrote:
> 
> On Thu, 14 Jun 2001, William Bagby wrote:
> 
> > Please correct me if I'm wrong, but are you saying that IE is not
> > HTTP-compliant?
> 
> Exactly. We as Cocooners see that, for example, in the infamous IE/PDF bug
> (see FAQ). It happens, because IE ignores parts of the HTTP standards in
> favor of a self-invented technique, that (according to MS) works better
> for Windows users. They are perverting the Internet to protect their
> platform.
> 
You don't need Cocoon to see this. Simply try to show source code of some
page on the web. If I have a file like show.text, my server sends it
as text/plain  and Krosoft IE instead of just displaying it, makes a
guess at it's contents and displays as html, xml or whatever it can figure out.
For teaching purposes I frequently do the following:
 ln -s file.hml file.text
 ln -s file.xml file.text
 ln -s file.vrml .
. and IE users can't see the *.text as intended. This is one very simple
reason why I really do not recommend IE in any educational environment.

> > Could you please recommend browser(s) to use, or at least tell us which one
> > you use?

I think that one can quite recommend Mozilla 0.9.1 now. EXCEPT that
you can't see sites that use OLD style DHTML programmed like "if IE
5.x then  else if Netscape then use layers". This Mozilla release
runs MUCH faster than Netscape 6, minus lots of bugs. I'd say it's
almost good enough to be deployed at large scale.  Mozilla 0.9.2
certainly should be.  BUT I admit that I don't read a lot of badly
made commercial DHTML packed sites that are "optimized" for IE. So
IMHO the question now is to know if sites will adapt to NS6/Mozilla
(just make their code standards compliant).

Judge yourself:

http://www.mozilla.org/
http://www.mozilla.org/releases/

You can also try Netscape 6.1 beta released on June 13
http://home.netscape.com/browsers/6/index61pr.html?cp=dowpod61pr

- Daniel

PS: I installed Tomcat 4 / Cocoon 2b1 (binaries) and I was amazed
how well it went. Short installation notes:
http://tecfa.unige.ch/guides/xml/cocoon/install-notes-2.xml
(sorry this is client-side xml with css, need mozilla or IE 5.5)

... now integrating this into apache maybe more difficult I guess ;)

-- 
Dr Daniel K.Schneider, TECFA (Educational Technologies and Learning)
Faculte de Psychologie et des Sciences de l'Education, University of Geneva,
email: [EMAIL PROTECTED]
www:   http://tecfa.unige.ch/tecfa-people/schneider.html
MOO:   tecfamoo.unige.ch 

TECFA - FPSE - Université de Genève
40, Bd. du Pont d'Arve, 1205 Genève
Tel: 41 22 705 9377 - Fax: 41 22 705 9379 - Office#: 6359

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