Re: [beginner] Installing Cocoon on Debian.

2004-03-18 Thread Zamek
Hello,

Try to install a newer tomcat to your machine. Maybe 4.1.x or 4.2.x.

I am using it Debian unstable with 2.4.23 kernel, and java:
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
from sun.

tomcat is: 4.1.18.

On Thursday 18 March 2004 14.50, Johannes Textor wrote:
> Then I suppose it has nothing to do with the endorsed-libs problem. In
> those cases
> you normally get other exceptions like ClassCastException or
> NoSuchMethodException.
>
> Now I remember I also had this error message once with the the cocoon
> 2.04 binary
> distribution. I then built my own .war file from the 2.1.4 source
> distribution which
> worked fine. Maybe you should try that if you're stuck.
>
> Laurent BERTHELOT wrote:
> >Hello
> >
> >I have the same problem with ParanoidCocoonServlet, the same error.
> >And when I define paranoid-classpath or extra-classpath in my web.xml
> >configuration file, files of my cocoon directory are just list by
> > tomcat.
> >
> >Regards,
> >
> >Laurent
> >

-- 
bye,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



Re: Why source-writing doesn´t append?

2004-03-18 Thread Zamek
Hello,

Thanks it works well, but it seems to be I tried it.
On Thursday 18 March 2004 08.42, Jan Hoskens wrote:
> 
>    log/entry
>    mylog.log
>    
>         
>                 
>         
>    
> 

-- 
udv,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



"Subtracting from uri in sitemap"

2004-03-16 Thread Zamek
Hello All,

I have an sitemap.xmap snippet:

   
  


  


Unfotunately {1} can be dir/file format, forexample 
server/cocoon/app/do-delete-some_dir/any_file.ext

after delete, I need to redirect it to original cocoon:/  
(server/cocoon/app/) 
but cocoon:/ is server/cocoon/app/do-delete-some_dir/

So I need to remove do-delete* from end of uri.

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



Cannot create a xml file :-(

2004-03-12 Thread Zamek
Hello All,

I want to create a log file at login process based on JD Daniels' s xsp 
script (full xsp file and sitemap.xmap snippet are at end of my letter):


  log.xml
/log

  


   
   
   
   
  
   



if I tried to set /home/zamek/log.xml it doesn' t works too?

What do I do wrong?

full xsp is:

http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true"
xmlns:source="http://apache.org/cocoon/source/1.0";
xmlns:util="http://apache.org/xsp/util/2.0";
xmlns:log="http://apache.org/xsp/log";>



portal


SELECT usrid, firstName, lastName, email, 
role_id, role
FROM authenticate 
('',
   
 '')
LIMIT 1















log.xml
/log




























here is my sitemap.xmap snippet:

  


  


  

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



xml database

2004-03-10 Thread Zamek
Hello All,

What is the quickest and shortest way to make a simple xml database? 
Forexample a simple FAQ?

any sample wanted :-)

samples/xmldb is not working me because:
Create collection ...

Create collection should succeed on the first run, but will fail on 
subsequent runs

and I cannot found any insert in this sample:-(

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



Re: logging in xsp

2004-03-10 Thread Zamek
Hello All,

On Wednesday 10 March 2004 12.32, John L. Webber wrote:
> getLogger().debug("your message here");
thanks a lot its works well, log messages are in cocoon's core.log

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



logging in xsp

2004-03-10 Thread Zamek
Hello All,

I tried to logging in my xsp, but it cannot works:

Settings:
WEB-INF/web.xml:
 
  work-directory
  WEB-INF/work


and I've got some samples:
1.sample


Where is my log message???

there isn't xsp.log in this path, and there isn't any error msg in cocoon's 
core.log (level of core.log is debug by cocoon.xconf)

2. sample: no need to define  in my xsp, simply to send messages 
with

 blahblah

there isn't any mesage all of cocoon's logs.

So how can I logging in my xsp?
_Any working example is wanted_ :-)

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



Re: auth with database

2004-03-09 Thread Zamek
Hello,
thanks for reply 

On Tuesday 09 March 2004 15.13, JD Daniels wrote:
> Not sure how those semi colons got there... odd...
I get it from this link:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09607.html

>
> Try taking the session set-attribute right out.. it is not needed as the
> user info is stored in the session with the authentication.
Yes here is my code, but it doesn´t works (can you send me a really working 
version?):


  http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
