You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thomas DeWeese <Th...@Kodak.com> on 2005/08/23 11:43:43 UTC
Re: JavaScript problem with flowText/flowRoot element.
Hi Musbah,
Most likely you don't have the 'version' attribute on
the root SVG element set to "1.2". If this is not set
then Batik will not turn on any SVG 1.2 features.
Musbah Sagar wrote:
> I have a problem regarding the use of flowText element,...
>
> I am trying to generate flowText/flowRoot element from JavaScript but I
> get the following error message:
>
> The current document is unable to create an element of the requested
> type (namespace: http://www.w3.org/2000/svg, name: flowText).
>
> Does anyone know how to solve this?
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: JavaScript problem with flowText/flowRoot element.
Posted by Musbah Sagar <ms...@brookes.ac.uk>.
Hi Thomas,..
It worked ,... you've saved my day.
The problem was that I get odd error messages (null) when I try to append
flowRoot element to a parent element. But now I only try to do that once the
structure of flowRoot is complete and correct.
Many thanks.
Musbah.
----- Original Message -----
From: "Thomas DeWeese" <Th...@Kodak.com>
To: <ba...@xmlgraphics.apache.org>
Sent: Tuesday, August 23, 2005 5:10 AM
Subject: Re: JavaScript problem with flowText/flowRoot element.
> Hi Musbah,
>
> Musbah Sagar wrote:
>
>> Thanks for the quick reply and for the hint.
>>
>> I have added the version attribute and now I am able to create flowRoot
>> element but I am having a problem when I try to attach the flowRoot to a
>> parent:
>
> Care to let me know what the problem is?
>
> I'll say that I don't know if this stuff has been tested in
> dynamic environments but what I've seen you do so far I think should
> work.
>
>>
>> var flow=
>> svgDocument.createElementNS("http://www.w3.org/2000/svg","flowRoot");
>>
>> svgDocument.documentElement.appendChild(flow); // Or any other node.
>
> Do I assume that you have left off the construction of the rest of
> the elements required for a valid flowRoot element (flowRegion,
> flowText, etc)?
>
>
>> Any idea how to come around this one?
>>
>> Musbah.
>>
>>
>>
>> ----- Original Message ----- From: "Thomas DeWeese"
>> <Th...@Kodak.com>
>> To: <ba...@xmlgraphics.apache.org>
>> Sent: Tuesday, August 23, 2005 2:43 AM
>> Subject: Re: JavaScript problem with flowText/flowRoot element.
>>
>>
>>> Hi Musbah,
>>>
>>> Most likely you don't have the 'version' attribute on
>>> the root SVG element set to "1.2". If this is not set
>>> then Batik will not turn on any SVG 1.2 features.
>>>
>>> Musbah Sagar wrote:
>>>
>>>> I have a problem regarding the use of flowText element,...
>>>> I am trying to generate flowText/flowRoot element from JavaScript but
>>>> I get the following error message:
>>>> The current document is unable to create an element of the requested
>>>> type (namespace: http://www.w3.org/2000/svg, name: flowText).
>>>> Does anyone know how to solve this?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: JavaScript problem with flowText/flowRoot element.
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Musbah,
Musbah Sagar wrote:
> Thanks for the quick reply and for the hint.
>
> I have added the version attribute and now I am able to create flowRoot
> element but I am having a problem when I try to attach the flowRoot to a
> parent:
Care to let me know what the problem is?
I'll say that I don't know if this stuff has been tested in
dynamic environments but what I've seen you do so far I think should
work.
>
> var flow=
> svgDocument.createElementNS("http://www.w3.org/2000/svg","flowRoot");
>
> svgDocument.documentElement.appendChild(flow); // Or any other node.
Do I assume that you have left off the construction of the rest of
the elements required for a valid flowRoot element (flowRegion,
flowText, etc)?
> Any idea how to come around this one?
>
> Musbah.
>
>
>
> ----- Original Message ----- From: "Thomas DeWeese"
> <Th...@Kodak.com>
> To: <ba...@xmlgraphics.apache.org>
> Sent: Tuesday, August 23, 2005 2:43 AM
> Subject: Re: JavaScript problem with flowText/flowRoot element.
>
>
>> Hi Musbah,
>>
>> Most likely you don't have the 'version' attribute on
>> the root SVG element set to "1.2". If this is not set
>> then Batik will not turn on any SVG 1.2 features.
>>
>> Musbah Sagar wrote:
>>
>>> I have a problem regarding the use of flowText element,...
>>> I am trying to generate flowText/flowRoot element from JavaScript
>>> but I get the following error message:
>>> The current document is unable to create an element of the requested
>>> type (namespace: http://www.w3.org/2000/svg, name: flowText).
>>> Does anyone know how to solve this?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: JavaScript problem with flowText/flowRoot element.
Posted by Musbah Sagar <ms...@brookes.ac.uk>.
Hello Thomas
Thanks for the quick reply and for the hint.
I have added the version attribute and now I am able to create flowRoot
element but I am having a problem when I try to attach the flowRoot to a
parent:
var flow=
svgDocument.createElementNS("http://www.w3.org/2000/svg","flowRoot");
svgDocument.documentElement.appendChild(flow); // Or any other node.
Any idea how to come around this one?
Musbah.
----- Original Message -----
From: "Thomas DeWeese" <Th...@Kodak.com>
To: <ba...@xmlgraphics.apache.org>
Sent: Tuesday, August 23, 2005 2:43 AM
Subject: Re: JavaScript problem with flowText/flowRoot element.
> Hi Musbah,
>
> Most likely you don't have the 'version' attribute on
> the root SVG element set to "1.2". If this is not set
> then Batik will not turn on any SVG 1.2 features.
>
> Musbah Sagar wrote:
>
>> I have a problem regarding the use of flowText element,...
>> I am trying to generate flowText/flowRoot element from JavaScript but I
>> get the following error message:
>> The current document is unable to create an element of the requested
>> type (namespace: http://www.w3.org/2000/svg, name: flowText).
>> Does anyone know how to solve this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org