Xslt

From Federal Burro of Information
Revision as of 19:57, 22 November 2012 by David (talk | contribs) (Created page with " <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


<xsl:stylesheet

 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0">
 
 <xsl:output method="text"/>
 
 <xsl:template match="/">
       <xsl:for-each select="db/states/state[not(@stateNumber = /db/cities/city/@stateNumber)]/@stateNumber">
         <xsl:value-of select="."/>
         <xsl:if test="position() != last()"><xsl:text> </xsl:text></xsl:if>
       </xsl:for-each>
 </xsl:template>

</xsl:stylesheet>