xmlns:source="http://apache.org/cocoon/source/1.0";
xmlns:util="http://apache.org/xsp/util/2.0";
xmlns:log="http://apache.org/xsp/log/2.0";
>




portal

   
  SELECT usrid, firstName, lastName, email, role_id, role
  FROM authenticate ('',
 '')
  LIMIT 1;
   
   
 




  


  


  


  


   


  


  


  


  


  



context://module-files/auth/stats/
  .xml

/log













Error Results



  
context://module-files/auth/stats/.xml

/log











  

 
   



-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



auth with database

2004-03-09 Thread Zamek
Hello All,

I tried to authenticate from database based on JD. Daniels's:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09607.html

I have some problems:
1. 

 http://apache.org/xsp";;
 xmlns:esql="http://apache.org/cocoon/SQL/v2";;
 xmlns:xsp-request="http://apache.org/xsp/request/2.0";;
 xmlns:xsp-session="http://apache.org/xsp/session/2.0";;
 create-session="true"
 xmlns:source="http://apache.org/cocoon/source/1.0";;
 xmlns:util="http://apache.org/xsp/util/2.0";;
 >
- there are semicolons on end of all lines, which is seems to be syntax 
error.
-  create-session="true" also a syntax error

2 I changed it, and try to run, and I get an error:

ERROR   (2004-03-09) 10:24.55:955   [core.authentication-manager] 
(/cocoon/~zamek/a/do-login-portal) Thread-11/PipelineAuthenticator: 
authenticator: Language Exception
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
authdb_xsp:
ERROR 1 
(org/apache/cocoon/www/file_/home/zamek/public_html/a/java/authdb_xsp.java):
...

this.characters("\n");

  session.setAttribute(String.valueOf("userId"),
// start error (lines 516-516) "String literal is not properly closed by a 
double-quote"
  "
// end error

here is the snippet:



portal

   
  SELECT usrid, firstName, lastName, email, role_id, role
  FROM authenticate ('',
 '')
  LIMIT 1;
   
   
 



  

<- maybe here is the language exception

  


  




So can anybody send me a working version of this xsp?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

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



xsp upload nightmare

2004-03-04 Thread Zamek
Hello All,

I try to use upload with xsp.
Sample is working well, and I try to move uploaded file to my path.

here is my xsp (based upload.xsp):





http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:xsp-response="http://apache.org/xsp/response/2.0";
  xmlns:log="http://apache.org/xsp/log/2.0";>

  
   org.apache.cocoon.components.language.markup.xsp.XSPUtil
   org.apache.avalon.framework.context.ContextException
   java.io.File
   org.apache.cocoon.environment.*
   org.apache.cocoon.components.request.multipart.*
  

  
version 1.
String filename=request.getParameter("upload-file");  

here I am get an error: java.lang.NullPointerException 
It is ok, because there is no upload-file parameter, but I have to handle 
empty parameters.

and then I try to test it:

version 2.
if (request.getParameter("upload-file") != null) {
   String filename=request.getParameter("upload-file");  
}

Once more error:
// end error String filename=request.getParameter("upload-file"); } File 
uploadDir = null; ... Line 76, column 0: Syntax error on keyword "if"; 
"boolean", "void", "byte", "short", "int", "long", "char", "float", 
"double", "Identifier", "interface", "class" expected
I don't know what is it, but another try:

version 3.
   String filename=;

and another error:
. Line 77, column 0: Syntax error on token ";", "{", "+", "-", "--", "++", 
"boolean", "void", "byte", "short", "int", "long", "char", "float", 
"double", "(", "true", "false", "IntegerLiteral", "LongLiteral", 
"FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral", 
"StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier" 
expected


File uploadDir = null;
/** Contextualize this class */
public void contextualize(Context context) throws ContextException {
  uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
}
  


So can anybody send me a working xsp which is move uploaded file to any 
path?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: redirect cocoon http to https

2004-03-04 Thread Zamek
Hello,

In your httpd.conf 


  RewriteEngine on
  RewriteCond %{SERVER_NAME} =your.server.domain
  RewriteRule ^(.*)$  https://your.server.domain/$1



any help in: http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule

On Thursday 04 March 2004 10.33, Tuan Luu wrote:
> Hello
> I have cocoon 2.1.2 mod_jk2, apache httpd 2.0.48, tomcat 4.1.29.
>
> Now I'd like to transfer all http to https:
> http://servername/cocoon --> https://servername/cocoon
>
> I can rewrite or redirect the server to https, but actually not the
> directory.
> can anyone help here?

-- 
bye,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: execute xsp and then redirect

2004-03-02 Thread Zamek
Hello All,

I have a new problem. After delete i have remaining uri with filename:

 

  
  


  
  


  

forexample if I call it with do-delete-dir/filename.ext
it delete file successfully, and make directory list, but its uri is 
remaining:

do-delete-dir/filename.ext
and the next delete is: do-delete-dir/do-delete/dir/newfile.ext and so 
on :-(

So I need to make redirection or forwarding, but how?
Simple redirection have got a redirection limit for this url is exceeded...

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: execute xsp and then redirect

2004-03-02 Thread Zamek
Hello All,

Thanks it works, but the basically problem is, I cannot redirect after 
delete. Originally I want to do:

 





 

but I've got an error:

Redirection limit for this URL exceeded. Unable to load the requested
page. This may be caused by cookies that are blocked.

If I change "
   
  
  


  
  
  
   

 

it works well, but its generate section is similar to "list" pattern.
Are there any forward directive instead of redirect like ?

On Monday 01 March 2004 21.36, Unico Hommes wrote:
> What you want is not possible. A pipeline consists of at least a
> generator and a serializer. Putting a map:redirect-to after a
> map:generate is incorrect. What you may want to do is use actions or
> else flowscript (the latter being the preferred method).
>
> Something like this (not tested, so will contain bugs):
>
> sitemap.xmap:
> -
> 
>
>  
>
> 
>
> 
>
>  
>  
>
>
>
> 
>
> flow.js:
> 
>
> importPackage(Packages.java.io);
>
> function remove() {
> var file = new File(cocoon.parameters.file);
> file["delete"];
> cocoon.redirectTo("list");
> }
>
> Unico
>
> Zamek wrote:
> > Hello All,
> >
> > I have a pattern like:
> >  
> > 
> >   
> >   
> > 
> > 
> > 
> > 
> >
> > and if I have a do-delete-** pattern I have to delete the parameter
> > file, and then need to redirect to list.
> >
> >   
> > 
> >   
> > 
> > 
> >   
> >
> > Redirect cannot works:
> > Redirection limit for this URL exceeded. Unable to load the requested
> > page. This may be caused by cookies that are blocked.
> >
> > How can I combine this?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



execute xsp and then redirect

2004-03-01 Thread Zamek
Hello All,

I have a pattern like:
 

  
  





and if I have a do-delete-** pattern I have to delete the parameter file, 
and then need to redirect to list.

  

  


  

Redirect cannot works:
Redirection limit for this URL exceeded. Unable to load the requested page. 
This may be caused by cookies that are blocked.

How can I combine this?
-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: getting mount point

2004-03-01 Thread Zamek
Hello All,

Thanks, it works well ...

On Monday 01 March 2004 13.21, Jan Hoskens wrote:
> I don't know if there's an input module to do that, but if you need a
> file or dir within your home dir (so an absolute path to your file/dir)
> then you can also use the resolver like this:
>
> 
>   org.apache.excalibur.source.Source
>   java.net.URL
>   org.apache.cocoon.ResourceNotFoundException
>  
>
> 
> try{
>   Source inputSource = this.resolver.resolveURI("my_relative_dir");
> // so if this variable is empty, it will resolve to your home dir
> c:/whateveryourdiris/  (containing your sitemap.xmap)
>   String systemId = inputSource.getURI();
>   File f = new File(new URL(systemId).getFile());
>  }
>  catch( Exception e)
>  {
>   throw new ResourceNotFoundException();
>  }
> 
>
>
> kind regards,
>
> Jan
>
>
> - Original Message -
> From: "Zamek" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 01, 2004 12:59 PM
> Subject: getting mount point
>
> > Hi All,
> >
> > I use my cocoon app by my home directory like
> > http://server/~zamek/app/params...
> >
> > And I would like to get mount point in my xsp page:
> >
> >  
> > 
> >   
> >   
> > 
> > 
> >  
> >
> > Unfortunately realpath doesn't get right path, because it point to
>
> cocoon's
>
> > entry in my system.
> >
> > And I try to pass cocoon:/, but I can get an exception. Are there a
> > predefined "cocoon-protocol" variable in xsp?
> > So how can I get mount point?
> >
> > --
> > thx,
> > Zoltan Zidarics programmer
> > PTE University Pecs, Hungary
> > icq: 43288694
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
udv,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



getting mount point

2004-03-01 Thread Zamek
Hi All,

I use my cocoon app by my home directory like 
http://server/~zamek/app/params...

And I would like to get mount point in my xsp page:

 

  
  


 

Unfortunately realpath doesn't get right path, because it point to cocoon's 
entry in my system.

And I try to pass cocoon:/, but I can get an exception. Are there a 
predefined "cocoon-protocol" variable in xsp?
So how can I get mount point?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: getting username from session after authentication

2004-02-27 Thread Zamek
Hi All,
On Friday 27 February 2004 14.45, Laurent Trillaud wrote:
> Declare this match in you sitemap
> 
> 
> 
>
> 
> 
> 
> 
> 
> with the following session-account.xml
> 
> http://apache.org/cocoon/session/1.0";>
>   
> 
> You should see something like
> 
>  
>   MyLoginName
>   ... and so on depends of your authenticate.xsl
>   ... the tag ID depends also of your authenticate.xsl
>  
> 
Yes I see this:

  

  guest
  cocoon.authentication
  html

  
  

  MyLoginName
  ... and so on depends of your authenticate.xsl
  ... the tag ID depends also of your authenticate.xsl

  


It means there is original authenticating context merged your xml.

> Assuming that the login is store in the ID tag. To access it use the
> following pipeline
> 
>  
>  
> 
>  
> 

Sorry username is empty :-(

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: OpenOfficeGeneration

2004-02-27 Thread Zamek
Hello All,

I am new in Cocoon, but I have a working OO solving.

my sitemap.xmap snippet is:

  
 
   
   
   
 

 
   
   
   
   
   
 
 

   

my ooo2html.xsl is:


http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:svg="http://www.w3.org/2000/svg";
xmlns:office="http://openoffice.org/2000/office";
xmlns:style="http://openoffice.org/2000/style";
xmlns:text="http://openoffice.org/2000/text";
xmlns:table="http://openoffice.org/2000/table";
xmlns:draw="http://openoffice.org/2000/drawing";>



 
 
 
 
 



  
  



  








  
  
  
  






 
 
  





  






  
  
  
  







  
  
   
  
  













  







  





















  
 
  

  
  






  






  
 
  

  
  




  




  
  
  
 
  

  
  





  
 
  

  
  







  





  
  
  

  





  
  :; 



  text-align:left; 
  text-align:center; 
  text-align:right; 
  text-align:justify; 





  font-family:; 



  text-decoration:underline; 



  text-decoration:line-through; 



  text-decoration:blink; 



  background-color:; 



  border-width:; 




  border-top-width:; 



  border-bottom-width:; 



  border-left-width:; 



  border-right-width:; 






  

  





-- 
by,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: getting username from session after authentication

2004-02-27 Thread Zamek
Hi All,

On Thursday 26 February 2004 10.34, Laurent Trillaud wrote:
> Zoltan
> I guess that the authenticate action is missing. The authentication
> context isn't loaded
> Try this stuff
> 
>   
> blah blah
> 
> blah blah
>   
> 
>
> {name} or {user/name} that depend what you have done in the handler
> authentication uri.

Thanks for response, but I am a beginner in Cocoon and I don´t understand 
it, or it doesn´t works for me. :-(
My goal is make different menus depending to valid users or anonymous user.
I would like to make it my xsl if it possible.

I made a short test, please check and modify it:
my sitemap.xmap:

http://apache.org/cocoon/sitemap/1.0";>

  

  

  


  

  



  
  

  

  




  
  
  

   
  
 



  



  

  

  
  
  


  

  

 
   <-- 
here is your stuff 
  





  


  

  





  
  

   
  
  


  



  
  


  


  


  


-- 
many thanks,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



getting username from session after authentication

2004-02-25 Thread Zamek
Hello All,

I need authenticated user's name in my xsl stylesheet to make different 
menus.
There is a session transformer in my sitemap.xmap:

   
   
 
 
 
   

   
   

  
<--- Here is my trying to get username

 
 
 
 
 
   

   
   


and username variable is empty when I logged in :-(

How can I retrieve logged username in my sitemap or my stylesheet?

users.xml is:



  

 cocoon


 guest

  



-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



I don´t understand authentication of multiple documents

2004-02-24 Thread Zamek
Hello All,

Single document protection is working well, but I need to protect a lot of 
documents:

  
 
   

   
  
  
   

 
 
 
   
  
Action of my forms send a request to do-login with username, and if it 
successful it redirect to a predefined uri:

  
  
  



   <--- here is a 
predefined redirect address

  
   
   

How can I redirect it to the correct uri which was requested like 
protected-*?
 

-- 
thanks,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



directory structure of template base webapp

2004-02-09 Thread Zamek
Hi All,

I use template based application based on Eric van der Vlist's "Style-free 
XSLT Style Sheets". 

my webapp directory structure is:
/
+ images
+ js
+ css
+styles
+templates
+unit1
+ unit2
+ unit3..

I would like to use templates, images, css and js from subdirectories.
My sitemap.xmap (All of unitxx directory) is:

  
 
   

   
 
 
   
   
 
 
   

there are some relative link in templates/menu.xml like:


its working only in sitemap.xmap of my webapp root, but not working in 
subdirectories. 
How can I set my webapp root in sitemap.xmap, and how can I use images, css, 
etc from subdirectories?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Equation in Openoffice

2004-02-03 Thread Zamek
Hello All,

My last (I promice :-) ) question is, are there any method to display 
equation from Openoffice.org?

I searched and found ( via google ) an Jeuclide project ( inside cocoon ), 
but I cannot find any reference in my cocoon source :-(

Openoffice stored equation in MathML 1.01. formula in separate objects 
inside document.

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: Openoffice generator

2004-02-03 Thread Zamek
Hello,

Ye! It works fine! Many thanks to you!

On Tuesday 03 February 2004 13.47, Upayavira wrote:

> So you need to pass the name of the document from the sitemap to the
> XSLT:
>
> 
>   ...
>   
> 
>   
>   ...
> 
>
> Then in oo2html.xsl:
> 
>   
>   ...
>   
>
> 

Re: Openoffice generator

2004-02-03 Thread Zamek
Hello,

On Tuesday 03 February 2004 12.59, Upayavira wrote:
> Zamek wrote:
> >On Tuesday 03 February 2004 10.33, Upayavira wrote:
> >>Zamek wrote:
> >>>How can I translate #Pictures/nnn.png to document_name/nnn.png in xsl?
> >>
> >> >alt="Graphic1">
> >
> >xsl template is:
> >
> >
> >   >src="document_name/{substring-after(@xlink:href,'#Pictures/')}"/>
> >
> >
> >It is closed to successfully, it need to retrive name of document only.
>
> Sorry, I don't understand. It seems that the code has done what I
> intended. What are you trying to achieve instead?

For example I have an oo document named voiceip.sxw. I has a lot of image in 
it. Image refrences is like #Pictures/nnn.png are relative links inside 
this document. 

I can get images in my sitemap.xmap like:

  

  

in ooo2html.xsl template need to be convert images to this format.

At this example: voiceip.sxw/nn.png

Original tempalte cannot retrive pictures:


  


because its result is #Pictures/.png

your templates seems to be good, but it cannot retrieve name of document. 

Your template's result is document_name/nnn.png instead of 
voiceip.sxw/n.png. 


-- 
thank you very well,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: Openoffice generator

2004-02-03 Thread Zamek
On Tuesday 03 February 2004 10.33, Upayavira wrote:
> Zamek wrote:
> >How can I translate #Pictures/nnn.png to document_name/nnn.png in xsl?
>
> 

xsl template is:


  


It is closed to successfully, it need to retrive name of document only.

-- 
thank you,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: Openoffice generator

2004-02-03 Thread Zamek
Hello,

On Monday 02 February 2004 13.02, Reinhard Poetz wrote:
> Have a look at the scratchpad (CVS or wait for 2.1.4). You'll find some
> ZIP-Source samples and one is an Openoffice.org one.

It is a good idea, and works well, but :-)

If my Openoffice document has some images I cannot retrieve it, because 
reference of images is #Pictures/.png

I am using ooo2html.xsl from Zope. It handles pictures like:


  


@xlink:href value is #Pictures/nnn.png, but it is only a relative link, 
instead of absolute which is containing document name.

The protocol is zip://Pictures/[EMAIL PROTECTED]

How can I translate #Pictures/nnn.png to document_name/nnn.png in xsl?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Openoffice generator

2004-02-02 Thread Zamek
Hi All,

Are there anybody out there, who is working with Openoffice generator in 
Cocoon?

I tried to setup it based on Yves Vindevogel's wiki document, but I get an 
empty document:
--










--

and when I try to read content.xml from sxw via cocoon 
(http://localhost:/mount/oo/sxw/123.sxw!/content.xml) I get this empty 
result:


It seems to be cocoon cannot get a valid content.xml or "somebody" convert 
it.

My sitemap.xmap is:


http://apache.org/cocoon/sitemap/1.0";>

 




http://localhost:/mount/oo/sxw/{1}.sxw!/content.xml"/>
http://localhost:/mount/oo/sxw/{1}.sxw!/meta.xml"/>

http://localhost:/mount/oo/sxw/{1}.sxw!/styles.xml"/>




 
http://localhost:/mount/oo/sxw/{1}/meta.xml"/>
http://localhost:/mount/oo/sxw/{1}/styles.xml"/>
http://localhost:/mount/oo/sxw/{1}.sxw"/>
http://localhost:/mount/oo/sxw/{1}"/>

  











http://localhost:/mount/oo/sxw/{1}.sxw!/{2}.xml"; 
mime-type="text/plain"/>





http://localhost:/mount/oo/sxw/{1}.sxw!/Pictures/{2}.png"; 
mime-type="image/png"/>

   
   
  



   


 




My environment:
Debian GNU Linux 3.0
java 1.4 from sun,
Cocoon 2.1.3
and Openoffice.org 1.1.0 hungary language

-- 
many thanks,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



multiple transform how?

2003-11-08 Thread Zamek
Hi All,

I want to get a directory list formatted with my portal design.
I use 





it results an xml, and I want to convert it with the next stylesheet:

   
   

I tried this:






   




but it didn't works :-(

Can I use multiple transforms, or is there another solving... ?

-- 
thanks,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



sorry a newbie question

2003-10-27 Thread Zamek
Hello All,

Please tell me (or send a link) the difference */** to **/* on match of 
sitemap entries?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: element name value in xsl

2003-10-23 Thread Zamek
Hello All,

McDonald, Bruce wrote:
> The best place to get questions about XSL and generally fool about is
> http://www.zvon.org/   Go and check out the tutorials and tools.  Quite
> honestly XML and XSLT (especially) is quite a learning curve so you will
> need to do some work.


Ok I understand, 
-- 
thx,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



element name value in xsl

2003-10-22 Thread Zamek
Hello all,

I am new in cocoon (and xml too), and I cannot found any snippets to get any 
element name. For example


  this element name is: ?
  



-- 
thx,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



openoffice files in generator

2003-10-17 Thread Zamek
Hello All,

I am new in cocoon.
I try to use openoffice 1.1.0 files in generator based on 
http://wiki.cocoondev.org/Wiki.jsp?page=OpenOfficeGeneration .
It seems to be working good, but I got an empty html page.
The source of generated html is:

http://www.jclark.com/xt/java/java.net.URLEncoder"; 
xmlns:system="http://www.jclark.com/xt/java/java.lang.System"; 
xmlns:xt="http://www.jclark.com/xt"; xmlns:help="http://openoffice.org/2000/
help" xmlns:config="http://openoffice.org/2001/config"; xmlns:meta="http://
openoffice.org/2000/meta" xmlns:dc="http://purl.org/dc/elements/1.1/"; 
xmlns:script="http://openoffice.org/2000/script"; xmlns:form="http://
openoffice.org/2000/form" xmlns:math="http://www.w3.org/1998/Math/MathML"; 
xmlns:dr3d="http://openoffice.org/2000/dr3d"; xmlns:chart="http://
openoffice.org/2000/chart" xmlns:svg="http://www.w3.org/2000/svg"; 
xmlns:number="http://openoffice.org/2000/datastyle"; xmlns:xlink="http://
www.w3.org/1999/xlink" xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
xmlns:draw="http://openoffice.org/2000/drawing"; xmlns:table="http://
openoffice.org/2000/table" xmlns:text="http://openoffice.org/2000/text"; 
xmlns:style="http://openoffice.org/2000/style"; xmlns:office="http://
openoffice.org/2000/office">











There is no any error in logs.
I am  using cocoon 2.1 from cvs, and OpenOffice 1.1.0 (english)


-- 
thx,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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