That's fine with me - I need 1.4 to be able to use non-HTML pages, but
are you sure?  This would only change the response if & only if the
supplied markup used a double-quote in it's XML prologue & as far as I
could see, that wouldn't break any tests in our test base.

You could postulate the existance of tests that check that they get
xml prologues with single-quotes whle supplying prologues with
doubles, but I don't think they're actually very likely...

/Gwyn

On Thu, May 22, 2008 at 9:57 AM, Juergen Donnerstag
<[EMAIL PROTECTED]> wrote:
> Note that many tests will fail in our test base as well as with apps
> developed by our users. It should be communicated properly if we
> introduce that change. May be for 1.4 only and not to 1.3.x
>
> Juergen
>
> On Wed, May 21, 2008 at 11:00 PM, Gwyn Evans <[EMAIL PROTECTED]> wrote:
>> https://issues.apache.org/jira/browse/WICKET-1652
>>
>> On Wed, May 21, 2008 at 9:41 PM, Eelco Hillenius
>> <[EMAIL PROTECTED]> wrote:
>>> Looks good to me. Maybe create a JIRA issue as well?
>>>
>>> Eelco
>>>
>>> On Wed, May 21, 2008 at 6:22 AM, Gwyn Evans <[EMAIL PROTECTED]> wrote:
>>>> Commit or not?
>>>>
>>>> Index: src/main/java/org/apache/wicket/Page.java
>>>> ===================================================================
>>>> --- src/main/java/org/apache/wicket/Page.java   (revision 658674)
>>>> +++ src/main/java/org/apache/wicket/Page.java   (working copy)
>>>> @@ -1372,9 +1372,13 @@
>>>>                if ((markupStream != null) && 
>>>> (markupStream.getXmlDeclaration() != null) &&
>>>>                        
>>>> (application.getMarkupSettings().getStripXmlDeclarationFromOutput()
>>>> == false))
>>>>                {
>>>> -                       response.write("<?xml version='1.0' encoding='");
>>>> +                       // Gwyn - Wed, 21 May 2008 12:23:41
>>>> +                       // If the xml declaration in the markup used 
>>>> double-quotes, use
>>>> them in the output too
>>>> +                       // Whether it should be or not, sometimes it's 
>>>> significant...
>>>> +                       char quoteChar = 
>>>> (markupStream.getXmlDeclaration().indexOf('\"')
>>>> == -1) ? '\'' : '\"';
>>>> +                       response.write("<?xml version=" + quoteChar + 
>>>> "1.0" + quoteChar +
>>>> " encoding=" + quoteChar);
>>>>                        response.write(encoding);
>>>> -                       response.write("'?>");
>>>> +                       response.write(quoteChar + "?>");
>>>>                }
>>>>
>>>>                // Set response locale from session locale
>>>>
>>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Gwyn Evans <[EMAIL PROTECTED]>
>>>> Date: Wed, May 21, 2008 at 12:23 AM
>>>> Subject: Re: Quote replacement in document prologue?
>>>> To: [EMAIL PROTECTED]
>>>>
>>>>
>>>> Ah - org.apache.wicket.Page#configureResponse doesn't take account of
>>>> the specified template, just uses it's hard-coded one...  Tomorrow...
>>>>
>>>> /Gwyn
>>>>
>>>> On Wed, May 21, 2008 at 12:10 AM, Gwyn Evans <[EMAIL PROTECTED]> wrote:
>>>>> Just noticed that even though I specify a prologue as:
>>>>>  <?xml version="1.0" encoding="UTF-8"?>
>>>>> it gets delivered as:
>>>>>  <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> Anyone able to point me to where this is happening, as the particular
>>>>> document spec variant I'm trying to work to here requires the
>>>>> former...
>>>>>
>>>>> /Gwyn
>>>>>
>>>>
>>>
>>
>

Reply via email to