XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
joe jSubject: XSLT & Java
Author: joe j
Date: 10 Aug 2005 09:32 AM
Hello,

I am doing a Java application where I do some XSLT transformations on SVG files. The thing is that Its hard to do string manipulation on XSLT such as long d attribute on SVG files. Is it possible, through XSLT stylesheet to pass d attribute to a Java method where it does some string manipulation and returns the result to the XSLT stylesheet on path, d matching?

I would like to be able to send the d attribute data to a Java method in my Java application which will make life easier! If it is possible to do such thing, please can you tell me where I can find such examples, a link will do?

Thank you
Joseph

Postnext
Ivan PedruzziSubject: XSLT & Java
Author: Ivan Pedruzzi
Date: 10 Aug 2005 01:48 PM

Move to XSLT 2/Saxon processor you will have access to more powerful built-in functions for manipulating strings

Ivan

Postnext
joe jSubject: XSLT & Java
Author: joe j
Date: 10 Aug 2005 07:16 PM
So it means that XSLT 1 does not support java method calls?

Posttop
Tony LavinioSubject: XSLT & Java
Author: Tony Lavinio
Date: 10 Aug 2005 11:32 PM
Each XSLT engine supports them differently.

You can do them in XSLT 1 with Saxon or Xalan for example.

But if you use Saxon 8 and use XSLT 2, you don't need to call out to
Java and your whole program can just be in one language.

If you do want to call out, there is an example in the Stylus Studio
examples project of doing just that. Or you can look up the relevant
information on Xalan at xml.apache.org or on Saxon at www.saxonica.com.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.