[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Obtaining Graphic File Widths
>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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|