You should see scrollbars with this...
<svg xmlns="http://www.w3.org/2000/svg" width="4000" height="4000">
</svg>
Since you didn't post an example I'm not sure what you are doing
instead.
Best regards
Robert
> I try tu use:
> <xsl:template match="svg:svg/@viewBox">
> <xsl:attribute name="xmlns" >
> <xsl:value-of select="'http://www.w3.org/2000/svg'"/>
> </xsl:attribute>
> </xsl:template>
> But didn't allow me to use xmlns as attribute name, any ideas?
It seems like you are trying to add an attribute ("xmlns") to an
attribute ("viewBox")? That doesn't make much sense... ;-p
I'd suggest you get more familiar with XML [1] and XSLT [2]. Of course
this could be caused by an accidental distraction. :-)
Hope this helps,
Helder
[1] http://www.w3schools.com/xml/
[2] http://www.w3schools.com/xsl/
In the XSLT data model a namespace declaration is not an attribute node,
it is a namespace node. However there is no need to create namespace
nodes in the result tree, simply create elements or attributes in the
namespace they belong to.
If you want to create an element node or attribute node in a certain
namespace then simply do that e.g.
<xsl:template match="foo">
<svg xmlns="http://www.w3.org/2000/svg">
...
</svg>
</xsl:template>
creates a result element with local name 'svg' in the SVG namespace
'http://www.w3.org/2000/svg'.
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/