Praktisches XSLT Beispiel: ?ndern der navigation_service_row TEIL 2

"Roger Fischer" <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general.german
Message-ID <[email protected]>
Ändern der navigation_service_row (2)
=====================================

6) Gehe zu $PROJECT_DIR/xsl/default.xsl
7) Gehe zu Template "middle_column_main_content

<xsl:template name="middle_column_main_content">

       <td align="left" valign="top">
         <table width="500" border="0" cellspacing="0" cellpadding="0">
		 <xsl:choose>
	   <xsl:when test="$thisTreeSection/level = 3">

          <tr>
            <td><!--<img
src="/images/pic_{$thisTreeSection/fulluri}.jpg"/>--></td>
        </tr>
		</xsl:when>
		<xsl:when test="$thisTreeSection/level = 2">

          <tr>
            <td></td>
        </tr>
		</xsl:when>
		</xsl:choose>

        <tr>
          <td></td>
        </tr>
		</table>
	 <xsl:for-each
select="$thisDocument/Article[lang=$lang][string-length(main) &gt; 0]">
        <!-- Content -->
        <table width="500" cellpadding="1" cellspacing="0" border="0">
			<tr>
			  <td>
					<table border="0" cellspacing="0" cellpadding="0">
						 <xsl:call-template name="navigation_service_row"/>
		     			<tr>
							<td>
								<img src="/images/line_punkt_quer500.gif" width="500" height="1"
border="0"/>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
		      <td valign="top" align="left" colspan="2">
				<br/>
   				<xsl:call-template name="printCacheId"/>
					<h1><xsl:apply-templates select="title"/></h1>
					<xsl:apply-templates select="main"/>
				<br/>

			  </td>
			 </tr>
			 <tr>
				<td align="center" colspan="2">
				<img src="/images/line_punkt_quer500.gif" width="500" height="1"
border="0"/></td>
			</tr>
		    <xsl:call-template name="navigation_service_row"/>
		  </table>
	 	</xsl:for-each>
      </td>
 </xsl:template>

8) Passe noch die Linie line_punkt_quer500.gif an, die ober- und unterhalb
des Templates "navigation_service_row" zu liegen kommt.



Viel Vergnügen
R


--
roger fischer | bitflux GmbH | schöneggstrasse 5 | ch-8004 zürich
tel +41 1 240 56 72 | mobil +41 78 607 75 06 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.