Created
November 18, 2009 23:34
-
-
Save ithinkihaveacat/238385 to your computer and use it in GitHub Desktop.
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 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- XPath expression to return album given track from "iTunes Music Library.xml" --> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:template match="/"> | |
<xsl:value-of select="//key[text() = 'Name'][following-sibling::*[1][text() = 'The Girl You Lost to Cocaine']]/../key[text() = 'Album']/following-sibling::*[1]"/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment