extractimage.py revision 80809dee6f6d120234c4570056c9a10c063953d8
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldCopyright (C) 2005 Aaron Spike, aaron@ekips.org
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakThis program is free software; you can redistribute it and/or modify
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakit under the terms of the GNU General Public License as published by
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakthe Free Software Foundation; either version 2 of the License, or
c57da20fee24a6e5b368730153d72eabe26425b2buliabyak(at your option) any later version.
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakThis program is distributed in the hope that it will be useful,
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakbut WITHOUT ANY WARRANTY; without even the implied warranty of
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakGNU General Public License for more details.
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakYou should have received a copy of the GNU General Public License
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakalong with this program; if not, write to the Free Software
c57da20fee24a6e5b368730153d72eabe26425b2buliabyakFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
c57da20fee24a6e5b368730153d72eabe26425b2buliabyak ctx = inkex.xml.xpath.Context.Context(self.document,processorNss=inkex.NSS)
c57da20fee24a6e5b368730153d72eabe26425b2buliabyak # exbed the first embedded image
c57da20fee24a6e5b368730153d72eabe26425b2buliabyak xlink = node.attributes.getNamedItemNS(inkex.NSS[u'xlink'],'href')