This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: curly quotes in XML
But I'm afraid Cihan might be talking about a case in which he has "smart
quotes" in tags, in lieu of the correct "dumb quotes" (paired " or '
characters).
If this is the case, Cihan, your XML is lying to you: it's not XML, but
merely almost-XML. An XML parser won't parse it.
Pre-process it with the string-processing language of your choice, such as
Perl, Python or sed. It can't be done in XSLT.
(Trying to exercise his own mind-reading powers),
Wendell
At 11:03 AM 5/10/2002, David wrote:
> > What is the best way to get rid of curly quotes/smart quotes in XML to
> > XML transformation. I have no control over incoming XML document.
>
>replace by nothing or replace by straight quotes?
>
>translate(.,'ÉC;ÉD;','""')
>
>will replace the left and right " by '
>
>
>translate(.,'ÉC;ÉD;','')
>
>will remove them,
>
>David
======================================================================
Wendell Piez mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list