<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Practical XSLT Examples: Transforming an XML Document to XHTML</title>
	<atom:link href="http://www.toppa.com/2009/practical-xslt-examples-transforming-an-xml-document-to-xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toppa.com/2009/practical-xslt-examples-transforming-an-xml-document-to-xhtml/</link>
	<description>Mike Toppa's Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:15:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Francois Bernard</title>
		<link>http://www.toppa.com/2009/practical-xslt-examples-transforming-an-xml-document-to-xhtml/#comment-33497</link>
		<dc:creator>Francois Bernard</dc:creator>
		<pubDate>Sat, 10 Jul 2010 21:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.toppa.com/?p=1536#comment-33497</guid>
		<description>Hi, as for XML - XSLT - XHTML transformations, I have found a problem when there is some HTML code contained in the XML file.  I&#039;m not 100% sure about that - any HTML(XML) content must be &quot;escaped&quot; in an XML file?  An example: On http://refsbook.com a user exports his profile in XML format. But because e.g. the user&#039;s &quot;about&quot; info is HTML-encoded, we need to put it into the XML content.</description>
		<content:encoded><![CDATA[<p>Hi, as for XML &#8211; XSLT &#8211; XHTML transformations, I have found a problem when there is some HTML code contained in the XML file.  I&#8217;m not 100% sure about that &#8211; any HTML(XML) content must be &#8220;escaped&#8221; in an XML file?  An example: On <a href="http://refsbook.com" rel="nofollow">http://refsbook.com</a> a user exports his profile in XML format. But because e.g. the user&#8217;s &#8220;about&#8221; info is HTML-encoded, we need to put it into the XML content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat W</title>
		<link>http://www.toppa.com/2009/practical-xslt-examples-transforming-an-xml-document-to-xhtml/#comment-22094</link>
		<dc:creator>Pat W</dc:creator>
		<pubDate>Mon, 30 Mar 2009 14:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.toppa.com/?p=1536#comment-22094</guid>
		<description>Yay all code examples stripped!  Anyway that was talking about the [xsl:attribute] tag.  The example was:

[xsl:tag name=&quot;a&quot;]
[xsl:attribute name=&quot;href&quot;]
[xsl:value-of select=&quot;contact/email&quot; /]
[/xsl:attribute]
[/xsl:tag]</description>
		<content:encoded><![CDATA[<p>Yay all code examples stripped!  Anyway that was talking about the [xsl:attribute] tag.  The example was:</p>
<p>[xsl:tag name="a"]<br />
[xsl:attribute name="href"]<br />
[xsl:value-of select="contact/email" /]<br />
[/xsl:attribute]<br />
[/xsl:tag]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat W</title>
		<link>http://www.toppa.com/2009/practical-xslt-examples-transforming-an-xml-document-to-xhtml/#comment-22093</link>
		<dc:creator>Pat W</dc:creator>
		<pubDate>Mon, 30 Mar 2009 14:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.toppa.com/?p=1536#comment-22093</guid>
		<description>I have no idea how this will display.

To add values to tag attributes you can also use the &lt;code&gt;&lt;/code&gt; tag which is very handy if you need conditionally add attributes.

&lt;code&gt;





&lt;/code&gt;

It&#039;s more verbose for simple selects like this, but it pays off when you need to any testing to the attribute value.

Also if you ever have to do XSL on the client, Sarissa makes it nearly painless, and client side XSL is really fast and great for certain scenarios. http://dev.abiss.gr/sarissa/ I used to build a form building app at UVa that essentially created an XML representation of the form all on the client it was cool to use the same XSL form the client and the server depending on if you were editing or just using the form.</description>
		<content:encoded><![CDATA[<p>I have no idea how this will display.</p>
<p>To add values to tag attributes you can also use the <code></code> tag which is very handy if you need conditionally add attributes.</p>
<p><code></p>
<p></code></p>
<p>It&#8217;s more verbose for simple selects like this, but it pays off when you need to any testing to the attribute value.</p>
<p>Also if you ever have to do XSL on the client, Sarissa makes it nearly painless, and client side XSL is really fast and great for certain scenarios. <a href="http://dev.abiss.gr/sarissa/" rel="nofollow">http://dev.abiss.gr/sarissa/</a> I used to build a form building app at UVa that essentially created an XML representation of the form all on the client it was cool to use the same XSL form the client and the server depending on if you were editing or just using the form.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

