Re: Serializig and LF: Problem

2002-09-30 Thread Skansen

Yes My full name is Jakob.

Is it so that Cocoon use the cache in the Work Directory when working with the command 
line tool.

//Jakob
- Original Message - 
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 28, 2002 12:27 AM
Subject: RE: Serializig and LF: Problem


 Jakob (is that your name ?),
 
 I meant the Cocoon's cache, not the browser's one.
 
 Best regards,
 
 - 
Luca Morandini 
GIS Consultant 
   [EMAIL PROTECTED] 
 http://utenti.tripod.it/lmorandini/index.html 
 -
  
 
  -Original Message-
  From: Skansen [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, September 28, 2002 12:08 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: Serializig and LF: Problem
  
  
  It can't be the Cache because i used the Comandline.
  
  //Jakob
  - Original Message - 
  From: Luca Morandini [EMAIL PROTECTED]
  To: Cocoon-users [EMAIL PROTECTED]
  Sent: Thursday, September 26, 2002 10:35 PM
  Subject: RE: Serializig and LF: Problem
  
  
   Skansen,
   
   hold on a second...
   
   The indent tag recognizes only the yes value and the non yes values... I 
mean, whatever you put into it would do 
  the trick (as
   long as it is not yes): if you try foo it will work just as well as no or 
1.
   
   Why it didn't work before ? Because you forgot to touch the XML source 
document after changing the indent tag, hence, 
  the result
   was retrieved from cache: don't worry, I did the same mistake myself :(
   
   Ok, now I think this has been solved for good.
   
   Best regards,
   
   -
  Luca Morandini
  GIS Consultant
 [EMAIL PROTECTED]
   http://utenti.tripod.it/lmorandini/index.html
   -
   
   
-Original Message-
From: Skansen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 8:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Serializig and LF: Problem
   
   
Thanks :)
   
The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent
   
Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?
   
   
Regards
   
   
 Jakob
   
   
P.S
sitemap.xmp Before indent1/indent was added to the serializer.
   
--- Transformer ---
  map:transformers default=xslt
   map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
use-request-parametersfalse/use-request-parameters
use-browser-capabilities-dbfalse/use-browser-capabilities-db
   /map:transformer
  /map:transformers
   
--- Serializer ---
map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
 encodingISO-8859-1/encoding
   /map:serializer
   
--- Resource ---
map:resource name=skinit
 map:transform src=stylesheets/html/{type}.xsl
  map:parameter name=resource value={resource}/
 /map:transform
 map:serialize/
/map:resource
   
--- part of Pipline ---
   
map:match pattern=nav-*.xml
map:generate src=xdocs/{1}.xml/
 map:call resource=skinit
  map:parameter name=resource value={1}/
  map:parameter name=type value=tree2menu/
 /map:call
/map:match
   
   
   
   
   
- Original Message -
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 3:44 PM
Subject: RE: Serializig and LF: Problem
   
   
 snip
  Must admit that I have not noticed that from the first sight. :)
 /snip

 Vadim, you corrected me many times, let me return the favour once in a while 
;)

 snip
  But I would try indent=no anyway.
 /snip

 I tried that to no avail (it was my first thought, too).

 snip
  Anyway, a span will save the day :)
  
 
  Will it? There should be no difference in behaviour - which means that
  this is an issue with serializer.
 /snip

 I guess it will, since span does't break HTML text as div does... though 
it is included in a td... hmmm... don't
really know.

 Anyway, the behaviour of Xalan (or the Serializer) begs further 
investigations.

 Best regards,

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


  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 3:29 PM
  To: [EMAIL PROTECTED]
  Subject: Re

RE: Serializig and LF: Problem

2002-09-30 Thread Luca Morandini

Jakob,

caching is a science in itself... Cocoon relies heavily on caching, which, at 
development time, may be a nuisance.

AFAIK, the use of caching is the same whether you're calling an URI from a browser or 
from command-line.

Best regards,

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

 -Original Message-
 From: Skansen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 9:15 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem
 
 
 Yes My full name is Jakob.
 
 Is it so that Cocoon use the cache in the Work Directory when working with the 
command line tool.
 
 //Jakob
 - Original Message - 
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, September 28, 2002 12:27 AM
 Subject: RE: Serializig and LF: Problem
 
 
  Jakob (is that your name ?),
  
  I meant the Cocoon's cache, not the browser's one.
  
  Best regards,
  
  - 
 Luca Morandini 
 GIS Consultant 
[EMAIL PROTECTED] 
  http://utenti.tripod.it/lmorandini/index.html 
  -
   
  
   -Original Message-
   From: Skansen [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, September 28, 2002 12:08 AM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: Re: Serializig and LF: Problem
   
   
   It can't be the Cache because i used the Comandline.
   
   //Jakob
   - Original Message - 
   From: Luca Morandini [EMAIL PROTECTED]
   To: Cocoon-users [EMAIL PROTECTED]
   Sent: Thursday, September 26, 2002 10:35 PM
   Subject: RE: Serializig and LF: Problem
   
   
Skansen,

hold on a second...

The indent tag recognizes only the yes value and the non yes values... I 
mean, whatever you put into it would do 
   the trick (as
long as it is not yes): if you try foo it will work just as well as no 
or 1.

Why it didn't work before ? Because you forgot to touch the XML source 
document after changing the indent tag, hence, 
   the result
was retrieved from cache: don't worry, I did the same mistake myself :(

Ok, now I think this has been solved for good.

Best regards,

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


 -Original Message-
 From: Skansen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 8:19 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem


 Thanks :)

 The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent

 Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?


 Regards


  Jakob


 P.S
 sitemap.xmp Before indent1/indent was added to the serializer.

 --- Transformer ---
   map:transformers default=xslt
