-
-
Save alpacaaa/1253919 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<student_list> | |
<student> | |
<name>George Washington</name> | |
<major>Politics</major> | |
<phone>312-123-4567</phone> | |
<email>[email protected]</email> | |
</student> | |
<student> | |
<name>adabadaje 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 hidden or 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