Optional authentication

2004-01-08 Thread O . Vobejda
Hi, I'd like to ask, if you have some experiences with optional autenthication. I mean, that sites can be viewed without authentication (without log in) as well as with authentication. But if you are authenticated, serverpages script (one and the same script) can offer you additional

sitemap freezing

2004-01-07 Thread O . Vobejda
Hi, I have a strange problem. I'm using blob:/ source (map:transform src=blob:/pool/table/content[id={1}]/) to put out XSL template from db. That's ok. In this template are imported (by xsl:import href=cocoon:/source/123) some other subtemplates via cocoon:/ protocol (pipeline source/*

disable-output-escaping

2004-01-06 Thread O . Vobejda
Hi, I tried use attribute disable-output-escaping in XSLT transformer (by xsl:value- of and xsl:copy-of), but it doesn't work, it seems (the output is encoded as well as unusing the attribute). What I'm doing wrong? Thanks a lot! Otmar Vobejda

Re: disable-output-escaping

2004-01-06 Thread O . Vobejda
Thanks for your answer, but have I any other choices to create HTML output from HTML fragments, they are readed from database? I'm doing a CMS, so I'm reading some HTML fragments from database (as title, abstract, content of article, etc.) plus many other stuff (forum notes, questionnaires

Impossible to use reader as source of XSLT?

2004-01-06 Thread O . Vobejda
Hi, I have a problem. I want to use transformer, it gets XSL stylesheets not from filesystem, but from database. As some good mind advised, I used cocoon:/ protocol to call another pipeline with databasereader, which returns appropriate XSL stylesheet. But cocoon reports: Streaming of an

Re: disable-output-escaping

2004-01-06 Thread O . Vobejda
Thanks for your idea description. But I don't know, if it would be uneconomical - because I have stored several HTML snippets in one record (they are readed just once). And if I would read every snippet separately, I would become multiple loading. What do you think about it? Otmar Cituji z

Inserting XML

2004-01-05 Thread O . Vobejda
Hi, I'd like to ask, how to insert XML-valid fragment into generated XML document by XSP. I have stored XML fragment (or XHTML or whatever) in the database and I'd like to put it into any element in the serverpages. I tried elementesql:get-string column=xml_part//element or use ESQL helper or

XSL template from database

2004-01-04 Thread O . Vobejda
Hi, I'd like to make the pipeline, where is the XSL template readed from SQL database (not from filesystem). Is it possible? Selecting of appropriate template depends on the one key, it is generated either with serverpages generator or it can be contained in the URI (doesn't care). Thanks a

Re: how to put {1}, {2}... into XSP

2003-12-29 Thread O . Vobejda
Thanks for your answer, but I think, that it would be better non-use parameters in URL (at most for subsidiary reasons), because of easy generating offline version of the web. That's why I want to use this type of URL (for example http://domain/html/en/article/10) as I wrote before. Otmar

how to put {1}, {2}... into XSP

2003-12-28 Thread O . Vobejda
Hi, I have a this problem. I'd like to put parsed pieces of URI into serverpages as parameters. For example: I have URI html/english/article/102 (it means, that I want to get article with ID=102 in english language and in HTML format). Sitemap could look like as map:match pattern=*/*/*/*

Logicsheet as condition

2003-12-02 Thread O . Vobejda
Hi all, I'm making a little project in cocoon and I have been cornered now (nothing unusal :)). I need to implement a permission control of user's actions (it means, that for example some users can create something, another users can just read somehing etc.). All is ok, but I don't know, how

Re: Upload with incorrect encoding

2003-12-01 Thread O . Vobejda
Thanks for your answer. But I'd like to ask, if is possible to do it inside XSP script. I need to do much more stuff with the data of the upload form (another inserts, logic etc.) then just storing the file into db. I know, that it could I do with action too, but it's not as comfortable and

Logicsheet with code inside

2003-12-01 Thread O . Vobejda
Hi, I'd like to do logicsheet, it should just copy of input code. Example: XSP script looks like: new_sheet:tag ... java code, using other logicsheet, simply anything ... /new_sheet:tag XSL logisheet define should look like (I thought): xsl:template match=new_sheet:tag xsp:content

Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
Hi, I have a little problem (I'm not sure, if it is problem of cocoon or pure java - if so, I apologize :). When I want to store into database binary data of uploaded file, many of characters are replaced by '?'. When I tried to store data to the file, everything was ok (it means, that from

Re: Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
Db supports BLOBs, but I never did anything with them in java, less so cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :) osup Cituji z emailu od Jorg Heymans [EMAIL PROTECTED]: Doesn't your database support the blob fieldtype? I am not sure why you store the