cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manos Batsis" <m.bat...@bsnet.gr>
Subject RE: Usage of & in URLs
Date Tue, 13 Aug 2002 07:35:26 GMT

The problem with the ampersand in XML, is that it is used to denote the
start of an entity. You can replace it... with an entity (&amp;):

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

Manos

> -----Original Message-----
> From: Michael Mangeng [mailto:michael.mangeng@ideefix.net] 
> Sent: Monday, August 12, 2002 9: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>
> 
> greetings
> mike
> ----- Original Message ----- 
> From: "Themba Mbatha" <thembamb@discoveryhealth.co.za>
> To: <cocoon-users@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:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   
> <cocoon-users-help@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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message