<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet href="xslt/copy.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:tb="http://www.treebuilder.de/namespace">
	<head>
		<title>Treebuilder:: XSLT </title>
		<meta name="keywords" content="xslt,svg,style"/>
		<link rel="alternate" type="application/rss+xml" href="rss.asp" title="Treebuilder-News"/>
		<link rel="Stylesheet" type="text/css" href="css/kp1.css" title="treebuilder"/>
		<style type="text/css">
	  	body {font-family:sans-serif;font-size:0.9em;margin:0px;padding:0px;background:royalblue;color:#555}
		a:link {text-decoration:underline;color:royalblue}
		a:visited {text-decoration:underline;color:royalblue}
		a:hover {text-decoration:underline;color:blue}
		h1 {font-size:1.2em;color:blue;padding:0px;}
		h2 {font-size:0.9em;color:blue;padding-top:0px;font-weight:normal}
		td {text-align:left}
	  </style>
	</head>
	<body>
		<script type="text/javascript">
		function show()
			{
				var title=document.getElementById("select1").value
				var l=document.getElementsByTagName("link")
				for (var pi=0; pi != l.length;pi++)
					{
						if(l.item(pi).title==title)
							{
								l.item(pi).disabled=false
							}else
							{
								l.item(pi).disabled=true
							}
					}
			}
	</script>
		<center>
			<div style="width:75%">
				<table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:79px;margin-top:20px">
					<tr>
						<td style="width:20px;background-image:url(images/layout/bpat_t_l1.png)"></td>
						<td style="background-image:url(images/layout/bpat_t_m1.png)">
							<table>
								<tr>
									<td style="width:40%"></td>
									<td style="padding:5px 0px 0px 0px">
										<a href="default.asp?file=start.xml" title="Home">
											<img src="../images/logo/tree-logo.png" style="height:60px;border:0px;margin:0px;padding:0px"/>
										</a>
									</td>
									<td style="width:40%;font-size:0.8em;text-align:right;color:#111;vertical-align:bottom">
										<a href="default.asp?file=start.xml" style="font-weight:normal;color:#111;text-decoration:none">Home</a> | <a href="default.asp?file=980999.xml" style="font-weight:normal;color:#111;text-decoration:none">Programming</a> | <a href="default.asp?file=971752.xml" style="font-weight:normal;color:#111;text-decoration:none">Gallery</a> | <a href="default.asp?file=112240.xml" style="font-weight:normal;color:#111;text-decoration:none">Blog</a> | <a href="default.asp?file=871013.xml" style="font-weight:normal;color:#111;text-decoration:none">About</a> | <a href="default.asp?file=131725.xml" style="font-weight:normal;color:#111;text-decoration:none">A-Z</a> | </td>
								</tr>
							</table>
						</td>
						<td style="width:19px;background-image:url(images/layout/bpat_t_r1.png)"></td>
					</tr>
				</table>
				<table cellspacing="0" cellpadding="0" border="0" style="width:100%">
					<tr>
						<td style="width:5px;background-image:url(images/layout/bpat_b_l2.png)"></td>
						<td style="vertical-align:top">
							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
								<tr>
									<td colspan="2" style="padding:10px 10px 0px 10px;background-image:url(images/layout/pat_content_links1.png);">
										<div style="font-size:0.8em;margin-bottom:10px;color:#fff;font-weight:bold">
											<a href="default.asp?file=start.xml" style="color:#fff;text-decoration:none;font-weight:normal">Home</a> »
    <a href="default.asp?file=980999.xml" style="color:#fff;text-decoration:none;font-weight:normal">Programming</a> »
    <a href="default.asp?file=250484.xml" style="color:#fff;text-decoration:none;font-weight:normal">XSLT</a> »
    XSLT </div>
									</td>
								</tr>
								<tr>
									<td style="background-image:url(images/layout/pat_content_links1.png);padding:0px 5px 20px 10px;vertical-align:top">
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:400px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)"><div></div></td>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td id="contentarea" style="/width:100%;background:#fff;vertical-align:top;padding:20px 10px 20px 10px">
													<div style="padding-top:20px">
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=284771.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=284771.xml">a simple svg textbox created with xslt</a>
															</div>
															<div>
as you can see from my last several post, im working a lot with SVG+XSLT lately, this should ultimately result in a collection of useful extension elements for charting, GUI programming and misc graphics stuff. i got lots of examples and experiments laying around, i thought i might share this one, for now. this is a simple textbox, that works in Opera and FireFox. you can use this textbox in xhtml or svg:

and here is the stylesheet used.
and here is a simplyfied prototyp, that does not use XSLT, and shows how the script works.
		</div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=313823.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=313823.xml">scriptable progress bar: mixing XHTML,SVG,XSLT,CSS and JavaScript</a>
															</div>
															<div>
this is a step by step guide on how to extend xhtml with elements in your own namespace , render
your elements with SVG, style the output with CSS and make the whole thing scriptable.
so lets create a programmable progressbar. in the end it should look something like:      </div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=934978.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=934978.xml">an inline SVG barchart created with XSLT styled with CSS</a>
															</div>
															<div>