map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
 use-request-parametersfalse/use-request-parameters
 use-browser-capabilities-dbfalse/use-browser-capabilities-db
/map:transformer
   /map:transformers

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

 --- Resource ---
 map:resource name=skinit
  map:transform src=stylesheets/html/{type}.xsl
   map:parameter name=resource value={resource}/
  /map:transform
  map:serialize/
 /map:resource

 --- part of Pipline ---

 map:match pattern=nav-*.xml
 map:generate src=xdocs/{1}.xml/
  map:call resource=skinit
   map:parameter name=resource value={1}/
   map:parameter name=type value=tree2menu/
  /map:call
 /map:match





 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 3:44 PM
 Subject: RE: Serializig and LF: Problem


  snip
   Must admit that I have not noticed that from the first sight. :)
  /snip
 
  Vadim, you corrected me many times, let me return the favour once in a 
while ;)
 
  snip
   But I would try indent=no anyway.
  /snip
 
  I tried that to no avail (it was my first thought, too).
 
  snip
   Anyway, a span will save the day

Re: Serializig and LF: Problem

2002-09-30 Thread Joerg Heinicke

Sorry, but couldn't you both remove some old quotations? Your mails are 
about 16, 17 KB for 5 lines.

Regards,

Joerg

Luca Morandini wrote:
 Jakob,
 
 caching is a science in itself... Cocoon relies heavily on caching, which, at 
development time, may be a nuisance.
 
 AFAIK, the use of caching is the same whether you're calling an URI from a browser 
or from command-line.
 
 Best regards,
 
Luca Morandini


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

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




Re: Serializig and LF: Problem

2002-09-27 Thread Skansen

It can't be the Cache because i used the Comandline.

//Jakob
- Original Message - 
From: Luca Morandini [EMAIL PROTECTED]
To: Cocoon-users [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 10:35 PM
Subject: RE: Serializig and LF: Problem


 Skansen,
 
 hold on a second...
 
 The indent tag recognizes only the yes value and the non yes values... I mean, 
whatever you put into it would do the trick (as
 long as it is not yes): if you try foo it will work just as well as no or 1.
 
 Why it didn't work before ? Because you forgot to touch the XML source document 
after changing the indent tag, hence, the result
 was retrieved from cache: don't worry, I did the same mistake myself :(
 
 Ok, now I think this has been solved for good.
 
 Best regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
  -Original Message-
  From: Skansen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 8:19 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: Serializig and LF: Problem
 
 
  Thanks :)
 
  The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent
 
  Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?
 
 
  Regards
 
 
   Jakob
 
 
  P.S
  sitemap.xmp Before indent1/indent was added to the serializer.
 
  --- Transformer ---
map:transformers default=xslt
 map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
  use-request-parametersfalse/use-request-parameters
  use-browser-capabilities-dbfalse/use-browser-capabilities-db
 /map:transformer
/map:transformers
 
  --- Serializer ---
  map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
   encodingISO-8859-1/encoding
 /map:serializer
 
  --- Resource ---
  map:resource name=skinit
   map:transform src=stylesheets/html/{type}.xsl
map:parameter name=resource value={resource}/
   /map:transform
   map:serialize/
  /map:resource
 
  --- part of Pipline ---
 
  map:match pattern=nav-*.xml
  map:generate src=xdocs/{1}.xml/
   map:call resource=skinit
map:parameter name=resource value={1}/
map:parameter name=type value=tree2menu/
   /map:call
  /map:match
 
 
 
 
 
  - Original Message -
  From: Luca Morandini [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, September 26, 2002 3:44 PM
  Subject: RE: Serializig and LF: Problem
 
 
   snip
Must admit that I have not noticed that from the first sight. :)
   /snip
  
   Vadim, you corrected me many times, let me return the favour once in a while ;)
  
   snip
But I would try indent=no anyway.
   /snip
  
   I tried that to no avail (it was my first thought, too).
  
   snip
Anyway, a span will save the day :)

   
Will it? There should be no difference in behaviour - which means that
this is an issue with serializer.
   /snip
  
   I guess it will, since span does't break HTML text as div does... though it 
is included in a td... hmmm... don't
  really know.
  
   Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
  
   Best regards,
  
   -
  Luca Morandini
  GIS Consultant
 [EMAIL PROTECTED]
   http://utenti.tripod.it/lmorandini/index.html
   -
  
  
-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Serializig and LF: Problem
   
   
Luca Morandini wrote:
   
Vadim,

I think the problem is not related to indentation, since the HTML output 
appears to have no indentation; moreover, I presume
strip-space will be of no use, since there are no spaces to strip in the 
input elements.

Look, the XSL fragment, according to Skansen, is:

td class=mHidiv class=mHspaxsl:attribute

name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td

   
Must admit that I have not noticed that from the first sight. :)
But I would try indent=no anyway.
   
   
And the result is:

td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td

Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore 
this might be a Xalan bug.

Anyway, a span will save the day :)

   
Will it? There should be no difference in behaviour - which means that
this is an issue with serializer.
   
Vadim
   
   
Best regards,

-
   Luca Morandini
   GIS Consultant

RE: Serializig and LF: Problem

2002-09-27 Thread Luca Morandini

Jakob (is that your name ?),

I meant the Cocoon's cache, not the browser's one.

Best regards,

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

 -Original Message-
 From: Skansen [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 28, 2002 12:08 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem
 
 
 It can't be the Cache because i used the Comandline.
 
 //Jakob
 - Original Message - 
 From: Luca Morandini [EMAIL PROTECTED]
 To: Cocoon-users [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 10:35 PM
 Subject: RE: Serializig and LF: Problem
 
 
  Skansen,
  
  hold on a second...
  
  The indent tag recognizes only the yes value and the non yes values... I mean, 
whatever you put into it would do 
 the trick (as
  long as it is not yes): if you try foo it will work just as well as no or 
1.
  
  Why it didn't work before ? Because you forgot to touch the XML source document 
after changing the indent tag, hence, 
 the result
  was retrieved from cache: don't worry, I did the same mistake myself :(
  
  Ok, now I think this has been solved for good.
  
  Best regards,
  
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
  
  
   -Original Message-
   From: Skansen [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 26, 2002 8:19 PM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: Re: Serializig and LF: Problem
  
  
   Thanks :)
  
   The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent
  
   Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?
  
  
   Regards
  
  
Jakob
  
  
   P.S
   sitemap.xmp Before indent1/indent was added to the serializer.
  
   --- Transformer ---
 map:transformers default=xslt
  map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
   use-request-parametersfalse/use-request-parameters
   use-browser-capabilities-dbfalse/use-browser-capabilities-db
  /map:transformer
 /map:transformers
  
   --- Serializer ---
   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
  /map:serializer
  
   --- Resource ---
   map:resource name=skinit
map:transform src=stylesheets/html/{type}.xsl
 map:parameter name=resource value={resource}/
/map:transform
map:serialize/
   /map:resource
  
   --- part of Pipline ---
  
   map:match pattern=nav-*.xml
   map:generate src=xdocs/{1}.xml/
map:call resource=skinit
 map:parameter name=resource value={1}/
 map:parameter name=type value=tree2menu/
/map:call
   /map:match
  
  
  
  
  
   - Original Message -
   From: Luca Morandini [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, September 26, 2002 3:44 PM
   Subject: RE: Serializig and LF: Problem
  
  
snip
 Must admit that I have not noticed that from the first sight. :)
/snip
   
Vadim, you corrected me many times, let me return the favour once in a while ;)
   
snip
 But I would try indent=no anyway.
/snip
   
I tried that to no avail (it was my first thought, too).
   
snip
 Anyway, a span will save the day :)
 

 Will it? There should be no difference in behaviour - which means that
 this is an issue with serializer.
/snip
   
I guess it will, since span does't break HTML text as div does... though 
it is included in a td... hmmm... don't
   really know.
   
Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
   
Best regards,
   
-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-
   
   
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 3:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem


 Luca Morandini wrote:

 Vadim,
 
 I think the problem is not related to indentation, since the HTML output 
appears to have no indentation; 
 moreover, I presume
 strip-space will be of no use, since there are no spaces to strip in the 
input elements.
 
 Look, the XSL fragment, according to Skansen, is:
 
 td class=mHidiv class=mHspaxsl:attribute
 
name=hrefxsl:textindex.html/xsl:text

Re: Serializig and LF: Problem

2002-09-26 Thread Vadim Gritsenko

Skansen wrote:

Hello

When using the XSL stylesheet below cocoon gives the output below.

The problem is that after a td or a tddiv i can't have a LF or CR.
If there is one i get aditional height in the row. (which is bad)

What i would like to get is:

td
diva...a//div

Any idea how.


1. Put this on one line
2. http://www.w3.org/TR/xslt#strip
Use strip-space


I'm using cocoon from 20020826 on vm1.3 
I tried the output in Mozilla 1.1 and IE 5.5. With a stylesheet and 
html.../html around it.

P.S
Cocoon reverse the attributes on output :)


It's Xalan or Xerces.

Vadim



Jakob

XSL Transformation

?xml version=1.0?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/
  xsl:apply-templates/
/xsl:template

xsl:template match=TREE
 div id=header
  !-- Navigation Bar --
  table width=759 cellspacing=0 cellpadding=0  border=0 height=17 
class=sM bgcolor=#336699
trtd width=759 class=mH 
  div class=mHtSP
 table width=455 cellspacing=0 cellpadding=0 border=0 height=15
 tr
td class=mHidiv class=mHspaxsl:attribute 
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
   xsl:for-each select=NODE
td class=mHidiv class=mHspaxsl:attribute 
name=hrefxsl:textxb-/xsl:textxsl:value-of 
select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of 
select=TABNAME//b/a/div/td
   /xsl:for-each
 /tr
 /table
  /div
/td/tr
  /table
 /div
/xsl:template

/xsl:stylesheet




- Output from Cocoon

div id=header
table bgcolor=#336699 class=sM height=17 border=0 cellpadding=0 
cellspacing=0 width=759
tr
td class=mH width=759
div class=mHtSP
table height=15 border=0 cellpadding=0 cellspacing=0 width=455
tr
td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td
/tr
/table
/div
/td
/tr
/table
/div
  





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

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




