OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: vcard DTD

[ Lists Home | Date Index | Thread Index ]
  • From: Dave Winer <dave@userland.com>
  • To: xml-dev@ic.ac.uk
  • Date: Sun, 08 Nov 1998 16:30:54 -0800

>>Dave Winer mentioned a similar issue that forced him to encode some text
in "base64"

If an XML value contains a < or an & you should encode them as &lt; and
&amp;. We researched this and it was there in one of the specs. (Doug Baron
will correct me if I got this wrong). 

The situation I was writing about was truly bizarre. There were two levels
of decoding going on. First I was changing the <s to &lt;s and then they
were being transmitted thru XML-RPC, and on the receiving end the XML-RPC
server thought (as it's supposed to) that it would turn the &lt;s into <s.
Oooops. That was someone else's job (an HTML browser). 

So base64 to the rescue, keep it out of the hands of the pesky server and
get those &lt;s over to the client. 

Dave


At 03:14 PM 11/8/98 -0800, David Brownell wrote:
>"Mark D. Anderson" wrote:
>> 
>> nor what happens when the value is actually kept in a vCard "VALUE"
parameter,
>> nor what they do with "<" or "&" in a vCard value or parameter.
>
>So what's the issue here?   ...
>
>Are XML-emitting tools just being incorrect?  "<" in text should
>always be encoded as "&lt;" (it'll be un-encoded during parsing),
>and "&" as "&amp;" (ditto).
>
>- Dave
>
>xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
>(un)subscribe xml-dev
>To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
>subscribe xml-dev-digest
>List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
>
>

--------------------------------------
http://www.userland.com/directory.html


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS