You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Anna Afonchenko <an...@ubaccess.com> on 2004/10/10 16:24:44 UTC

SVG serializer problem

Hi all.
I have a problem with a wildcard matcher that has an svgxml serializer.
Pipeline:
<map:match pattern="testSVG/**" type="wildcard">
   <map:generate src="svg/svg.svg"/>
   <map:serialize type="svgxml"/>
</map:match>

For URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
the pipeline works fine and the static svg is shown.
But for URL 
http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm
I get an empty page, whose source content is <p>&nbsp;</p>!

If I change the serializer to xml, then the correct xml is presented for 
both URLs above.

So I would guess the problem is with the SVG serializer?

Can anybody see what am I doing wrong here?

Thank you all very much for help.

Anna 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Anna Afonchenko wrote:
> It is probably an IE issue, because the pipeline with **.htm worked from 
> Mozilla.
> But I really need it to work from IE as well!
> Is there any way to enforce it?

IEx is known to ignore advice from the server. This is quite hardwired
at least up to IEx 5.5, and there is no workaround except not using IEx.

If you don't want to have content interpreted as HTML, you must not
provide an URL ending in .htm or .hmtl (or .asp, .aspx if IIS is
installed on the machine). Use an extension which is likely to be
registered as the MIME type you want, or an extension which is
likely unregistered. Ending the URL in .svg seems to be a reasonable
idea. Depending on the context, appending a dummy parameter like
  http://localhost:8080/.../testSVG/www.ubaccess.com/test.htm?d=.svg
might help. But then, why do you have to end the base URL with .htm
at all? SVG ist not HTML.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by Andreas Hartmann <an...@apache.org>.
Anna Afonchenko wrote:
> Thanks Andreas.
> It is probably an IE issue, because the pipeline with **.htm worked from 
> Mozilla.
> But I really need it to work from IE as well!
> Is there any way to enforce it?

Sorry, but I have no idea. Maybe Google knows more?

-- Andreas

> 
> Thank you very much.
> 
> Anna
> 
> ----- Original Message ----- From: "Andreas Hartmann" <an...@apache.org>
> To: <us...@cocoon.apache.org>
> Sent: Sunday, October 10, 2004 17:34
> Subject: Re: SVG serializer problem
> 
> 
>> Anna Afonchenko wrote:
>>
>>> I use IE6.
>>> Do you think that might be the problem?
>>
>>
>> Maybe ... :) I can just give you these hints:
>>
>> - make sure the **.htm isn't matched by another pipeline
>> - try another browser, maybe try wget/curl
>>
>> Good luck,
>> Andreas
>>
>>>
>>> ----- Original Message ----- From: "Andreas Hartmann" 
>>> <an...@apache.org>
>>> To: <us...@cocoon.apache.org>
>>> Sent: Sunday, October 10, 2004 17:04
>>> Subject: Re: SVG serializer problem
>>>
>>>
>>>> Anna Afonchenko wrote:
>>>>
>>>>> Hi all.
>>>>> I have a problem with a wildcard matcher that has an svgxml 
>>>>> serializer.
>>>>> Pipeline:
>>>>> <map:match pattern="testSVG/**" type="wildcard">
>>>>>   <map:generate src="svg/svg.svg"/>
>>>>>   <map:serialize type="svgxml"/>
>>>>> </map:match>
>>>>>
>>>>> For URL 
>>>>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
>>>>> the pipeline works fine and the static svg is shown.
>>>>> But for URL 
>>>>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm 
>>>>>
>>>>> I get an empty page, whose source content is <p>&nbsp;</p>!
>>>>>
>>>>> If I change the serializer to xml, then the correct xml is 
>>>>> presented for both URLs above.
>>>>>
>>>>> So I would guess the problem is with the SVG serializer?
>>>>
>>>>
>>>>
>>>> To me it sounds rather like a browser issue.
>>>> Which one are you using? Maybe it gets confused
>>>> by the .htm suffix and assumes text/html as
>>>> mime-type or something like that.
>>>>
>>>> -- Andreas
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by Anna Afonchenko <an...@ubaccess.com>.
Thanks Andreas.
It is probably an IE issue, because the pipeline with **.htm worked from 
Mozilla.
But I really need it to work from IE as well!
Is there any way to enforce it?

Thank you very much.

Anna

----- Original Message ----- 
From: "Andreas Hartmann" <an...@apache.org>
To: <us...@cocoon.apache.org>
Sent: Sunday, October 10, 2004 17:34
Subject: Re: SVG serializer problem


