cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Entin" <>
Subject SVG Transformation
Date Wed, 02 Jan 2002 12:34:08 GMT
Hi! Happy New Year to everybody!

I've got a bit strange problem when attempted to process SVG with C2:
In my pipeline I have two quite simple matches:

This works fine:
         <map:match pattern="**/*.svg">
	         <map:read src="{2}.svg" mime-type="image/svg-xml"/>

This does not work at all:
	   <map:match pattern="**/*.svg.html">
	         <map:generate src="{2}.svg"/>
		   <!-- here my transformer will go -->
      	   <map:serialize type="svgxml" />
Second match generates invalid XML, if to apply html serializer I could
see the following beginning of xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
Common attributes to check for system capabilities. --><!-- For most
uses of URI referencing:
        standard XLink attributes other than xlink:href. --><!-- This
entity allows for at most one of desc, title and metadata,...

Note that there is no closing '>' after DOCTYPE and therefore Explorer
could not visualize the XML.
I believe it's a root of problem why svgxml serializer generates

BTW, the comments "<!-- Common attributes to check..." and others have
not been defined in SVG, they come from the DTD. Why?
When my computer is out of network, the second match does not work with
exception DTD Not Found... The first match works fine in any condition.

Any ideas how to resolve the problem?

Thanks in advance!

Best wishes,

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message