github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/REC2/vrml.xsl (about) 1 <xsl:stylesheet version="1.0" 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 4 <!-- generate text output as mime type model/vrml, using default charset --> 5 <xsl:output method="text" encoding="UTF-8" media-type="model/vrml"/> 6 7 <xsl:template match="/">#VRML V2.0 utf8 8 9 # externproto definition of a single bar element 10 EXTERNPROTO bar [ 11 field SFInt32 x 12 field SFInt32 y 13 field SFInt32 z 14 field SFString name 15 ] 16 "http://www.vrml.org/WorkingGroups/dbwork/barProto.wrl" 17 18 # inline containing the graph axes 19 Inline { 20 url "http://www.vrml.org/WorkingGroups/dbwork/barAxes.wrl" 21 } 22 23 <xsl:for-each select="sales/division"> 24 bar { 25 x <xsl:value-of select="revenue"/> 26 y <xsl:value-of select="growth"/> 27 z <xsl:value-of select="bonus"/> 28 name "<xsl:value-of select="@id"/>" 29 } 30 </xsl:for-each> 31 32 </xsl:template> 33 34 </xsl:stylesheet>