Praktisches XSLT Beispiel: ?ndern von note bzw. Anmerkung

"Roger Fischer" <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general.german
Message-ID <[email protected]>
Praktisches XSLT Beispiel: Ändern von note bzw. Anmerkung
=========================================================


Original HTML
-------------
http://www.monorom.to/eb/cms5/layout_elemente.html


<table border="0" cellspacing="0" cellpadding="1">
			<tr>
				<td width="500"><img src="images/line_punkt_quer500.gif"  width="500"
height="1" border="0"></td>
			</tr>
			<tr>
				<td bgcolor="#b3cad0" width="500">
					<table border="0" cellpadding="7" cellspacing="0" width="500">

						<tr>
							<td valign="top"><img src="images/note2.gif"  width="22" height="41"
border="0"></td>
							<td class="red" valign="top"><b>NOTE:</b> SPEZIALBOX<br>
																								F&uuml;r wichtige Infos oder Dinge die man sich
speziell merken muss.<br>
								<br>
							</td>

						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td width="500"><img src="images/line_punkt_quer500.gif"  width="500"
height="1" border="0"></td>
	</tr>
</table>



XSLT Template
----------------

1) Gehe zu $PROJECT_DIR/xsl/docbook/html/admon.xsl
2) Bearbeite <xsl:template match="note">
3) Endresultat:
<xsl:template match="note">
<br/><br/>
<br/>
<table border="0" cellspacing="0" cellpadding="1">
			<tr>
				<td width="500"><img src="/images/line_punkt_quer500.gif"  width="500"
height="1" border="0"/></td>
			</tr>
			<tr>
				<td bgcolor="#b3cad0" width="500">
					<table border="0" cellpadding="7" cellspacing="0" width="500">

						<tr>
							<td valign="top"><img src="/images/note2.gif"  width="22" height="41"
border="0"/></td>
							<td class="red" valign="top"><b>Anmerkung:</b><br/>
								<xsl:apply-templates/><br/>
								<br/>
							</td>

						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td width="500"><img src="/images/line_punkt_quer500.gif"  width="500"
height="1" border="0"/></td>
	</tr>
</table>
<br/>
</xsl:template>


4) Bilder aufm $PROJECT_DIR/www/images laden.
5) Resultat auf:
http://nbwz.bitflux.ch/introductions/cms/





--
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.