1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version ="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:svg="http://www.w3.org/2000/svg" xml:lang="fr">
<xsl:output method="xml" media-type="image/svg+xml"
encoding="iso-8859-1" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>
SVG dans du XML/XSL
</title>
<object id="AdobeSVG" CLASSID="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2">
</object>
<xsl:processing-instruction name="import">
namespace="svg" implementation="#AdobeSVG"
</xsl:processing-instruction>
</head>
<body>
Test en XSL<br/>
<svg:svg x="0" y="0" width="300" height="200">
<svg:circle cx="150" cy="100" r="50" />
<svg:text x="30" y="20" >
<xsl:value-of select="racine/phrase"/>
</svg:text>
</svg:svg>
</body>
</html>
</xsl:template>
</xsl:stylesheet> |