cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Moissinac <jcmoissi...@gmail.com>
Subject SVG with xlink namespace
Date Thu, 07 Apr 2005 08:26:02 GMT
Hello

I have an SVG file, something like
<?xml version="1.0" encoding="UTF-8"?>
<svg width="100%" height="100%" viewBox="0 0 333 250"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
...
<use xlink:href="#S1" transform="translate(62.0 213.0)
scale(0.29522705 0.29522705) " />
</svg>


Note that it is using the xmlns:xlink namespace.
It is a very common situation in an SVG file.

When I try a sitemap like
               <map:match pattern="kangourou">
                       <map:generate type="file" src="aa001.svg"/>
                       <map:serialize type="svgxml"/>
               </map:match>
I get the followin error

"The prefix "xlink" for attribute "xlink:href" associated with an
element type "use" is not bound."

To use a map:read is not a solution for me, because I have to use
output of this pipeline as input for another (and, probably, to put a
map:transform between the map:generate and the map:serialise).

How can I specify to Coccon that I need to use a content like that
SVG, with two namespaces?

Thank you in advance for your help
-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message