Sitemap in Cocoon 2

2001-07-20 Thread Hege Hansbakk

I have a question concerning the sitemap used in Cocoon 2. On Cocoon's web
pages there is an example saying the following:

   

 
 http://www.w3.org/TR/REC-html40/loose.dtd"/>
 
 
 
 


I guess the  tag is supposed to say if
spaces should be kept (when set true) or not (when set false).

I have tried this in my sitemap, but that tag does not change the output
file in any way. Can somebody tell me why? (I do not want any spaces
or line breaks in the output)


Thank you in advance!

Regards,

Hege Hansbakk




-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Problems with line breaks in Cocoon 2

2001-07-20 Thread Hege Hansbakk

Thank you, it actually did help! I still have a problem though...

Those states which have more than one element in my xml are still written
out with line breaks.. So my javascript function still does not work..

This happens for this tag: 

Hege Hansbakk

On Thu, 19 Jul 2001, Paul Paradise wrote:

> On Thu, Jul 19, 2001 at 08:09:09AM +0200, [EMAIL PROTECTED] wrote:
> > In my xsl-file I have written:
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > This is a javascript-function, which takes a string as a
> > parameter. My problem is that Cocoon parses this as a string with
> > linebreaks, which Javascript doesn't accept.
> >
> > The output is like this:
> >
> > function start(frm){
> >
> > initialize('
> >
> > init
> >
> > ', "
> >
> >
> >
> > Text
> >
> > ");
> >
> > output(frm, 'init');
> >
> > }
> >
> > How can I get Cocoon to not add any line breaks?
> >
> > I have been looking for an answer to this on the web, but I can't find
> > anything. I did read about changing the following line in
> > cocoon.properties though:
> >
> > formatter.text/html/loose.line-width = 120
> >
> > But, I can't find this file on my hard disk. Does it even exist for
> > Cocoon 2?
>
> I'm a relative Cocoon/XSL newbie, but if I'm not mistaken the xsl:text
> node specifically serves the purpose of saving linebreaks, including
> the ones you have in your source file. Try changing your code to read
> something like:
>
>   
>   
>
> Note that there is no linebreak between the end of the CDATA and the
> end of the xsl:text node. You'd need to repeat this for all the
> elements you're inserting...
>
> Good luck!
>
> --
>
> --
>  Paul ParadiseOffice: AE-209U
>  Engineering Intern  Email: [EMAIL PROTECTED]
>  Corporate IT R&D   Tel: 858.651.5883
>  Qualcomm Incorporated
> --
>


-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Ancestor and Cocoon 2

2001-07-19 Thread Hege Hansbakk

Is it possible to use the ancestor function in Cocoon 2, even though it
uses the SAX parser? The error I get is that it can not find the
function...

Hege


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

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




Problems with line breaks in Cocoon 2

2001-07-18 Thread Hege Hansbakk

Hi!

I already posted these questions once to [EMAIL PROTECTED], but I
have not got any answers yet. Since I am running out of time now, I repost my
questions again. I hope somebody can help me.

I am using Cocoon 2, and I have the following problems:

Question 1:

In my xsl-file I have written:






























This is a javascript-function, which takes a string as a parameter. My problem
is that Cocoon parses this as a string with linebreaks, which Javascript
doesn't accept.

The output is like this:

function start(frm){

initialize('

init

', "



Text

");

output(frm, 'init');

}





How can I get Cocoon to not add any line breaks?


I have been looking for an answer to this on the web, but I can't find
anything. I did read about changing the following line in
cocoon.properties though:

formatter.text/html/loose.line-width = 120

But, I can't find this file on my hard disk. Does it even exist for Cocoon 2?



Question 2:

Further, I have the following code in my xsl-file:









Before this code I have written a Javascript-function start(frm) between the
head-tags of the document. When Cocoon parses the document, the generated html-
file does not find the start(frm)-function. If I look at the source of the
generated html-file, I can see that it is there...

Why doesn't it find this function? And what can I do to make it find it?


Finally, my last question:

In the frame src I had to write the whole path. Is it possible to use

relative addresses at all?


Thank you in advance!


Regards,

Hege Hansbakk



-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Problems with line breaks in Cocoon 2

2001-07-18 Thread hansbakk

Hi!

I already posted these questions once to [EMAIL PROTECTED], but I 
have not got any answers yet. Since I am running out of time now, I repost my 
questions again. I hope somebody can help me.

I am using Cocoon 2, and I have the following problems:

Question 1:

In my xsl-file I have written:






























This is a javascript-function, which takes a string as a parameter. My problem 
is that Cocoon parses this as a string with linebreaks, which Javascript 
doesn't accept.

The output is like this:

function start(frm){

initialize('

init

', "



Text

");

output(frm, 'init');

}





How can I get Cocoon to not add any line breaks?


I have been looking for an answer to this on the web, but I can't find 
anything. I did read about changing the following line in
cocoon.properties though:

formatter.text/html/loose.line-width = 120

But, I can't find this file on my hard disk. Does it even exist for Cocoon 2?



Question 2:

Further, I have the following code in my xsl-file:









Before this code I have written a Javascript-function start(frm) between the 
head-tags of the document. When Cocoon parses the document, the generated html-
file does not find the start(frm)-function. If I look at the source of the 
generated html-file, I can see that it is there...

Why doesn't it find this function? And what can I do to make it find it?


Finally, my last question:

In the frame src I had to write the whole path. Is it possible to use

relative addresses at all?


Thank you in advance!


Regards,

Hege Hansbakk


-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Frames and Javascript in Cocoon 2

2001-07-05 Thread Hege Hansbakk

I have the following code in mye xsl-file:





Before this code I have written a Javascript-function start(frm) between
the head-tags of the document. When Cocoon parses the document, the
generated html-file does not find the start(frm)-function. If I look at
the source of the generated html-file, I can see that it is there...

Why doesn't it find this function? And what can I do to make it find it?

One more question:
In the frame src I had to write the whole path. Is it possible to use
relative addresses at all?

Thank you in advance!

Regards,
Hege Hansbakk


-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Problems with linebreaks in Cocoon 2

2001-07-05 Thread Hege Hansbakk

Hi!

I am using Cocoon 2, and I have the following problem:

In my xsl-file I have written:















This is a javascript-function, which takes a string as a parameter. My
problem is that Cocoon parses this as a string with linebreaks, which
Javascript doesn't accept.
The output is like this:
function start(frm){
initialize('
init
', "

Text
");
output(frm, 'init');
}


How can I get Cocoon to not add any linebreaks?

I have been looking for an answer to this on the web, but I can't find
anything. I did read about changing the following line in
cocoon.properties though:
formatter.text/html/loose.line-width = 120
But, I can't find this file on my harddisk. Does it even exist for Cocoon 2?

Thank you in advance!

Regards,
Hege Hansbakk



-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>