[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Curious about creating a custom function to java classes pertaining to images


Subject: RE: [xsl] Curious about creating a custom function to java classes pertaining to images
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 6 Aug 2009 15:30:21 +0100

Your design approach seems very reasonable and quite feasible.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

> -----Original Message-----
> From: Mario Madunic [mailto:Mario_Madunic@xxxxxxxxxxxx] 
> Sent: 06 August 2009 14:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Curious about creating a custom function to 
> java classes pertaining to images
> 
> Sorry about the foggy subject line and if this isn't 
> appropriate for this mailing list.
> 
> Was sitting here thinking about our various image needs and 
> was thinking about the possibility of creating a custom 
> function that calls a Java class. Here is what I'm thinking about:
> 
> Parse XML doc (DITA) using XSLT 2 and Saxon.
> Come across a ref to an image (which we haven't decided if we 
> create a specialized concept to contain all relevant image 
> info or some other method).
> The original images will be SVG more than likely, at the 
> moment they are WMF.
> Parse the SVG to create the appropriate file type (jpg, gif, 
> wmf, etc, or just plain old SVG) for output type, resize 
> (based on conditions), place the modified image in the 
> appropriate dir/db table. All this using XSLT via either a 
> call to Java class or a custom XSLT function calling a Java class.
> 
> I'd like this to be part of the XSLT publishing workflow.
> 
> Has anyone done this or see any issues of doing this? Just 
> wanted a heads up before going further with this.
> 
> Thanks
> 
> Marijan (Mario) Madunic
> Publishing Specialist
> New Flyer Industries
> (204) 934 8815
> mario_madunic@xxxxxxxxxxxx
> 
> 
> --------------------------------------------------------------------
> Please consider the environment before printing this e-mail.
> 
> CONFIDENTIALITY STATEMENT: This communication (and  any and 
> all information or material transmitted with this 
> communication) is confidential, may be privileged and is 
> intended only for the use of the intended recipient. If you 
> are not the intended recipient, any review, retransmission, 
> circulation, distribution, reproduction, conversion to hard 
> copy, copying or other use of this communication, information 
> or material is strictly prohibited and may be illegal. If you 
> received this communication in error or if it is forwarded to 
> you without the express authorization of New Flyer, please 
> notify us immediately by telephone or by return email and 
> permanently delete the communication, information and 
> material from any computer, disk drive, diskette or other 
> storage device or media. Thank you.


Current Thread
Keywords