[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: svg from java method

Subject: Re: svg from java method
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Mon, 25 Mar 2002 14:43:22 +0000
svg and java
>i've got a problem:
>i have to generate a pdf with FOP, from an xml, and an xsl.
>i have to put some svg images into pdf, and i have to generate them via 
>a java method.
So far so good.

>so i call this java method from xsl, and this method returns an svg in 
>String.
Why a string?  This is what is making life difficult for you.  It is
better if you write the SVG generator as if it were an XML parser.

Put your svg generator into a class which implements the XMLReader
interface.  Then call this using a URI Resolver, so that in the XSLT
you can include the SVG by the document() function.  If you have Mike
Kay's book, look up the 'GEDCOM' example.

Regards,
Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.