Skip to content

Commit

Permalink
With @HelenaSabel and @martindholmes, add altIdent to set of elements…
Browse files Browse the repository at this point in the history
… pruned by language. (This will allow input with multiple altIdents distinguished by xml:lang=, using same algorithm as for desc & gloss.
  • Loading branch information
sydb committed Dec 6, 2023
1 parent d0d4125 commit c008b25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions XSLT/prune_and_localize.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@
</xsl:template>

<xd:doc>
<xd:desc>Ensure there is an appropriate language specification for &lt;gloss>,
&lt;desc>, and &lt;valDesc>. If the @xml:lang matches the parameter we were
given, take this one. </xd:desc>
<xd:desc>Ensure there is an appropriate language specification for
&lt;gloss>, &lt;desc>, &lt;valDesc>, and &lt;altIdent>. If the
@xml:lang matches the parameter we were given, take this one.</xd:desc>
</xd:doc>
<xsl:template match="desc|gloss|valDesc" as="element()?">
<xsl:template match="desc|gloss|valDesc|altIdent" as="element()?">
<xsl:choose>
<!-- Currently unsolved: what if there are multiple siblings without @xml:lang, or
with the same (target or en) @xml:lang? -->
Expand Down

0 comments on commit c008b25

Please sign in to comment.