RE: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Timothy Jones
: 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

RE: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Timothy Jones
In the detested example > >

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread keshlam
> 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

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Brian Minchau
[EMAIL PROTECTED] Subject e.org Re: [Announce] Escaping double

RE: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Brian Minchau
Timothy, the original detested example was this:

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread keshlam
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

RE: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Brian Minchau
<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject RE: [Announce] Escaping double

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Brian Minchau
ECTED] Subject e.org Re: [Announce] Escaping double quotation marks i

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread keshlam
> 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: > > > >

Re: [Announce] Escaping double quotation marks in XSL

2007-10-24 Thread Brian Minchau
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

Re: [Announce] Escaping double quotation marks in XSL

2007-10-23 Thread caporale
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

Re: [Announce] Escaping double quotation marks in XSL

2007-10-23 Thread Glen Mazza
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

[Announce] Escaping double quotation marks in XSL

2007-10-23 Thread caporale
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