: Wednesday, October 24, 2007 11:58 AM
To: Brian Minchau
Cc: general@xml.apache.org; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [Announce] Escaping double quotation marks in XSL
> Assuming that you are only interested in stream serialization, have
you
> thought of doing the seriali
In the detested example
>
>
> He wants the " untouched, and he wants a \ infront of each ", and he
> doesn't even want the <,> around the img tag.
So what he wants really is a block of text , not an element at all...
<img src=\"
\" / >
Right? Literal boilerplate surrounding the value extracted fr
[EMAIL PROTECTED] Subject
e.org Re: [Announce] Escaping double
Timothy,
the original detested example was this:
How Hard Would It Be (how much performance would it cost us) if we put in a
switch for whether the users wanted double-quoted attributes (requiring
double-quotes within them be escaped) or single-quoted (requiring
single-quotes within them be escaped)?
I know we don't want to try to switch on a c
<[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
Subject
RE: [Announce] Escaping double
ECTED] Subject
e.org Re: [Announce] Escaping double
quotation marks i
> Assuming that you are only interested in stream serialization, have you
> thought of doing the serialization yourself for particular elements? For
> example, something like this:
>
>
>
>
This isn't an "[Announce]".OK, I got that off my chest.
Assuming that you are using Xalan to do your serialization, one of the
fundamental problems you are probably having is that Xalan has decided to
output all attribute values surrounded by double quotation marks, " , not
single quotation m
This XSL gives me something like
, which
doesn't work, because the quotation marks aren't escaped. It's inside
Javascript, so it has to be
Replacing it with """ doesn't work for some reason, and I can't put a
backslash in that templ
What do you mean by "escape"? Using a backslash as you have below, or
replacing it with the macro """?
I think you want the latter--and if you do that, it should work just as
nicely as the < and > are doing for you right now.
HTH,
Glen
caporale schrieb:
I have XSL inside Javascript. The XML
I have XSL inside Javascript. The XML looks like this:
imagename.jpg. Any time that tag's there, the output should
be \"imagename.jpg\" . This template works, but it doesn't escape the
quotation marks:
What do I need to do to escape the quotation marks from that? I've seen
about 400
13 matches
Mail list logo