xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Minchau <minc...@ca.ibm.com>
Subject Re: [Announce] Escaping double quotation marks in XSL
Date Wed, 24 Oct 2007 21:32:10 GMT
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@us.ibm.co                                             
             m                                                             
                                                                        To 
             10/24/2007 12:40          Brian Minchau/Toronto/IBM@IBMCA     
             PM                                                         cc 
                                       general@xml.apache.org,             
                                       tranceradi@hotmail.com,             
             Please respond to         xalan-j-users@xml.apache.org        
             general@xml.apach                                     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)


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message