xsl-list
[Top] [All Lists]

RE: [xsl] Image extension functions

2007-04-04 12:23:56
Hi Elliotte,

I'm not sure if there are any extensions out there for obtaining an image's 
intrinsic width / height, but if you are using SVGs you can use the document() 
function to obtain the image's width / height.

<xsl:value-of select="document($graphic_url)//@width"/>
<xsl:value-of select="document($graphic_url)//@height"/>

Regards,

Ryan Lubben


-----Original Message-----
From: Elliotte Harold [mailto:elharo(_at_)metalab(_dot_)unc(_dot_)edu] 
Sent: Wednesday, April 04, 2007 12:09 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Image extension functions

Has anyone written an XSLT 1.0 extension function to get the height and 
width of an image at a specified URL?

-- 
Elliotte Rusty Harold  elharo(_at_)metalab(_dot_)unc(_dot_)edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>