Re: Serializig and LF: Problem

2002-09-26 Thread Vadim Gritsenko

Vadim Gritsenko wrote:

 Skansen wrote:

 Hello

 When using the XSL stylesheet below cocoon gives the output below.

 The problem is that after a td or a tddiv i can't have a LF or CR.
 If there is one i get aditional height in the row. (which is bad)

 What i would like to get is:

 td
 diva...a//div

 Any idea how.


 1. Put this on one line
 2. http://www.w3.org/TR/xslt#strip
 Use strip-space


Another thing to check is that html serializer has indent set to no:

indentno/indent

See 
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT

Vadim



 I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla 
 1.1 and IE 5.5. With a stylesheet and html.../html around it.

 P.S
 Cocoon reverse the attributes on output :)


 It's Xalan or Xerces.

 Vadim



 Jakob

 XSL Transformation

 ?xml version=1.0?
 xsl:stylesheet version=1.0 
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:template match=/
  xsl:apply-templates/
 /xsl:template

 xsl:template match=TREE
 div id=header
  !-- Navigation Bar --
  table width=759 cellspacing=0 cellpadding=0  border=0 
 height=17 class=sM bgcolor=#336699
trtd width=759 class=mH 
  div class=mHtSP
 table width=455 cellspacing=0 cellpadding=0 border=0 
 height=15
 tr
td class=mHidiv class=mHspaxsl:attribute 
 
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td 

   xsl:for-each select=NODE
td class=mHidiv class=mHspaxsl:attribute 
 name=hrefxsl:textxb-/xsl:textxsl:value-of 
 select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of 
 select=TABNAME//b/a/div/td
   /xsl:for-each
 /tr
 /table
  /div
/td/tr
  /table
 /div
 /xsl:template

 /xsl:stylesheet




 - Output from Cocoon

 div id=header
 table bgcolor=#336699 class=sM height=17 border=0 
 cellpadding=0 cellspacing=0 width=759
 tr
 td class=mH width=759
 div class=mHtSP
 table height=15 border=0 cellpadding=0 cellspacing=0 
 width=455
 tr
 td class=mHi
 div class=mHsp
 a href=index.htmlbHome/b/a
 /div
 /td
 /tr
 /table
 /div
 /td
 /tr
 /table
 /div





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

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




RE: Serializig and LF: Problem

2002-09-26 Thread Luca Morandini

Vadim,

I think the problem is not related to indentation, since the HTML output appears to 
have no indentation; moreover, I presume
strip-space will be of no use, since there are no spaces to strip in the input 
elements.

Look, the XSL fragment, according to Skansen, is:

td class=mHidiv class=mHspaxsl:attribute
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td

And the result is:

td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td

Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this might 
be a Xalan bug.

Anyway, a span will save the day :)

Best regards,

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


 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 2:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem


 Vadim Gritsenko wrote:

  Skansen wrote:
 
  Hello
 
  When using the XSL stylesheet below cocoon gives the output below.
 
  The problem is that after a td or a tddiv i can't have a LF or CR.
  If there is one i get aditional height in the row. (which is bad)
 
  What i would like to get is:
 
  td
  diva...a//div
 
  Any idea how.
 
 
  1. Put this on one line
  2. http://www.w3.org/TR/xslt#strip
  Use strip-space


 Another thing to check is that html serializer has indent set to no:

 indentno/indent

 See
 http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT

 Vadim



  I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla
  1.1 and IE 5.5. With a stylesheet and html.../html around it.
 
  P.S
  Cocoon reverse the attributes on output :)
 
 
  It's Xalan or Xerces.
 
  Vadim
 
 
 
  Jakob
 
  XSL Transformation
 
  ?xml version=1.0?
  xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:template match=/
   xsl:apply-templates/
  /xsl:template
 
  xsl:template match=TREE
  div id=header
   !-- Navigation Bar --
   table width=759 cellspacing=0 cellpadding=0  border=0
  height=17 class=sM bgcolor=#336699
 trtd width=759 class=mH 
   div class=mHtSP
  table width=455 cellspacing=0 cellpadding=0 border=0
  height=15
  tr
 td class=mHidiv class=mHspaxsl:attribute
  
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
 
xsl:for-each select=NODE
 td class=mHidiv class=mHspaxsl:attribute
  name=hrefxsl:textxb-/xsl:textxsl:value-of
  select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of
  select=TABNAME//b/a/div/td
/xsl:for-each
  /tr
  /table
   /div
 /td/tr
   /table
  /div
  /xsl:template
 
  /xsl:stylesheet
 
 
 
 
  - Output from Cocoon
 
  div id=header
  table bgcolor=#336699 class=sM height=17 border=0
  cellpadding=0 cellspacing=0 width=759
  tr
  td class=mH width=759
  div class=mHtSP
  table height=15 border=0 cellpadding=0 cellspacing=0
  width=455
  tr
  td class=mHi
  div class=mHsp
  a href=index.htmlbHome/b/a
  /div
  /td
  /tr
  /table
  /div
  /td
  /tr
  /table
  /div
 




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

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



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

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




Re: Serializig and LF: Problem

2002-09-26 Thread Vadim Gritsenko

Luca Morandini wrote:

Vadim,

I think the problem is not related to indentation, since the HTML output appears to 
have no indentation; moreover, I presume
strip-space will be of no use, since there are no spaces to strip in the input 
elements.