and again a chart, this time i took template from the first chart and modify it a bit , so i can style the result with CSS. 
in this example, you can switch the stylesheet to an alternate stylesheet if you are here with Opera or Firefox (the example does not work in IE+ASV at all since CSS does not work for inline SVG in IE).
notice the nice hover effect on the bars. all done in XSLT SVG and CSS, no script!
</div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=172558.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=172558.xml">a dynamic coin stack chart</a>
															</div>
															<div>
this coin stack chart is a derivation of  the chart in my previous post. i use the same chart syntax, but a different xslt stylesheet. below you can see a png version of that chart , i first transformed it into pure svg with saxon, and then rendered it to png with batik.  </div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=306286.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=306286.xml">a barchart extension written in xslt using SVG</a>
															</div>
															<div>
this barchart extension is useable in XHTML,SVG,XSL:FO,Standalone or in any other xml based language. the following svg file is the result of the transformation of the file svg.svg.
i've used saxon to create it.</div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=749340.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=749340.xml">Styling XHTML with SVG using XSLT - Part II</a>
															</div>
															<div>
So in Part I of this tutorial we used XSLT to style XHTML, now lets add some SVG... So in this example we add a rect element in a custom namespace. We bind the prefix "my" to an example URI, here I use "http://example.com/namespace". We then make up a new element called rect in the "my" namespace. 
</div>
														</div>
														<div style="border-top:1px dashed #888;padding:5px;margin:5px;font-size:0.8em;min-height:6em;">
															<a href="default.asp?file=621700.xml">
																<img src="images/icons/doc_normal.png" style="width:4em;float:left;margin-right:10px;border:0px"/>
															</a>
															<div style="font-size:1.2em;color:royalblue;font-weight:bold;padding-bottom:5px">
																<a href="default.asp?file=621700.xml">Styling XHTML with SVG using XSLT - Part I</a>
															</div>
															<div>Namespaces in XML are used to identify vocabularies. The xmlns attribute is used to specify the namespace for 
