<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chryzo's Notepad &#187; XSLT</title>
	<atom:link href="http://www.chryzo.net/tag/xslt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chryzo.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 20 Jul 2010 19:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASP.Net, XML, XSL-Transform</title>
		<link>http://www.chryzo.net/2009/03/aspnet-xml-xsl-transform/</link>
		<comments>http://www.chryzo.net/2009/03/aspnet-xml-xsl-transform/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 06:39:53 +0000</pubDate>
		<dc:creator>Chryzo</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.chryzo.net/?p=19</guid>
		<description><![CDATA[Here is a quick way to use ASP.Net to show some XML documents. One will find information such as Reponse.Write and stuff like that. Those information are for older version of ASP.Net when the xmlDocument was not implemented yet. So here is what one need: In the aspx page, use the xmlDocument control: &#60;asp:Xml ID=&#8221;xmlDoc&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick way to use ASP.Net to show some XML documents. One will find information such as Reponse.Write and stuff like that. Those information are for older version of ASP.Net when the xmlDocument was not implemented yet. So here is what one need:</p>
<p>In the aspx page, use the xmlDocument control:</p>
<div></div>
<div><span style="font-size: x-small; color: #0000ff;"></span></div>
<div><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"></span></span></div>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"></span></span></span></p>
<blockquote>
<p>&lt;<span style="font-size: x-small; color: #800000;"><span style="font-size: x-small; color: #800000;">asp</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">:</span></span><span style="font-size: x-small; color: #800000;"><span style="font-size: x-small; color: #800000;">Xml</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">ID</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">=&#8221;xmlDoc&#8221;</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">runat</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">=&#8221;server&#8221;&gt;&lt;/</span></span><span style="font-size: x-small; color: #800000;"><span style="font-size: x-small; color: #800000;">asp</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">:</span></span><span style="font-size: x-small; color: #800000;"><span style="font-size: x-small; color: #800000;">Xml</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&gt;</span></span></p></blockquote>
<p>In the code page, use the following code in the page_load section:</p>
<div></div>
<p><span style="font-size: x-small;"></span></p>
<blockquote>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (</span><span style="font-size: x-small; color: #008080;"><span style="font-size: x-small; color: #008080;">File</span></span><span style="font-size: x-small;">.Exists(Server.MapPath(e.Filename))){</span></p></blockquote>
<blockquote>
<div><span style="font-size: x-small;"> xmlDoc.DocumentSource = Server.MapPath(e.Filename);</span></div>
<div><span style="font-size: x-small;"> xmlDoc.TransformSource = Server.MapPath(<span style="font-size: x-small; color: #800000;"><span style="font-size: x-small; color: #800000;">&#8220;SC-SD-Transform.xsl&#8221;</span></span><span style="font-size: x-small;">);</span></span></div>
<div><span style="font-size: x-small;">}</span></div>
<div><span style="font-size: x-small;"> </span></div>
</blockquote>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="color: #000000;">And it should be working fine now. You can also use events and such if you would rather not put it in the page_load section.</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chryzo.net/2009/03/aspnet-xml-xsl-transform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
