Skip to content

Commit

Permalink
allow for subsets by module
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrahtz committed Oct 27, 2014
1 parent 9292d20 commit 624c337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/odd-to-csv.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
version="2.0">
<xsl:import href="../common/functions.xsl"/>
<xsl:output method="text"/>
<xsl:param name="module"/>
<xsl:param name="method">ref</xsl:param>
<xsl:param name="classtype">model</xsl:param>
<xsl:param name="includeheader">true</xsl:param>
Expand Down Expand Up @@ -42,11 +43,12 @@
</xsl:choose>
</xsl:template>

<xsl:function name="tei:catalogueByRef" as="node()">
<xsl:function name="tei:catalogueByRef" as="node()*">
<xsl:for-each select="$TOP//elementSpec">
<xsl:choose>
<xsl:when test="@ident='egXML'"/>
<xsl:when test="$includeheader='false' and @module='header'"/>
<xsl:when test="not($module ='') and not(@module=$module)"/>
<xsl:otherwise>
<xsl:variable name="element" select="@ident"/>
<xsl:for-each select="content//rng:ref">
Expand Down Expand Up @@ -111,6 +113,7 @@
<xsl:choose>
<xsl:when test="@ident='egXML'"/>
<xsl:when test="$includeheader='false' and @module='header'"/>
<xsl:when test="not($module ='') and not(@module=$module)"/>
<xsl:otherwise>
<xsl:call-template name="expandClass">
<xsl:with-param name="distance" select="1"/>
Expand Down

0 comments on commit 624c337

Please sign in to comment.