Subject: RE: [xsl] Obtaining Graphic File Widths From: "Ryan Lubben" <ryanl@xxxxxxxxxxx> Date: Tue, 11 Jul 2006 08:47:41 -0500 |
>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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Obtaining Graphic File W, Frans Englich | Thread | Re: [xsl] Obtaining Graphic File W, David Carlisle |
Re: [xsl] position() problem, David Carlisle | Date | Re: [xsl] Obtaining Graphic File W, David Carlisle |
Month |