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

Re: XSLT extension for reading file properties?

Subject: Re: XSLT extension for reading file properties?
From: Liam R E Quin <liam@xxxxxx>
Date: Wed, 18 Jul 2012 09:42:21 -0400
Re:  XSLT extension for reading file properties?
On Wed, 2012-07-18 at 06:25 +0100, DaveP wrote:
> On 07/18/2012 02:45 AM, Liam R E Quin wrote:
> > On Wed, 2012-07-18 at 00:05 +0100, Michael Kay wrote:
> >
> >> A library that gives image height/width would be useful but isn't part
> >> of this module.
> >
> > I proposed one once, but we didn't have a good forum for user-supplied
> > modules or functions at the time I think. XSL-FO needed it.
> 
> It's needed for both Liam.
> Using XML for print and web and smartphone output, we need to resize
> or scale graphics puts this squarely into XSLT country.

Definitely. For www.fromoldbooks.org I use an external program
"remaneimagesbysize" that makes file with name like
"flint-castle-306x500.jpg" containing the width and height in pixels,
and then I can use string processing in XSLT and XQuery. That and
scanning a list of files in a directory to see which are images,
extracting EXIF metadata, and getting modified dates.

I should resurrect the proposal.

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of Beginning XML, published by Wrox, July 2012

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.