> Anna Afonchenko wrote:
>> I use IE6.
>> Do you think that might be the problem?
>
> Maybe ... :) I can just give you these hints:
>
> - make sure the **.htm isn't matched by another pipeline
> - try another browser, maybe try wget/curl
>
> Good luck,
> Andreas
>
>>
>> ----- Original Message ----- From: "Andreas Hartmann" 
>> <an...@apache.org>
>> To: <us...@cocoon.apache.org>
>> Sent: Sunday, October 10, 2004 17:04
>> Subject: Re: SVG serializer problem
>>
>>
>>> Anna Afonchenko wrote:
>>>
>>>> Hi all.
>>>> I have a problem with a wildcard matcher that has an svgxml serializer.
>>>> Pipeline:
>>>> <map:match pattern="testSVG/**" type="wildcard">
>>>>   <map:generate src="svg/svg.svg"/>
>>>>   <map:serialize type="svgxml"/>
>>>> </map:match>
>>>>
>>>> For URL 
>>>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
>>>> the pipeline works fine and the static svg is shown.
>>>> But for URL 
>>>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm
>>>> I get an empty page, whose source content is <p>&nbsp;</p>!
>>>>
>>>> If I change the serializer to xml, then the correct xml is presented 
>>>> for both URLs above.
>>>>
>>>> So I would guess the problem is with the SVG serializer?
>>>
>>>
>>> To me it sounds rather like a browser issue.
>>> Which one are you using? Maybe it gets confused
>>> by the .htm suffix and assumes text/html as
>>> mime-type or something like that.
>>>
>>> -- Andreas
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by Andreas Hartmann <an...@apache.org>.
Anna Afonchenko wrote:
> I use IE6.
> Do you think that might be the problem?

Maybe ... :) I can just give you these hints:

- make sure the **.htm isn't matched by another pipeline
- try another browser, maybe try wget/curl

Good luck,
Andreas

> 
> ----- Original Message ----- From: "Andreas Hartmann" <an...@apache.org>
> To: <us...@cocoon.apache.org>
> Sent: Sunday, October 10, 2004 17:04
> Subject: Re: SVG serializer problem
> 
> 
>> Anna Afonchenko wrote:
>>
>>> Hi all.
>>> I have a problem with a wildcard matcher that has an svgxml serializer.
>>> Pipeline:
>>> <map:match pattern="testSVG/**" type="wildcard">
>>>   <map:generate src="svg/svg.svg"/>
>>>   <map:serialize type="svgxml"/>
>>> </map:match>
>>>
>>> For URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
>>> the pipeline works fine and the static svg is shown.
>>> But for URL 
>>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm 
>>>
>>> I get an empty page, whose source content is <p>&nbsp;</p>!
>>>
>>> If I change the serializer to xml, then the correct xml is presented 
>>> for both URLs above.
>>>
>>> So I would guess the problem is with the SVG serializer?
>>
>>
>> To me it sounds rather like a browser issue.
>> Which one are you using? Maybe it gets confused
>> by the .htm suffix and assumes text/html as
>> mime-type or something like that.
>>
>> -- Andreas
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by Anna Afonchenko <an...@ubaccess.com>.
I use IE6.
Do you think that might be the problem?

----- Original Message ----- 
From: "Andreas Hartmann" <an...@apache.org>
To: <us...@cocoon.apache.org>
Sent: Sunday, October 10, 2004 17:04
Subject: Re: SVG serializer problem


> Anna Afonchenko wrote:
>> Hi all.
>> I have a problem with a wildcard matcher that has an svgxml serializer.
>> Pipeline:
>> <map:match pattern="testSVG/**" type="wildcard">
>>   <map:generate src="svg/svg.svg"/>
>>   <map:serialize type="svgxml"/>
>> </map:match>
>>
>> For URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
>> the pipeline works fine and the static svg is shown.
>> But for URL 
>> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm
>> I get an empty page, whose source content is <p>&nbsp;</p>!
>>
>> If I change the serializer to xml, then the correct xml is presented for 
>> both URLs above.
>>
>> So I would guess the problem is with the SVG serializer?
>
> To me it sounds rather like a browser issue.
> Which one are you using? Maybe it gets confused
> by the .htm suffix and assumes text/html as
> mime-type or something like that.
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SVG serializer problem

Posted by Andreas Hartmann <an...@apache.org>.
Anna Afonchenko wrote:
> Hi all.
> I have a problem with a wildcard matcher that has an svgxml serializer.
> Pipeline:
> <map:match pattern="testSVG/**" type="wildcard">
>   <map:generate src="svg/svg.svg"/>
>   <map:serialize type="svgxml"/>
> </map:match>
> 
> For URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com
> the pipeline works fine and the static svg is shown.
> But for URL 
> http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm
> I get an empty page, whose source content is <p>&nbsp;</p>!
> 
> If I change the serializer to xml, then the correct xml is presented for 
> both URLs above.
> 
> So I would guess the problem is with the SVG serializer?

To me it sounds rather like a browser issue.
Which one are you using? Maybe it gets confused
by the .htm suffix and assumes text/html as
mime-type or something like that.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org