Created
September 30, 2011 14:27
-
-
Save klaftertief/1253900 to your computer and use it in GitHub Desktop.
My test snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ssstudent_list> | |
<student> | |
<name>George Washington</name> | |
<major>Politics</major> | |
<phone>312-123-4567</phone> | |
<email>[email protected]</email> | |
</student> | |
<student> | |
<name>Janet Jones</name> | |
<major>Undeclared</major> | |
<phone>311-122-2233</phone> | |
<email>[email protected]</email> | |
</student> | |
<student> | |
<name>Joe Taylor</name> | |
<major>Engineering</major> | |
<phone>211-111-2333</phone> | |
<email>[email protected]</email> | |
</student> | |
</student_list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="text"/> | |
<xsl:template match="/"> | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="student_list"> | |
Student Directory for example.edu | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="name"> | |
Name: | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="major"> | |
Major: | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="phone"> | |
Phone: | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="email"> | |
Email: | |
<xsl:apply-templates/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment