[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SVG Help
Kent,
I just run your code through my favorite XSLT processor (xt) and I think I got the correct result: <?xml version="1.0" encoding="utf-8"?> <svg viewBox="0 0 800 400" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org.1999/xlink"> <circle r="100" cx="50%" cy="50%" fill="orange" stroke="black" stroke-width="10"/> <g text-anchor="middle" font-size="20" fill="red"> <desc>Timeline Markers</desc> <text x="400" y="100">This is text</text>August</g> </svg> The text that you show seems to be exactly the plain text in the output XML file (the content of <g> <desc> and <text>). You don't explain how do you run your transformation but I suspect that you do it through an XSLT-enabled web browser and you are expecting to see the output displayed by the Adobe SVG plugin (but instead you see the text as if the content was an HTML page with a lot of unknown tags). One explanation could be that the "media-type" that you add to the <xsl:output> instruction doesn't correctly get converted to Content-Type in the HTTP response (and so the browser doesn't know that it should launch the SVG plugin). Another explanation is that you define the namespaces for svg and xlink but then you never use them. Shouldn't you prepend the SVG tags with the "svg" namespace ? (i.e. <svg:svg>) or at least declare svg your default output namespace. Hope this helps, Raffaele On Sunday, October 31, 2004, at 02:03 PM, Kent Seegmiller wrote: I am trying to creat a very simple svg doc using the following source document: (August.xml)
|
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
|