[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT, Namespaces & SVG

Subject: Re: XSLT, Namespaces & SVG
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 4 Dec 2000 15:51:13 GMT
svg xslt namespace
> The following is a representative example of the problem. I have a simple
> SVG document, and a stylesheet that adds some tags and removes  some
> attributes from the existing document.

It worked for me (using saxon) I got the result at the end once I'd
corrected the typo in the  example stylesheet having two /> for
xsl:output.


Note that the input document relies on the XML parser reading the
DTD and adding the xmlns attribute. The namespace REC explictly warns
against doing this as a non validating parser (as used by most XSL
systems) is not required to read the DTD. That is, even if the DTD
does default this attribute you are recommended to explictly specify it
in the document instance as well.

However most do read the DTD and as shown below, your file seems to work
OK with my copy of saxon.

> <svg xmlns="%SVGNamespace;">

this seems to imply that your parser did read the dTD but didn't
understand it, which isn't supposed to happen:-)



David




saxon svg1.xml svg1.xsl
<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE svg
  PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<svg xmlns="http://www.w3.org/2000/svg-20000303-stylable">
        
   <g>
            
      <addTag xmlns:svg="http://www.w3.org/2000/svg-20000303-stylable">
         <path/>
      </addTag>
        
   </g>
    
   <g>  
            
      <addTag xmlns:svg="http://www.w3.org/2000/svg-20000303-stylable">
         <path/>
      </addTag>
        
   </g>

</svg>bash-2.01$ 





_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.