logo       

Re: [Announce] Escaping double quotation marks in XSL: msg#00035

java.helma.antville.user

Subject: Re: [Announce] Escaping double quotation marks in XSL

Joe K.,

I don't think that Joseph Caporale would be have his problem solved by the
choice of whether attribute values should be surrounded by double quotes,
or single quotes.

He wrote:
<<<
The XML looks like this:
<image>imagename.jpg</image>. Any time that tag's there, the output should
be &lt;img src=\"imagename.jpg\" / &gt;.
>>>

He wants the " untouched, and he wants a \ infront of each ", and he
doesn't even want the <,> around the img tag.


- Brian




keshlam@xxxxxxxxx
m
To
10/24/2007 12:40 Brian Minchau/Toronto/IBM@IBMCA
PM cc
general@xxxxxxxxxxxxxx,
tranceradi@xxxxxxxxxxx,
Please respond to xalan-j-users@xxxxxxxxxxxxxx
general@xxxxxxxxx Subject
e.org Re: [Announce] Escaping double
quotation marks in XSL










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 case-by-case basis -- that would
be a definite performance hit -- but this *might* be an affordable option
and might help a few folks.

On the other hand, it might help too few to be justifiable. In which case
the answer might be "It's open source; here's where to patch it to swap the
two."

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
-- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (
http://www.ovff.org/pegasus/songs/threes-rev-11.html)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise