[svg-developers] modifying SVG in java servlet

2006-08-07 Thread Nazar
Hello,

I have java servlet which is used to modify and output svg file. The
svg itself is stored in some sort of database, and before printing it
to output I need to add javascript function to it. Which way can I
"programmatically edit" SVG using java language?








-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: modifying SVG in java servlet

2006-08-07 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, "Nazar" <[EMAIL PROTECTED]> wrote:
 
> I have java servlet which is used to modify and output svg file. The
> svg itself is stored in some sort of database, and before printing it
> to output I need to add javascript function to it. Which way can I
> "programmatically edit" SVG using java language?

SVG is XML so you can use all sorts of XML tools Java has to edit the
document, for instance the W3C DOM (supported directly by Java 1.4 and
1.5), an XSLT stylesheet (also supported directly by Java 1.4 and
1.5), any of the more Java like DOM approaches like JDOM or XOM.





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [svg-developers] modifying SVG in java servlet

2006-08-07 Thread Alain Pannetier
Hello Nazar,

Fid you have a look at Batik ?

http://xmlgraphics.apache.org/batik

Alain Pannetier

On 8/7/06, Nazar <[EMAIL PROTECTED]> wrote:
>
>   Hello,
>
> I have java servlet which is used to modify and output svg file. The
> svg itself is stored in some sort of database, and before printing it
> to output I need to add javascript function to it. Which way can I
> "programmatically edit" SVG using java language?
>
>  
>


[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[svg-developers] SMIL in Apache Batik

2006-08-07 Thread Andreas Neumann
Maybe this is old news to you, but for a few days now, thanks to the 
work of Cameron McCormack, Apache Batik now supports SMIL. It is 
implemented with a few limitations, because of some restrictions in 
the Batik architecture:

http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/
200607.mbox/[EMAIL PROTECTED]

To test the implementation you should either download the current SVN 
version (see instructions at http://xmlgraphics.apache.org/batik/
svn.html) or use one of the nightly builds: http://people.apache.org/
builds/xml-batik/

It would be nice if people could download and test the SMIL features 
prior to the upcoming new release of Batik.

Please report potential bugs in bugzilla (http://issues.apache.org/
bugzilla/) or discuss them on the Batik mailinglist (http://
xmlgraphics.apache.org/batik/mailList.html)

Thanks,
Andreas






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[svg-developers] Re: XSLT whitespace problem

2006-08-07 Thread waynehet
--- In svg-developers@yahoogroups.com, "Martin Honnen"
<[EMAIL PROTECTED]> wrote:
>
> Here is a static SVG document
> 
> with 
 in the d attribute value, Adobe SVG viewer in IE
> renders that just fine so it really seems the display problem might be
> caused by some other issue. See my other post if you use .aspx pages
> to dynamically serve the SVG.

Martin,

Thanks for your reply and examples.  Also, sorry for suggesting that
the browser was messing up the graphic.  I meant to imply that MS had
somehow mangled the transformation which made it impossible to render
in the browser, not that the browser was at fault. (geez, you guys are
so sensitive about browser issues!)

You're right, the extra characters and spaces in the  attribute
render fine when I manually insert them into the svg doc.  I suppose
I'm having trouble with some other aspect of the transformation.  I
will try to track it down.

My example was rather simplistic.  I'm developing a stand-alone app
that uses IE+ASV in a .NET wrapped COM component.  My code gets an
Illustrator graphic from a database, puts it into an XPathDocument
object to which an XSLTransform object is applied.  This is supposed
to merge other data from an object model into the graphic (basically
changing the fill colors based on data) and then extract a node
segment from the main document.  The segment is then inserted into a
preloaded svg template graphic which has already been rendered in the
browser.  The whole thing is roughly similiar to Francis'
xmlSVG1.zip example listed in the "Files" section of this group. 
The trouble arises when I try to get the correct node segment to
insert.  I thought that the extra characters were the problem but I'm
going to have to look further.

I'll let you know what I find.  If you can suggest any common traps I
should be looking at, I'd be grateful.

Thanks, Wayne






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: XSLT whitespace problem

2006-08-07 Thread Phi Tran
On 8/7/06, waynehet <[EMAIL PROTECTED]> wrote:
>
>   --- In svg-developers@yahoogroups.com ,
> "Martin Honnen"
> <[EMAIL PROTECTED]> wrote:
> >
> > Here is a static SVG document
> > 
> > with 
 in the d attribute value, Adobe SVG viewer in IE
> > renders that just fine so it really seems the display problem might be
> > caused by some other issue. See my other post if you use .aspx pages
> > to dynamically serve the SVG.
>
> Martin,
>
> Thanks for your reply and examples. Also, sorry for suggesting that
> the browser was messing up the graphic. I meant to imply that MS had
> somehow mangled the transformation which made it impossible to render
> in the browser, not that the browser was at fault. (geez, you guys are
> so sensitive about browser issues!)
>






You're right, the extra characters and spaces in the  attribute
> render fine when I manually insert them into the svg doc. I suppose
> I'm having trouble with some other aspect of the transformation. I
> will try to track it down.
>
> My example was rather simplistic. I'm developing a stand-alone app
> that uses IE+ASV in a .NET wrapped COM component. My code gets an
> Illustrator graphic from a database, puts it into an XPathDocument
> object to which an XSLTransform object is applied. This is supposed
> to merge other data from an object model into the graphic (basically
> changing the fill colors based on data) and then extract a node
> segment from the main document. The segment is then inserted into a
> preloaded svg template graphic which has already been rendered in the
> browser. The whole thing is roughly similiar to Francis'
> xmlSVG1.zip example listed in the "Files" section of this group.
> The trouble arises when I try to get the correct node segment to
> insert. I thought that the extra characters were the problem but I'm
> going to have to look further.
>
> I'll let you know what I find. If you can suggest any common traps I
> should be looking at, I'd be grateful.
>
> Thanks, Wayne
>
>  
>
(geez, you guys are so sensitive about browser issues!)
I like you to try something like this using JavaScript

var a="This is a test \r\nOne\r\nTwo \r\n"
Then
Try using AJAX with
URL="yourDomain.com?ABC="+a

Not Kidding?
with IE the string will output "This is a test

One
Two&space;
"
while FF is still with return linefeed and space (which is char 13,10 and
32). Even before it leave the machine.


Hope this help

Phi


-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: XSLT whitespace problem

2006-08-07 Thread Phi Tran
On 8/7/06, Phi Tran <[EMAIL PROTECTED]> wrote:
>
>
>
> On 8/7/06, waynehet <[EMAIL PROTECTED]> wrote:
> >
> >--- In svg-developers@yahoogroups.com,
> > "Martin Honnen"
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Here is a static SVG document
> > > 
> > > with 
 in the d attribute value, Adobe SVG viewer in IE
> > > renders that just fine so it really seems the display problem might be
> > > caused by some other issue. See my other post if you use .aspx pages
> > > to dynamically serve the SVG.
> >
> > Martin,
> >
> > Thanks for your reply and examples. Also, sorry for suggesting that
> > the browser was messing up the graphic. I meant to imply that MS had
> > somehow mangled the transformation which made it impossible to render
> > in the browser, not that the browser was at fault. (geez, you guys are
> > so sensitive about browser issues!)
> >
>
>
>
>
>
>
>  You're right, the extra characters and spaces in the  attribute
> > render fine when I manually insert them into the svg doc. I suppose
> > I'm having trouble with some other aspect of the transformation. I
> > will try to track it down.
> >
> > My example was rather simplistic. I'm developing a stand-alone app
> > that uses IE+ASV in a .NET wrapped COM component. My code gets an
> > Illustrator graphic from a database, puts it into an XPathDocument
> > object to which an XSLTransform object is applied. This is supposed
> > to merge other data from an object model into the graphic (basically
> > changing the fill colors based on data) and then extract a node
> > segment from the main document. The segment is then inserted into a
> > preloaded svg template graphic which has already been rendered in the
> > browser. The whole thing is roughly similiar to Francis'
> > xmlSVG1.zip example listed in the "Files" section of this group.
> > The trouble arises when I try to get the correct node segment to
> > insert. I thought that the extra characters were the problem but I'm
> > going to have to look further.
> >
> > I'll let you know what I find. If you can suggest any common traps I
> > should be looking at, I'd be grateful.
> >
> > Thanks, Wayne
> >
> >  
> >
> (geez, you guys are so sensitive about browser issues!)
> I like you to try something like this using JavaScript
>
> var a="This is a test \r\nOne\r\nTwo \r\n"
> Then
> Try using AJAX with
> URL="yourDomain.com?ABC="+a
>
> Not Kidding?
> with IE the string will output "This is a test
> 
One
Two&space;
"
> while FF is still with return linefeed and space (which is char 13,10 and
> 32). Even before it leave the machine.
>
>
> Hope this help
>
> Phi
>




Hi Matin.

Just one more example :

Supposingly you create a custom attribute:
ABC="&value"

I have encountered AJAX from IE -Very Painfull.
&value.
while FF give me a clean "&value"

Hope this help.

Phi


-- 
> Phi - Tran
> Hugely increase your speed, saving your band-width with ZipProtocol
> plus crystal clear SVG Rendering image at
> HTTP://oneplusplus.com
>



-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/