<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="code.xsl" ?>
<dns4.nl>
<voorbeeld>
<title>de xsl file die de layout bepaald van xml files</title>
<verwijzende_link>http://www.dns4.nl/pagina/xml_code/xml_voorbeeld.html</verwijzende_link>
<informatie>
Copy de code in een pagina met de naam code.xsl.

</informatie>
<programma_code>
<![CDATA[
<!-- de code begint vanaf hier.

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
	&lt;xsl:template match="/"&gt;
		&lt;html&gt;
			&lt;head&gt;
				&lt;style type="text/css"&gt;
				  &lt;![CDATA[
					&lt;!--
					body {
						background-color:#ADFFD0;
						 }
					h1 { 
						padding:0.5em;
						background-color:#004400;
						color:#dddddd;
						font-weight:bold;
						 }
					h2 { 
						padding:0.5em;
						background-color:#004400;
						color:#dddddd;
						font-weight:bold;
						 }
					h2 a, h2 a:visited {color:#D4AAFF;}
					h3 a, h3 a:visited {color:#004400;}
					h5 a, h5 a:visited {color:#004400;}

				p {
						margin-left:2em; font-weight:bold; }
					h3 { 
						font-size:1em;
						padding:0.5em;
						color:#111111;
						background-color:#82BF9B;
						font-weight:bold;
						 }
					h4 { 
						padding:1em;
						background-color:#82BF9B;
						color:#111111;
						 }
					h5 { 
						font-size:1em;
						padding:0.5em;
						color:#111111;
						background-color:#82BF9B;
						font-weight:bold;
						 }
					--&gt;
				  ]]&gt;
				&lt;/style&gt;
			&lt;/head&gt;
			&lt;body&gt;
				&lt;xsl:for-each select="dns4.nl/voorbeeld"&gt;
				&lt;h1&gt;&lt;xsl:value-of select="title" /&gt;&lt;/h1&gt;
				&lt;h2&gt;&lt;xsl:variable name="sitemapURL"&gt;&lt;xsl:value-of select="verwijzende_link"/&gt;&lt;/xsl:variable&gt;  
				deze code behoort bij de procedure op pagina &lt;a href="{$sitemapURL}"&gt;&lt;xsl:value-of select="$sitemapURL"&gt;&lt;/xsl:value-of&gt;&lt;/a&gt;&lt;/h2&gt;
				&lt;h3&gt;&lt;xsl:variable name="sitemapURL2"&gt;&lt;xsl:value-of select="code_link"/&gt;&lt;/xsl:variable&gt;  
				alle code van de site op pagina : &lt;a href="{$sitemapURL2}"&gt;&lt;xsl:value-of select="$sitemapURL2"&gt;&lt;/xsl:value-of&gt;&lt;/a&gt;&lt;/h3&gt;
				&lt;h4&gt;Informatie:&lt;br /&gt;&lt;pre&gt;&lt;xsl:value-of select="informatie" /&gt;&lt;/pre&gt;&lt;/h4&gt;
				&lt;p&gt;&lt;pre&gt;&lt;xsl:value-of select="programma_code" /&gt;&lt;/pre&gt;&lt;/p&gt;
				&lt;h5&gt;&lt;xsl:variable name="sitemapURL3"&gt;&lt;xsl:value-of select="code_link"/&gt;&lt;/xsl:variable&gt;  
				alle code van de site op pagina : &lt;a href="{$sitemapURL3}"&gt;&lt;xsl:value-of select="$sitemapURL3"&gt;&lt;/xsl:value-of&gt;&lt;/a&gt;&lt;/h5&gt;
				&lt;/xsl:for-each&gt;
			&lt;/body&gt;
		&lt;/html&gt;
	&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;

de code is hier geeindigd.
// -->
]]>
</programma_code>
<code_link>http://www.dns4.nl/pagina/alle_tekst_files.html</code_link>
</voorbeeld>
</dns4.nl>
