[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: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 11 Jul 2006 14:55:05 +0100
Re:  Obtaining  Graphic File Widths
> select="document('C:\My_SVG.svg')/

That should give an error about an unknown URI scheme C.
Like most external identifiers in XML/XSLT document() takes a URI not a
windows file path. The URI to a file on your local machine is something
like
file:///C:/My_SVG.svg
that is, using the file: URI schema (rather than http: etc) and using /
not \.

Unless you have a catalogue in place you probably don't want
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
at the top of your files, as this will entail the system fetching and
reading the dtd from the remote site each time which may (or may not,
depending on whether your system caches the file) take longer than the
actual transform stage.
David

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.