Examples

Top  Previous  Next

 

Here are some examples describing how you can change the output from Pascal Browser.

 

Change the default templates so that a different background color is used for the resulting HTML pages

 

Solution:

 

1. Open the DefStyle.css file in the default templates folder. The full path to this file is

C:\Documents and Settings\<acc>\My Documents\Pascal Browser\Templates\Default\DefStyle.css.

 

2. Edit this section. customizing it the way you like:

 

 BODY

 {

     BACKGROUND: white;

     FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif;

     FONT-SIZE: x-small;

 }

 

3. Save DefStyle.css

 


 

 

Create a template for classes that produces separate lists for procedures and functions in the class

 

Solution:

 

1. First create a new folder for the new set of templates, for example:

C:\Documents and Settings\<acc>\My Documents\Pascal Browser\Templates\MyTemplates

 

2. Copy all files from the default template folder to the new folder.

 

3. Open Class.xsl (in the new folder), in a text editor, or an editor suitable for XSLT files.

 

4. Change the section:

 

    <xsl:call-template name="table">

      <xsl:with-param name="filter" select="$ItemsInMe[(@kind='Procedure') or (@kind='Function')]"/>

      <xsl:with-param name="caption" select="'Methods'"/>

      <xsl:with-param name="bNameColumn" select="1"/>

      <xsl:with-param name="bScopeColumn" select="1"/>

      <xsl:with-param name="bCommentsColumn" select="1"/>

      <xsl:with-param name="bDeclarationColumn" select="1"/>

    </xsl:call-template>

 

       to:

 

    <xsl:call-template name="table">

      <xsl:with-param name="filter" select="$ItemsInMe[@kind='Procedure']"/>

      <xsl:with-param name="caption" select="'Procedures'"/>

      <xsl:with-param name="bNameColumn" select="1"/>

      <xsl:with-param name="bScopeColumn" select="1"/>

      <xsl:with-param name="bCommentsColumn" select="1"/>

     <xsl:with-param name="bDeclarationColumn" select="1"/>

   </xsl:call-template>

 

    <xsl:call-template name="table">

      <xsl:with-param name="filter" select="$ItemsInMe[@kind='Function']"/>

      <xsl:with-param name="caption" select="'Functions'"/>

      <xsl:with-param name="bNameColumn" select="1"/>

      <xsl:with-param name="bScopeColumn" select="1"/>

      <xsl:with-param name="bCommentsColumn" select="1"/>

     <xsl:with-param name="bDeclarationColumn" select="1"/>

    </xsl:call-template>