Could you give us an example XML and the expected output ?
//track[./*[@artits='some artist]]
Main Topics
Browse All TopicsI am using the following xsl to transform my xml document:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.o
<xsl:output method="xml"
version="1.0"
encoding="iso-8859-1"
indent="yes" />
<xsl:template match="/">
<xsl:element name="library">
<xsl:attribute name="value">
<xsl:value-of select="'My iTunes Library'" />
</xsl:attribute>
<xsl:apply-templates select="plist/dict/dict/di
</xsl:element>
</xsl:template>
<xsl:template match="plist/dict/dict/dic
<xsl:element name="track">
<xsl:attribute name="value">
<xsl:value-of select="key[.='Name']/foll
</xsl:attribute>
<xsl:call-template name="artist" />
<xsl:call-template name="album" />
</xsl:element>
</xsl:template>
<xsl:template name="artist">
<xsl:element name="artist">
<xsl:attribute name="value">
<xsl:value-of select="key[.='Artist']/fo
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template name="album">
<xsl:element name="album">
<xsl:attribute name="value">
<xsl:value-of select="key[.='Album']/fol
</xsl:attribute>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
When using the transformed XML as a datasource I would like to only return 'track' elements that have the sub-element 'artist' attribute equal to a string. For example, I think it might go something like this: "library/track/artist[@val
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: carl_tawnPosted on 2006-07-25 at 09:31:23ID: 17177246
If "artist" is an attribute of "track" then it would be:
istName']
library/track[@artist='Art