Subject: RE: [dssslist] & as string From: "Maltby, David G" <david.g.maltby@xxxxxxxx> Date: Fri, 15 Sep 2006 07:27:43 -0400 |
See the archive on "ampersand" <http://www.biglist.com/cgi-bin/wilma/wilma_glimpse/dssslist?query=amper sand&Search=Search&errors=0&maxfiles=50&maxlines=10&.cgifields=lineonly& .cgifields=filelist&.cgifields=case&.cgifields=partial&.cgifields=restri cttofiles> The first couple of hits seem to get to the heart of the issue. You might even filter it to responses by "James Clark", however Tony Graham seems to sum it up with this statement, <quote> The stylesheet is also a SGML document, and it is parsed before it is interpreted as a stylesheet, which is why Jade wants to interpret the entity reference. One quick workaround is to use string-append to put together your entity reference: (literal (string-append "&" "nbsp;")) Since the ampersand is not followed by any name characters, it is not interpreted as an Entity Reference Open. </quote> There are more ideas in this post and in the archive. - David > -----Original Message----- > From: Alberto Martinez [mailto:alberto.martinez@xxxxxxxxxxxxxx] > Sent: Friday, September 15, 2006 5:04 AM > To: dssslist@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [dssslist] & as string > > David Carlisle schrieb: > > > <a href="/cgi-bin/contact.cgi?lng=eng&to=webmaster"> > >That is an HTML syntax error (although typically browsers do > not report > >syntax errors) > > > > but I obtain: > > > > <a href="/cgi-bin/contact.cgi?lng=eng&to=webmaster"> > > > >Given that, the browser should make a http request for > >/cgi-bin/contact.cgi?lng=eng&to=webmaster > >and the cgi bin script should execute. > > > >Are you sure that the output you have doesn't work? > > > >David > > > > > > > Thank you David, but the output doesn't work... > > Sorry, I think, perhaps I was beating about the bush, let's > forget the > CGI and HTML, what I basically would like to know is: > > Why (string-append "+" "Hello" "+") gives "+Hello+" as output, > and (string-append "&" "Hello" "&") gives > "&Hello&" as > output, instead of "&Hello&"? > > I would like to define, for example an element like this: > > (element TEST > (make element gi: "OUTPUT" > (string-append "Starsky " "&" " Hutch") > ) > ) > > And obtain <OUTPUT>Starsky & Hutch</OUTPUT> > > But if I use "&" as string I get <OUTPUT>Starsky & > Hutch</OUTPUT> as > output. > And when I use "&" I get also <OUTPUT>Starsky & > Hutch</OUTPUT>. > I know, if I would use literals it would be easy, but as I > said, I must > use strings... > The goal is to obtain anyway using strings <OUTPUT>Starsky & > Hutch</OUTPUT>, is this possible? > > Thank you again!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [dssslist] & as string, David Carlisle | Thread | Re: [dssslist] & as string, Jany Quintard |
Re: [dssslist] & as string, David Carlisle | Date | Re: [dssslist] & as string, Jany Quintard |
Month |