Hi Stephan,
This is doable, other options you might consider, use the xml:base attribute to point to the original source location.
The real problem with replacing the links is the need to base64 encode the referenced content for JPG/PNG. Also you would need to 'import' content referenced by use to the local document. For the 'image' element referencing SVG you are actually in a bit of trouble since I don't think we currently support base64 encoded SVG data in image tags. So you would have to fake the image element with an SVG and copy the SVG file in (which is probably the 'right' thing to do anyway).
Jorg Heymans wrote:
xslt seems like a good choice here. Alternatively, you could define an entity in your document that contains the path, and reference this entity in you <image> and <xlink> tags. Then when you transfer it into the repository just replace the entity with the correct path.
hth Jorg Heymans
Stephan M�ller wrote:
Hello,
I want to copy a SVG into a repository. After that, other images and SVG being used by my SVG (with <image xlink:href=...> or <use xlink:href...>) cannot be found. Is there a possibility to transform a SVG, so that it no longer contains references to other files? At least I have to replace the relative links...
Thanks for any suggestions
Stephan M�ller
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
