find_vc_classifications_not_in_Gemstone.xsl

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 13:07

<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output encoding="utf-8" indent="yes" method="text"/>

<xsl:template match="/">

  <xsl:apply-templates/>

</xsl:template>

 

<xsl:template match="section">

<xsl:variable name="GemName" select="string(name)"/>

       <xsl:if test="not(document('GemstoneClassifications.xml')/root/classification[@long_name=$GemName])">

                  <xsl:value-of select="$GemName"/><xsl:text>&#xa;</xsl:text>

       </xsl:if>

</xsl:template>

</xsl:stylesheet>