[scribus] some fun with the Scribus manual

Gregory Pittman gpittman at iglou.com
Fri Dec 11 00:04:32 UTC 2015


Here is a repeat of the scribus-manual.xsl content, this time with some
embellishments, for a graphics bar at the top and some indentation.

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

<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
    <title>Scribus Online Manual</title>
<style type="text/css">
h2,h3,h4 { text-indent: 50px;}
ul { margin-left: 100px;}
</style>
<table border="0" cellspacing="0" cellpadding="0" width="100%"
bgcolor="#183867" >
	<tr>
		<td align="left"><img src="images/docheader1.png" width="222"
height="87"/></td>
		<td align="right"><img src="images/docheader2.png" width="318"
height="87"/></td>
	</tr>
</table>

    <body bgcolor="#ffffff">

      <xsl:for-each select="menu">
	<xsl:for-each select="area">
	  <h3><a href="{@file}" ><xsl:value-of select = "@text" /></a></h3>
	  <xsl:for-each select="submenuitem">
	    <h4><a href="{@file}" ><xsl:value-of select = "@text" /></a></h4>
		<xsl:for-each select="submenuitem">
		  <p><ul>
		    <li><a href="{@file}" ><xsl:value-of select = "@text" /></a></li>
		  </ul></p>
		</xsl:for-each>
	  </xsl:for-each>
	
	</xsl:for-each>
      </xsl:for-each>
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

Incidentally, making these changes to your working copy of Scribus will
not adversely affect the manual as it operates inside Scribus.

Greg



More information about the scribus mailing list