On 08.06.2004 18:54, Christoph Wieseke wrote:
i generate a dynamic svg document via xsl-transformer and write it to disk with the source-write transformer, for later delivery to the client.
so my problem is that i can't insert anything in the svg file to reference an external css stylesheet.
i tried: <xsl:processing-instruction name="xml-stylesheet">href="mystyle.css" type="text/css"</xsl:processing-instruction>
which should be the common way, but if i check the generated svg file, it only contains two PI's the regulary <?xml... one and the generated stylesheet one. but nothing else. by the way my opera and IE seem to crash.
without the <xsl:processing-instruction name="xml-stylesheet">href="mystyle.css" type="text/css"</xsl:processing-instruction> my svg and the browser is fine.
so my question: is there maybe another way to get the genarated svg file refernce an external css or is there a way to get the PI for the stylesheet written into the svg in a clean way.
It's the correct way and AFAIK the only one.
is this a possible problem of the source write transformer?
Don't know. Try it out by not writing to disk but delivering it immediately to the client.
Is the generation of the SVG that time-consuming that it makes sense to write it to disk? I would avoid it if possible and let the Cocoon caching make its job.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