the current Element and all its children. So in this example we tell the browser that the HTML element and all its children are elements in the XHTML namespace and therefor should be treated as XHTML (i.e.: get rendered ...). 
</div>
														</div>
													</div>
												</td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
									</td>
									<td style="width:200px;vertical-align:top;padding:0px 10px 20px 5px;background-image:url(images/layout/pat_content_links1.png)">
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:0.8em;margin:0px 0px 5px 0px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)"/>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td style="background:#fff;vertical-align:top">
													<div class="explorer_punkt" style="font-size:0.9em;border:0px">
														<img src="images/icons/NEUordner_geschlossen.png"/><a href="default.asp?file=980999.xml" style="color:#555">../</a>
													</div>
													<div class="explorer_punkt" style="font-size:0.9em;border:0px">
														<img src="images/icons/NEUordner_geschlossen.png"/><a href="default.asp?file=358730.xml" style="color:#555">SVG</a>
													</div>
													<div class="explorer_punkt" style="font-size:0.9em;border:0px">
														<img src="images/icons/NEUordner_geschlossen.png"/><a href="default.asp?file=137859.xml" style="color:#555">Tools</a>
													</div>
													<div class="explorer_punkt" style="font-size:0.9em;border:0px">
														<img src="images/icons/NEUordner_geschlossen.png"/><a href="default.asp?file=195003.xml" style="color:#555">XUL</a>
													</div>
													<div class="explorer_punkt" style="font-size:0.9em;border:0px">
														<img src="images/icons/NEUordner_offen.png"/><a href="default.asp?file=250484.xml" style="color:#555">XSLT</a>
													</div>
													<div class="explorer_sub">
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/dokument_aktiv.png"/><a href="default.asp?file=250484.xml" style="color:#555">XSLT </a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=284771.xml" style="color:#555">a simple svg textbox created with xslt</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=313823.xml" style="color:#555">scriptable progress bar: mixing XHTML,SVG,XSLT,CSS and JavaScript</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=934978.xml" style="color:#555">an inline SVG barchart created with XSLT styled with CSS</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=172558.xml" style="color:#555">a dynamic coin stack chart</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=306286.xml" style="color:#555">a flexible barchart extension</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=749340.xml" style="color:#555">Styling XHTML with SVG using XSLT - Part II</a>
														</div>
														<div class="explorer_punkt" style="font-size:0.9em;border:0px">
															<img src="images/icons/docNEU.png"/><a href="default.asp?file=621700.xml" style="color:#555">Styling XHTML with SVG using XSLT - Part I</a>
														</div>
													</div>
												</td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:0.8em;padding-bottom:10px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)">
												</td>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td style="background:#fff;vertical-align:top">
													<form action="search.asp">
														<input name="searchterm" type="text" style="width:80%">
														</input>
														<input type="image" src="../images/lupe.png">
														</input>
													</form>
												</td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:0.8em;padding-bottom:10px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)">
												</td>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td style="background:#fff;vertical-align:top">
													<ul>
														<li><a href="default.asp?file=129650.xml">Some Bugfixes</a></li>
														<li><a href="default.asp?file=128826.xml">SVG2PNG News</a></li>
														<li><a href="default.asp?file=208660.xml">svg2png</a></li>
														<li><a href="default.asp?file=89031.xml">More animated PNGs</a></li>
														<li><a href="default.asp?file=9380.xml">APNG Edit ,SMIL XSLT and the SVG Logo</a></li>
														<li><a href="default.asp?file=163540.xml">SVG Game creation tutorial - a slot machine part 1</a></li>
														<li><a href="default.asp?file=17498.xml">Inline SVG working again</a></li>
														<li><a href="default.asp?file=284771.xml">a simple svg textbox created with xslt</a></li>
														<li><a href="default.asp?file=313823.xml">scriptable progress bar: mixing XHTML,SVG,XSLT,CSS and JavaScript</a></li>
														<li><a href="default.asp?file=934978.xml">an inline SVG barchart created with XSLT styled with CSS</a></li>
														<li><a href="default.asp?file=172558.xml">a dynamic coin stack chart</a></li>
														<li><a href="default.asp?file=306286.xml">a flexible barchart extension</a></li>
														<li><a href="default.asp?file=749340.xml">Styling XHTML with SVG using XSLT - Part II</a></li>
														<li><a href="default.asp?file=621700.xml">Styling XHTML with SVG using XSLT part1</a></li>
														<li><a href="default.asp?file=643764.xml">a more advanced inline SVG test</a></li>
														<li><a href="default.asp?file=898693.xml">14 Segment LED Font</a></li>
														<li><a href="default.asp?file=857097.xml">testing Inline SVG</a></li>
														<li><a href="default.asp?file=529979.xml">New Design and WorldCup</a></li>
														<li><a href="default.asp?file=716365.xml">Berlin Clock Widget</a></li>
														<li><a href="default.asp?file=580532.xml">Berlin Clock</a></li>
														<li><a href="default.asp?file=755687.xml">SVG Filters and Fonts</a></li>
													</ul>
												</td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:0.8em;padding-bottom:10px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)">
												</td>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td style="background:#fff;vertical-align:top">
													<h2>SVG Links</h2><a href="http://www.getsvg.com/forum" style="">getSVG Forum</a><br/><a href="http://blog.codedread.com" style="">Jeff Schiller's Blog</a><br/><a href="http://rr.latenightpc.com/wp" style="">Rob's Blog</a><br/><a href="http://www.openclipart.org" style="">openclipart.org</a><br/><a href="http://www.svgx.org" style="">svgX.org</a><br/><a href="http://www.svg.org" style="">svg.org</a><br/><a href="http://www.svgbasics.com" style="">SVG Basic Tutorial</a><br/><a href="http://www.steltenpower.com" style="">Stelt's Page</a><br/><a href="http://www.jwatt.org" style="">Jonathan's Page</a><br/><a href="http://www.learnsvg.com" style="">Learn SVG Tutorial</a><h2>Off Topic</h2><a href="http://www.klimapartner-berlin.de" style="">KlimaPartner Berlin (de)</a><br/><a href="http://www.titanic-magazin.de" style="">Titanic Magazin (de)</a><br/><a href="http://www.bildblog.de" style="">bildBLOG (de)</a><br/><a href="http://www.penthouse-zermatt.ch/home_de.html" style="">penthouse-zermatt</a></td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
										<table cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:0.8em;padding-bottom:10px">
											<tr>
												<td style="width:20px;background-image:url(images/layout/pat_app_top_links2.png);"></td>
												<td style="background-image:url(images/layout/pat_app_top_mitte2.png)">
												</td>
												<td style="width:14px;height:13px;background-image:url(images/layout/pat_app_top_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="background-image:url(images/layout/pat_app_body_links1.png)"></td>
												<td style="background:#fff;vertical-align:top">
													<h1>technorati</h1><div>
													</div>
												</td>
												<td style="background-image:url(images/layout/pat_app_body_rechts1.png)"></td>
											</tr>
											<tr>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_links1.png)"></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_mitte1.png)"><div></div></td>
												<td style="height:11px;background-image:url(images/layout/pat_app_foot_rechts1.png)"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
						<td style="width:7px;background-image:url(images/layout/bpat_b_r2.png);background-repeat:repeat-y"></td>
					</tr>
				</table>
				<table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:23px">
					<tr>
						<td style="width:20px;background-image:url(images/layout/bpat_f_l1.png);background-repeat:no-repeat"></td>
						<td style="background-image:url(images/layout/bpat_f_m1.png);background-repeat:repeat-x;vertical-align:top;text-align:right; padding-right:5px;font-size:0.7em;color:#333"><div>treebuilder</div></td>
						<td style="width:19px;background-image:url(images/layout/bpat_f_r1.png);background-repeat:no-repeat"></td>
					</tr>
				</table>
			</div>
		</center>
	</body>
</html>