Look, the XSL fragment, according to Skansen, is:

td class=mHidiv class=mHspaxsl:attribute
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td


Must admit that I have not noticed that from the first sight. :)
But I would try indent=no anyway.


And the result is:

td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td

Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this might 
be a Xalan bug.

Anyway, a span will save the day :)


Will it? There should be no difference in behaviour - which means that 
this is an issue with serializer.

Vadim


Best regards,

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


  

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Serializig and LF: Problem


Vadim Gritsenko wrote:



Skansen wrote:

  

Hello

When using the XSL stylesheet below cocoon gives the output below.

The problem is that after a td or a tddiv i can't have a LF or CR.
If there is one i get aditional height in the row. (which is bad)

What i would like to get is:

td
diva...a//div

Any idea how.


1. Put this on one line
2. http://www.w3.org/TR/xslt#strip
Use strip-space
  

Another thing to check is that html serializer has indent set to no:

indentno/indent

See
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT

Vadim





I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla
1.1 and IE 5.5. With a stylesheet and html.../html around it.

P.S
Cocoon reverse the attributes on output :)



It's Xalan or Xerces.

Vadim



  

Jakob

XSL Transformation

?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/
 xsl:apply-templates/
/xsl:template

xsl:template match=TREE
div id=header
 !-- Navigation Bar --
 table width=759 cellspacing=0 cellpadding=0  border=0
height=17 class=sM bgcolor=#336699
   trtd width=759 class=mH 
 div class=mHtSP
table width=455 cellspacing=0 cellpadding=0 border=0
height=15
tr
   td class=mHidiv class=mHspaxsl:attribute
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td

  xsl:for-each select=NODE
   td class=mHidiv class=mHspaxsl:attribute
name=hrefxsl:textxb-/xsl:textxsl:value-of
select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of
select=TABNAME//b/a/div/td
  /xsl:for-each
/tr
/table
 /div
   /td/tr
 /table
/div
/xsl:template

/xsl:stylesheet




- Output from Cocoon

div id=header
table bgcolor=#336699 class=sM height=17 border=0
cellpadding=0 cellspacing=0 width=759
tr
td class=mH width=759
div class=mHtSP
table height=15 border=0 cellpadding=0 cellspacing=0
width=455
tr
td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td
/tr
/table
/div
/td
/tr
/table
/div




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

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




RE: Serializig and LF: Problem

2002-09-26 Thread Luca Morandini

snip
 Must admit that I have not noticed that from the first sight. :)
/snip

Vadim, you corrected me many times, let me return the favour once in a while ;)

snip
 But I would try indent=no anyway.
/snip

I tried that to no avail (it was my first thought, too).

snip
 Anyway, a span will save the day :)
 
 
 Will it? There should be no difference in behaviour - which means that 
 this is an issue with serializer.
/snip

I guess it will, since span does't break HTML text as div does... though it is 
included in a td... hmmm... don't really know.

Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.

Best regards,

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

 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 3:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem
 
 
 Luca Morandini wrote:
 
 Vadim,
 
 I think the problem is not related to indentation, since the HTML output appears to 
have no indentation; moreover, I presume
 strip-space will be of no use, since there are no spaces to strip in the input 
elements.
 
 Look, the XSL fragment, according to Skansen, is:
 
 td class=mHidiv class=mHspaxsl:attribute
 
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
 
 
 Must admit that I have not noticed that from the first sight. :)
 But I would try indent=no anyway.
 
 
 And the result is:
 
 td class=mHi
 div class=mHsp
 a href=index.htmlbHome/b/a
 /div
 /td
 
 Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this 
might be a Xalan bug.
 
 Anyway, a span will save the day :)
 
 
 Will it? There should be no difference in behaviour - which means that 
 this is an issue with serializer.
 
 Vadim
 
 
 Best regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
   
 
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 2:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem
 
 
 Vadim Gritsenko wrote:
 
 
 
 Skansen wrote:
 
   
 
 Hello
 
 When using the XSL stylesheet below cocoon gives the output below.
 
 The problem is that after a td or a tddiv i can't have a LF or CR.
 If there is one i get aditional height in the row. (which is bad)
 
 What i would like to get is:
 
 td
 diva...a//div
 
 Any idea how.
 
 
 1. Put this on one line
 2. http://www.w3.org/TR/xslt#strip
 Use strip-space
   
 
 Another thing to check is that html serializer has indent set to no:
 
 indentno/indent
 
 See
 http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT
 
 Vadim
 
 
 
 
 
 I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla
 1.1 and IE 5.5. With a stylesheet and html.../html around it.
 
 P.S
 Cocoon reverse the attributes on output :)
 
 
 
 It's Xalan or Xerces.
 
 Vadim
 
 
 
   
 
 Jakob
 
 XSL Transformation
 
 ?xml version=1.0?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:template match=/
  xsl:apply-templates/
 /xsl:template
 
 xsl:template match=TREE
 div id=header
  !-- Navigation Bar --
  table width=759 cellspacing=0 cellpadding=0  border=0
 height=17 class=sM bgcolor=#336699
trtd width=759 class=mH 
  div class=mHtSP
 table width=455 cellspacing=0 cellpadding=0 border=0
 height=15
 tr
td class=mHidiv class=mHspaxsl:attribute
 
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
 
   xsl:for-each select=NODE
