You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Piroumian, Konstantin" <KP...@flagship.ru> on 2001/02/05 16:38:59 UTC

[C1.8.2] What changed with logicsheets?

Hi, all!

I met a strange problem after upgrading to new Cocoon.
I have a simple framework for Form generation and processing:
    1. XML contents: declares field names, types, some other properties
(required etc).
    2. XSL logic sheet: transforms into XSP and adds form processing logic.
        I use:
        <?cocoon-process type="xslt"?>
        <?xml-stylesheet href="/xsl/cc-xsp.xsl" type="text/xsl"?>

    3. A formatting XSL stylesheet.

I have fields which looks like this:
    <select name="sex" class="menu">
         <required />
    </select>

I get HTML select fields with Cocoon 1.8 as a result of two transformations.
But now after the first transformation I get no select fields at all (in
generated Java class there is no code for select fields).
Why does this happens?

Also, another problem (I think that they are somehow related): in Cocoon
1.8.1 does not work create-session="true" xsp:page attribute.

What's wrong?
I also use FP taglib with my logicsheet. It could cause incorrect
transformation of end-of-line and whitespace characters.

Your help is very appreciated.

Regards,
    Konstantin Piroumian.
Web Application Developer

Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: kpiroumian@flagship.ru
http://www.protek.com







Re: [C1.8.2] What changed with logicsheets?

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> > > > I also use FP taglib with my logicsheet. It could cause incorrect
> > > > transformation of end-of-line and whitespace characters.
> > >
> > > I solved this by deleting \15 prior to writing to the file.
> >
> > I don't use writing to file with FP.
>
> Then where exactly does the fp taglib cause incorrect end-of-line
> characters?

I am not sure that problems caused by FP taglib, but something's changed in
transformation process, because I had fully working application with Cocoon
1.8, and after upgrading to 1.8.2 I get a number of errors:
    - create-session="true" does not affect, I had a similar problem before,
when this code in XSP stylesheet:
        // Create session
        HttpServletSession session = request.getSession(true);
    was becoming:
        // Crete session HttpServletSession session =
request.getSession(true);
    so, no session is declared at all.

I think, that something like this could happen with my <xsl:template
match="select">...
I don't understand why all 'select' tags was removed from the generated XSP
code.
Maybe, the problem is in Xalan.

Regards,
    Konstantin Piroumian

Re: [C1.8.2] What changed with logicsheets?

Posted by Ulrich Mayring <ul...@denic.de>.
"Piroumian, Konstantin" wrote:
> 
> > > I also use FP taglib with my logicsheet. It could cause incorrect
> > > transformation of end-of-line and whitespace characters.
> >
> > I solved this by deleting \15 prior to writing to the file.
> 
> I don't use writing to file with FP.

Then where exactly does the fp taglib cause incorrect end-of-line
characters?

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

Re: [C1.8.2] What changed with logicsheets?

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> > I also use FP taglib with my logicsheet. It could cause incorrect
> > transformation of end-of-line and whitespace characters.
>
> I solved this by deleting \15 prior to writing to the file.

I don't use writing to file with FP.
This can be problem with serializer or some taglib XSL or something else,
which incorrectly transforms the initial XML.

Btw, I saw such a line in Cocoon sources:
...
 if (location.startsWith("resource://")) {
            // FIXME (SM): this should _not_ be system resource, but rather
a resource of current classloader
            resource =
ClassLoader.getSystemResource(location.substring("resource://".length()));
        }
...

Will it be fixed someday or we have to wait for Cocoon2?
I cannot use my taglib from my own *.jar file, I have to use the absolute
path to it in cocoon.properties (file:///...).

>
> Ulrich
>
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>

Re: [C1.8.2] What changed with logicsheets?

Posted by Ulrich Mayring <ul...@denic.de>.
"Piroumian, Konstantin" wrote:
> 
> I also use FP taglib with my logicsheet. It could cause incorrect
> transformation of end-of-line and whitespace characters.

I solved this by deleting \15 prior to writing to the file.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung