[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: "Ryan Lubben" <ryanl@xxxxxxxxxxx>
Date: Tue, 11 Jul 2006 08:47:41 -0500
overflow visible
>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).

I'm using Xalan 2.7.0 as my processor. 

I made sure the SVG was in fact valid so that doesn't appear to be the
problem. I also tried hard-coding the location of the SVG, but was still
unable to get any results.

Here is how I am using the document() function to call on the width
attribute value through the stylesheet and the SVG code for My_SVG.svg.

<fo:block color="red"><xsl:value-of
select="document('C:\My_SVG.svg')/svg/@width"/></fo:block>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg  version="1.0" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="170.8" height="73.6"
viewBox="0 0 170.8 73.6"
	 style="overflow:visible;enable-background:new 0 0 170.8 73.6;"
xml:space="preserve">
<g id="Layer_2">
	<rect x="0.5" y="0.5" style="fill:#6FBE44;stroke:#000000;"
width="122.7" height="64.3"/>
</g>
</svg>



Ryan Lubben

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.