forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-forrest/src/core/context/skins/common/xslt/svg document2svg.xsl
Date Sun, 18 Jan 2004 21:40:32 GMT
nicolaken    2004/01/18 13:40:32

  Added:       src/core/context/skins/common/xslt/svg document2svg.xsl
  Trivial initial stylesheet for svg output of site pages.
  Revision  Changes    Path
  1.1                  xml-forrest/src/core/context/skins/common/xslt/svg/document2svg.xsl
  Index: document2svg.xsl
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="" >
       <xsl:output method="xml" media-type="image/svg" omit-xml-declaration="yes" indent="yes"/>
    <!-- the skinconf file -->
    <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
    <xsl:variable name="config" select="document($config-file)/skinconfig"/>
    <!-- Get the section depth to use when generating the minitoc (default is 2) -->
    <xsl:variable name="toc-max-depth" select="number($config/toc/@level)"/>
    <xsl:param name="numbersections" select="'true'"/>
    <!-- Section depth at which we stop numbering and just indent -->
    <xsl:param name="numbering-max-depth" select="'3'"/>
    <xsl:param name="ctxbasedir" select="."/>
    <xsl:param name="xmlbasedir"/>
    <xsl:template match="/">
       <svg width="1305" height="1468" xmlns="">
        <g transform="translate(0 0)">
    <xsl:template match="document">
      <text x="00px" y="30px" style="font-size:20;"><xsl:value-of select="header/title"/></text>
    	<text x="0px" y="50px" style="font-size:12;">

View raw message