docbook: Thread: Writing the literal & character


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Writing the literal & character
From: Morgon Kanter ####@####.####
Date: 14 Jun 2003 20:16:55 -0000
Message-Id: <20030614161639.5e727cc3.morgon@surgo.net>

How can I write the literal & character in a document? Whenever I just 
do &, the xslt processor thinks there should be an entity there (like 
&lt;), and &&; doesn't work. How am I supposed to do a literal & ?

Morgon
-- 
"Freenode Radio, the only place where you can hear Machinae Supremacy 
followed by Chopin in the same 5 minutes." -- Ariannah, OggJay on 
Freenode Radio (http://radio.freenode.net)
Subject: Re: Writing the literal & character
From: "Martin A. Brown" ####@####.####
Date: 14 Jun 2003 20:18:21 -0000
Message-Id: <Pine.LNX.4.55.0306141518150.25980@enclitic.wonderfrog.net>

 : How can I write the literal & character in a document? Whenever I just
 : do &, the xslt processor thinks there should be an entity there (like
 : &lt;), and &&; doesn't work. How am I supposed to do a literal & ?

How about:  &amp;

-Martin
Subject: Re: Writing the literal & character
From: "Martin A. Brown" ####@####.####
Date: 14 Jun 2003 20:19:58 -0000
Message-Id: <Pine.LNX.4.55.0306141519030.25980@enclitic.wonderfrog.net>

 : How can I write the literal & character in a document? Whenever I just
 : do &, the xslt processor thinks there should be an entity there (like
 : &lt;), and &&; doesn't work. How am I supposed to do a literal & ?

Sorry for the second reply, but I couldn't resist a pedantic
alternative:

  <![CDATA[&]]>

-Martin
Subject: Re: Writing the literal & character
From: Morgon Kanter ####@####.####
Date: 14 Jun 2003 20:25:15 -0000
Message-Id: <20030614162458.5e258a6f.morgon@surgo.net>

> > : How can I write the literal & character in a document? Whenever I just
> > : do &, the xslt processor thinks there should be an entity there (like
> > : &lt;), and &&; doesn't work. How am I supposed to do a literal & ?
> >
> How about:  &amp;

That worked perfectly, thanks.

Morgon
-- 
"Freenode Radio, the only place where you can hear Machinae Supremacy 
followed by Chopin in the same 5 minutes." -- Ariannah, OggJay on 
Freenode Radio (http://radio.freenode.net)
Subject: Re: Writing the literal & character
From: Tabatha Marshall ####@####.####
Date: 15 Jun 2003 00:06:23 -0000
Message-Id: <1055635765.23810.15.camel@mysticchild>

You could also use the unicode equivalent - details on both types of
entities are at http://docbook.org/tdg/en/html/iso-num.html.  If you go
up a level, you'll find the list to other types of character entities as
well.

I wanted to make sure you had the fishing rod, not just the fish!

Tab


On Sat, 2003-06-14 at 13:24, Morgon Kanter wrote:
> > > : How can I write the literal & character in a document? Whenever I just
> > > : do &, the xslt processor thinks there should be an entity there (like
> > > : &lt;), and &&; doesn't work. How am I supposed to do a literal & ?
> > >
> > How about:  &amp;
> 
> That worked perfectly, thanks.
> 
> Morgon
-- 
Tabatha Marshall
Web: www.merlinmonroe.com
Linux Documentation Project Review Coordinator (http://www.tldp.org)
Linux Counter Area Manager US:wa (http://counter.li.org)

[<<] [<] Page 1 of 1 [>] [>>]


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.