You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Themba Mbatha <th...@discoveryhealth.co.za> on 2002/08/12 20:19:11 UTC

Usage of & in URLs

Hi all;

Perhaps this has been asked. I need to show a url as in
<url>http://www.foo.com/some-path?arg1=value1&arg2=value2</url> into the
transformed XML. I am getting errors with Cocoon (the generator, in
particular) each time it encounters an & character. I am told this is an
XML problem but I was wondering if anyone has had to deal with this type
of problem.

Thanx.




---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Usage of & in URLs

Posted by Luca Morandini <lu...@tin.it>.
> -----Original Message-----
> From: Michael Mangeng [mailto:michael.mangeng@ideefix.net]
> Sent: Monday, August 12, 2002 8:42 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Usage of & in URLs
> 
> 
> Hi
> 
> Since & is a special char you have to mark it as character data.
> 
> <url>http://www.foo.com/some-path?arg1=value1<![CDATA[&]]>arg2=value2</url>


...or use the "&amp;" entity.


--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Usage of & in URLs

Posted by Michael Mangeng <mi...@ideefix.net>.
Hi

Since & is a special char you have to mark it as character data.

<url>http://www.foo.com/some-path?arg1=value1<![CDATA[&]]>arg2=value2</url>

greetings
mike
----- Original Message ----- 
From: "Themba Mbatha" <th...@discoveryhealth.co.za>
To: <co...@xml.apache.org>
Sent: Monday, August 12, 2002 8:19 PM
Subject: Usage of & in URLs


> Hi all;
> 
> Perhaps this has been asked. I need to show a url as in
> <url>http://www.foo.com/some-path?arg1=value1&arg2=value2</url> into the
> transformed XML. I am getting errors with Cocoon (the generator, in
> particular) each time it encounters an & character. I am told this is an
> XML problem but I was wondering if anyone has had to deal with this type
> of problem.
> 
> Thanx.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Usage of & in URLs

Posted by Bobby Mitchell <bo...@niac.usra.edu>.
Themba Mbatha wrote:

>Hi all;
>
>Perhaps this has been asked. I need to show a url as in
><url>http://www.foo.com/some-path?arg1=value1&arg2=value2</url> into the
>
use &amp;

http://www.foo.com/some-path?arg1=value1&amp;arg2=value2</url>



>
>transformed XML. I am getting errors with Cocoon (the generator, in
>particular) each time it encounters an & character. I am told this is an
>XML problem but I was wondering if anyone has had to deal with this type
>of problem.
>
>Thanx.
>
>
>
>
>---------------------------------------------------------------------
>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:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>