td class=mHidiv class=mHspaxsl:attribute
 name=hrefxsl:textxb-/xsl:textxsl:value-of
 select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of
 select=TABNAME//b/a/div/td
   /xsl:for-each
 /tr
 /table
  /div
/td/tr
  /table
 /div
 /xsl:template
 
 /xsl:stylesheet
 
 
 
 
 - Output from Cocoon
 
 div id=header
 table bgcolor=#336699 class=sM height=17 border=0
 cellpadding=0 cellspacing=0 width=759
 tr
 td class=mH width=759
 div class=mHtSP
 table height=15 border=0 cellpadding=0 cellspacing=0
 width=455
 tr
 td class=mHi
 div class=mHsp
 a href=index.htmlbHome/b/a
 /div
 /td
 /tr
 /table
 /div
 /td
 /tr
 /table
 /div
 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED

Re: Serializig and LF: Problem

2002-09-26 Thread Skansen

Thanks :)

The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent

Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?


Regards


 Jakob


P.S
sitemap.xmp Before indent1/indent was added to the serializer.

--- Transformer ---
  map:transformers default=xslt
   map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
use-request-parametersfalse/use-request-parameters
use-browser-capabilities-dbfalse/use-browser-capabilities-db
   /map:transformer
  /map:transformers

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

--- Resource ---
map:resource name=skinit
 map:transform src=stylesheets/html/{type}.xsl
  map:parameter name=resource value={resource}/
 /map:transform
 map:serialize/
/map:resource

--- part of Pipline ---

map:match pattern=nav-*.xml
map:generate src=xdocs/{1}.xml/
 map:call resource=skinit
  map:parameter name=resource value={1}/
  map:parameter name=type value=tree2menu/
 /map:call
/map:match





- Original Message - 
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 3:44 PM
Subject: RE: Serializig and LF: Problem


 snip
  Must admit that I have not noticed that from the first sight. :)
 /snip
 
 Vadim, you corrected me many times, let me return the favour once in a while ;)
 
 snip
  But I would try indent=no anyway.
 /snip
 
 I tried that to no avail (it was my first thought, too).
 
 snip
  Anyway, a span will save the day :)
  
  
  Will it? There should be no difference in behaviour - which means that 
  this is an issue with serializer.
 /snip
 
 I guess it will, since span does't break HTML text as div does... though it is 
included in a td... hmmm... don't really know.
 
 Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
 
 Best regards,
 
 - 
Luca Morandini 
GIS Consultant 
   [EMAIL PROTECTED] 
 http://utenti.tripod.it/lmorandini/index.html 
 -
  
 
  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 3:29 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Serializig and LF: Problem
  
  
  Luca Morandini wrote:
  
  Vadim,
  
  I think the problem is not related to indentation, since the HTML output appears 
to have no indentation; moreover, I presume
  strip-space will be of no use, since there are no spaces to strip in the input 
elements.
  
  Look, the XSL fragment, according to Skansen, is:
  
  td class=mHidiv class=mHspaxsl:attribute
  
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
  
  
  Must admit that I have not noticed that from the first sight. :)
  But I would try indent=no anyway.
  
  
  And the result is:
  
  td class=mHi
  div class=mHsp
  a href=index.htmlbHome/b/a
  /div
  /td
  
  Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this 
might be a Xalan bug.
  
  Anyway, a span will save the day :)
  
  
  Will it? There should be no difference in behaviour - which means that 
  this is an issue with serializer.
  
  Vadim
  
  
  Best regards,
  
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
  
  

  
  -Original Message-
  From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 2:41 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Serializig and LF: Problem
  
  
  Vadim Gritsenko wrote:
  
  
  
  Skansen wrote:
  

  
  Hello
  
  When using the XSL stylesheet below cocoon gives the output below.
  
  The problem is that after a td or a tddiv i can't have a LF or CR.
  If there is one i get aditional height in the row. (which is bad)
  
  What i would like to get is:
  
  td
  diva...a//div
  
  Any idea how.
  
  
  1. Put this on one line http://www.w3.org/TR/xslt#strip

  2. http://www.w3.org/TR/xslt#strip
  Use strip-space

  
  Another thing to check is that html serializer has indent set to no:
  
  indentno/indent
  
  See
  http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT
  
  Vadim
  
  
  
  
  
  I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla
  1.1 and IE 5.5. With a stylesheet and html.../html around it.
  
  P.S
  Cocoon reverse the attributes on output :)
  
  
  
  It's Xalan or Xerces.
  
  Vadim
  
  
  

  
  Jakob
  
  XSL Transformation
  
  ?xml version=1.0?
  xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org

Re: Serializig and LF: Problem

2002-09-26 Thread Vadim Gritsenko

Skansen wrote:

Thanks :)

The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent


Good.


Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?


You put it into address line of your favorite browser and read it 
whenever you have time
:)


Vadim


Regards


 Jakob


P.S
sitemap.xmp Before indent1/indent was added to the serializer.

--- Transformer ---
  map:transformers default=xslt
   map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
use-request-parametersfalse/use-request-parameters
use-browser-capabilities-dbfalse/use-browser-capabilities-db
   /map:transformer
  /map:transformers

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

--- Resource ---
map:resource name=skinit
 map:transform src=stylesheets/html/{type}.xsl
  map:parameter name=resource value={resource}/
 /map:transform
 map:serialize/
