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

Re: Obtaining Graphic File Widths

Subject: Re: Obtaining Graphic File Widths
From: Frans Englich <frans.englich@xxxxxxxxx>
Date: Mon, 10 Jul 2006 21:15:44 +0000
Re:  Obtaining  Graphic File Widths
On Monday 10 July 2006 20:31, Wendell Piez wrote:
> Ryan,
> At 04:13 PM 7/10/2006, you wrote:
> >I am trying to set up my stylesheet/FO so that it would be able to look at
> >any graphic files used an XML file and obtain the actual width of the
> > image. Is it possible to get the width value of a graphic file (we are
> > using SVGs) using a Java extension or by some other method? I have tired
> > using the document() function to call on the SVG (since it is an XML file
> > after all) and grab the width attribute, but apparently the document
> > function only works on files with a .xml extension.
> That doesn't sound compliant. What processor is
> that? document() shouldn't care what the name of
> the file is, as long as it parses (and unless your SVG is broken, it does).

It's not uncommon for SVG files to be invalid XML, because an namespace 
prefixed named "xlink" isn't declared.

Brand new technology that people breaks. I just want to strangle someone.



Current Thread


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.
First Name
Last Name
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.