Skip to content

Commit

Permalink
feat(hands) extract hand information
Browse files Browse the repository at this point in the history
Cf. #660
  • Loading branch information
thvitt committed Sep 27, 2022
1 parent 2ca0e25 commit af69799
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metadata-html.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<p:variable name="basename" select="replace(replace(doc($filename)//f:idno[@type='faustedition'], 'α', 'alpha'), '[^A-Za-z0-9.-]', '_')"/>
<p:variable name="outfile" select="concat($metahtml, $basename, '.html')"/>
<p:variable name="searchfile" select="p:resolve-uri(concat('search/meta/', $basename, '.html'), $builddir)"/>
<p:variable name="handsfile" select="p:resolve-uri(concat('handinfo/', $basename, '.xml'), $builddir)"/>


<p:load>
Expand All @@ -67,6 +68,11 @@
<p:input port="source"><p:pipe port="result" step="generate-html"/></p:input>
</p:store>

<p:store indent="true" omit-xml-declaration="true">
<p:with-option name="href" select="$handsfile"/>
<p:input port="source"><p:pipe port="secondary" step="generate-html"></p:pipe></p:input>
</p:store>

<p:xslt>
<p:input port="source"><p:pipe port="result" step="generate-html"/></p:input>
<p:input port="parameters"><p:pipe port="result" step="config"/></p:input>
Expand Down
3 changes: 3 additions & 0 deletions xslt/faust-metadata.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@
<xsl:call-template name="hands-details"/>
</div>

<xsl:result-document href="handsinfo.xml" method="xml">
<xsl:sequence select="$hands"/>
</xsl:result-document>

</xsl:template>

Expand Down

0 comments on commit af69799

Please sign in to comment.