/map:resource

--- part of Pipline ---

map:match pattern=nav-*.xml
map:generate src=xdocs/{1}.xml/
 map:call resource=skinit
  map:parameter name=resource value={1}/
  map:parameter name=type value=tree2menu/
 /map:call
/map:match





- Original Message - 
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 3:44 PM
Subject: RE: Serializig and LF: Problem


  

snip


Must admit that I have not noticed that from the first sight. :)
  

/snip

Vadim, you corrected me many times, let me return the favour once in a while ;)

snip


But I would try indent=no anyway.
  

/snip

I tried that to no avail (it was my first thought, too).

snip


Anyway, a span will save the day :)



Will it? There should be no difference in behaviour - which means that 
this is an issue with serializer.
  

/snip

I guess it will, since span does't break HTML text as div does... though it is 
included in a td... hmmm... don't really know.

Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.

Best regards,

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



-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Serializig and LF: Problem


Luca Morandini wrote:

  

Vadim,

I think the problem is not related to indentation, since the HTML output appears 
to have no indentation; moreover, I presume
strip-space will be of no use, since there are no spaces to strip in the input 
elements.

Look, the XSL fragment, according to Skansen, is:

td class=mHidiv class=mHspaxsl:attribute
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td



Must admit that I have not noticed that from the first sight. :)
But I would try indent=no anyway.


  

And the result is:

td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td

Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this 
might be a Xalan bug.

Anyway, a span will save the day :)



Will it? There should be no difference in behaviour - which means that 
this is an issue with serializer.

Vadim


  

Best regards,

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


 



-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Serializig and LF: Problem


Vadim Gritsenko wrote:

   

  

Skansen wrote:

 



Hello

When using the XSL stylesheet below cocoon gives the output below.

The problem is that after a td or a tddiv i can't have a LF or CR.
If there is one i get aditional height in the row. (which is bad)

What i would like to get is:

td
diva...a//div

Any idea how.
   

  

1. Put this on one line http://www.w3.org/TR/xslt#strip



  

2. http://www.w3.org/TR/xslt#strip
Use strip-space
 



Another thing to check is that html serializer has indent set to no:

indentno/indent

See
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT

Vadim



   

  

I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla
1.1 and IE 5.5. With a stylesheet and html.../html around it.

P.S
Cocoon reverse the attributes on output :)

   

  

It's Xalan or Xerces.

Vadim



 



Jakob

XSL Transformation

?xml version=1.0

RE: Serializig and LF: Problem

2002-09-26 Thread Luca Morandini

Skansen,

hold on a second...

The indent tag recognizes only the yes value and the non yes values... I mean, 
whatever you put into it would do the trick (as
long as it is not yes): if you try foo it will work just as well as no or 1.

Why it didn't work before ? Because you forgot to touch the XML source document 
after changing the indent tag, hence, the result
was retrieved from cache: don't worry, I did the same mistake myself :(

Ok, now I think this has been solved for good.

Best regards,

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


 -Original Message-
 From: Skansen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 8:19 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Serializig and LF: Problem


 Thanks :)

 The tip on indent dit it but it should be put in the HTML serializer as 
indent1/indent

 Still got a one loose end were do it put  http://www.w3.org/TR/xslt#strip;?


 Regards


  Jakob


 P.S
 sitemap.xmp Before indent1/indent was added to the serializer.

 --- Transformer ---
   map:transformers default=xslt
map:transformer name=xslt  
src=org.apache.cocoon.transformation.TraxTransformer
 use-request-parametersfalse/use-request-parameters
 use-browser-capabilities-dbfalse/use-browser-capabilities-db
/map:transformer
   /map:transformers

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

 --- Resource ---
 map:resource name=skinit
  map:transform src=stylesheets/html/{type}.xsl
   map:parameter name=resource value={resource}/
  /map:transform
  map:serialize/
 /map:resource

 --- part of Pipline ---

 map:match pattern=nav-*.xml
 map:generate src=xdocs/{1}.xml/
  map:call resource=skinit
   map:parameter name=resource value={1}/
   map:parameter name=type value=tree2menu/
  /map:call
 /map:match





 - Original Message -
 From: Luca Morandini [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 3:44 PM
 Subject: RE: Serializig and LF: Problem


  snip
   Must admit that I have not noticed that from the first sight. :)
  /snip
 
  Vadim, you corrected me many times, let me return the favour once in a while ;)
 
  snip
   But I would try indent=no anyway.
  /snip
 
  I tried that to no avail (it was my first thought, too).
 
  snip
   Anyway, a span will save the day :)
   
  
   Will it? There should be no difference in behaviour - which means that
   this is an issue with serializer.
  /snip
 
  I guess it will, since span does't break HTML text as div does... though it is 
included in a td... hmmm... don't
 really know.
 
  Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
 
  Best regards,
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
   -Original Message-
   From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 26, 2002 3:29 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Serializig and LF: Problem
  
  
   Luca Morandini wrote:
  
   Vadim,
   
   I think the problem is not related to indentation, since the HTML output 
appears to have no indentation; moreover, I presume
   strip-space will be of no use, since there are no spaces to strip in the input 
elements.
   
   Look, the XSL fragment, according to Skansen, is:
   
   td class=mHidiv class=mHspaxsl:attribute
   
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
   
  
   Must admit that I have not noticed that from the first sight. :)
   But I would try indent=no anyway.
  
  
   And the result is:
   
   td class=mHi
   div class=mHsp
   a href=index.htmlbHome/b/a
   /div
   /td
   
   Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this 
