HeX
{ USER }
posts: 8
last: 11-Aug-2008
TITLE: Using XSLT to generate SVG
DESCRIPTION: This XSL file is intended to be used as an SVG XSL template file which displays SVG content using Gorg (XSLT back-end)
Submitted: 06-Jun-2008 12:40:59 ( 1yrs 39w 5d 4h ago ) Language: XML (*.xml *.xsl *.xul)
Views: 1078 Lines of Code: 21 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 0.00 / 5 }
Difficulty: Intermediate
Bookmark
// This XSL file is intended to be used as an SVG XSL template file which displays SVG content using Gorg (XSLT back-end processor).

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output encoding="UTF-8"
            method="xml"
            indent="yes"/>
            
  <xsl:template match="mainpage">
  <svg xmlns="http://www.w3.org/2000/svg" width="100%"
                xmlns:xlink="http://www.w3.org/1999/xlink" >

    <g>
    <text font-size="12pt" x="50" y="50" id="t2" stroke="olive"><xsl:value-of select="title"/></text>
    </g>

  </svg>
  </xsl:template>
</xsl:stylesheet>