[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: SVG Manipulation Problems connected to Doctype dec
> I was hoping that someone might clarify if there was ever a > resolution to an > earlier problem that was mentioned about SVG (posted by David > Pawson on > Friday March 3, 2000 under the title "doctype decl problem"). > My goal is to > strip out the "path" elements out of an SVG document. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <xsl:include href="identity.xsl" <xsl:output method="xml"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="svg:path"> whatever. </xsl:call-template> </xsl:template> HTH, DaveP, having just spent 3 days with python converting relative path attributes into absolute! one job XSLT totally fell down on. <path d="M-3963 10782c14,8 51,14 105,15 54,2 97,-10 106,-14 14,-10 10,-63 55,-94 45,-31 78,-54 90,-93 11,-40 -35,-67 -59,-52 -23,15 -33,26 -41,37 0,0 13,-66 -1,-65 -19,2 -88,8 -158,8 -69,0 -114,-3 -138,-7 -17,11 -1,95 12,161 20,94 10,97 29,104zm247 -122c-1,-11 8,-25 17,-39 11,-16 14,-30 37,-42 22,-11 35,12 3,43 -32,30 -46,39 -57,38z" class="fil5"/> How to process: c values in sextuples reset on a z to last fixed point then update remainder to absolute values (upper case L M C) instead of relative (lwoer case). Not sure even 2.0 will do that, hence Python with regexp. Regards DaveP - NOTICE: The information contained in this email and any attachments is confidential and may be legally privileged. If you are not the intended recipient you are hereby notified that you must not use, disclose, distribute, copy, print or rely on this email's content. If you are not the intended recipient, please notify the sender immediately and then delete the email and any attachments from your system. RNIB has made strenuous efforts to ensure that emails and any attachments generated by its staff are free from viruses. However, it cannot accept any responsibility for any viruses which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk 14th June 2002 is RNIB Look Loud Day - visit http://www.lookloud.org.uk to find out all about it. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|