might be a Xalan bug.
   
   Anyway, a span will save the day :)
   
  
   Will it? There should be no difference in behaviour - which means that
   this is an issue with serializer.
  
   Vadim
  
  
   Best regards,
   
   -
  Luca Morandini
  GIS Consultant
 [EMAIL PROTECTED]
   http://utenti.tripod.it/lmorandini/index.html
   -
   
   
   
   
   -Original Message-
   From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 26, 2002 2:41 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Serializig and LF: Problem
   
   
   Vadim Gritsenko wrote:
   
   
   
   Skansen wrote

Serializig and LF: Problem

2002-09-25 Thread Skansen

Hello

When using the XSL stylesheet below cocoon gives the output below.

The problem is that after a td or a tddiv i can't have a LF or CR.
If there is one i get aditional height in the row. (which is bad)

What i would like to get is:

td
diva...a//div

Any idea how.

I'm using cocoon from 20020826 on vm1.3 
I tried the output in Mozilla 1.1 and IE 5.5. With a stylesheet and 
html.../html around it.

P.S
Cocoon reverse the attributes on output :)


Jakob

XSL Transformation

?xml version=1.0?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/
  xsl:apply-templates/
/xsl:template

xsl:template match=TREE
 div id=header
  !-- Navigation Bar --
  table width=759 cellspacing=0 cellpadding=0  border=0 height=17 
class=sM bgcolor=#336699
trtd width=759 class=mH 
  div class=mHtSP
 table width=455 cellspacing=0 cellpadding=0 border=0 height=15
 tr
td class=mHidiv class=mHspaxsl:attribute 
name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
   xsl:for-each select=NODE
td class=mHidiv class=mHspaxsl:attribute 
name=hrefxsl:textxb-/xsl:textxsl:value-of 
select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of 
select=TABNAME//b/a/div/td
   /xsl:for-each
 /tr
 /table
  /div
/td/tr
  /table
 /div
/xsl:template

/xsl:stylesheet




- Output from Cocoon

div id=header
table bgcolor=#336699 class=sM height=17 border=0 cellpadding=0 
cellspacing=0 width=759
tr
td class=mH width=759
div class=mHtSP
table height=15 border=0 cellpadding=0 cellspacing=0 width=455
tr
td class=mHi
div class=mHsp
a href=index.htmlbHome/b/a
/div
/td
/tr
/table
/div
/td
/tr
/table
/div



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

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




RE: Serializig and LF: Problem

2002-09-25 Thread Luca Morandini

Skansen,

the problem you encountered is pretty strange: are you sure the Cocoon output has 
newlines where the XSL stylesheet has not ? I
never noticed it.

Anyway, since the div tag is for DIViding the flow of text into paragraphs (more or 
less like the p one) it introduces new lines
to separate it from the rest of the text, whether these newlines appeared in the HTML 
source or not.

I'd rather convert that div into a span tag, which doesn't interrupt the text flow 
and let you specify a class attribute just
the same.

Best regards,

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


 -Original Message-
 From: Skansen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 7:05 AM
 To: [EMAIL PROTECTED]
 Subject: Serializig and LF: Problem


 Hello

 When using the XSL stylesheet below cocoon gives the output below.

 The problem is that after a td or a tddiv i can't have a LF or CR.
 If there is one i get aditional height in the row. (which is bad)

 What i would like to get is:

 td
 diva...a//div

 Any idea how.

 I'm using cocoon from 20020826 on vm1.3
 I tried the output in Mozilla 1.1 and IE 5.5. With a stylesheet and 
html.../html around it.

 P.S
 Cocoon reverse the attributes on output :)


 Jakob

 XSL Transformation

 ?xml version=1.0?
 xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:template match=/
   xsl:apply-templates/
 /xsl:template

 xsl:template match=TREE
  div id=header
   !-- Navigation Bar --
   table width=759 cellspacing=0 cellpadding=0  border=0 height=17 
class=sM bgcolor=#336699
 trtd width=759 class=mH 
   div class=mHtSP
  table width=455 cellspacing=0 cellpadding=0 border=0 height=15
  tr
 td class=mHidiv class=mHspaxsl:attribute
 name=hrefxsl:textindex.html/xsl:text/xsl:attributebHome/b/a/div/td
xsl:for-each select=NODE
 td class=mHidiv class=mHspaxsl:attribute 
name=hrefxsl:textxb-/xsl:textxsl:value-of
 select=TABNAME/xsl:text.html/xsl:text/xsl:attributebxsl:value-of 
select=TABNAME//b/a/div/td
/xsl:for-each
  /tr
  /table
   /div
 /td/tr
   /table
  /div
 /xsl:template

 /xsl:stylesheet




 - Output from Cocoon

 div id=header
 table bgcolor=#336699 class=sM height=17 border=0 cellpadding=0 
cellspacing=0 width=759
 tr
 td class=mH width=759
 div class=mHtSP
 table height=15 border=0 cellpadding=0 cellspacing=0 width=455
 tr
 td class=mHi
 div class=mHsp
 a href=index.htmlbHome/b/a
 /div
 /td
 /tr
 /table
 /div
 /td
 /tr
 /table
 /div



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

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



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

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