summaryrefslogtreecommitdiff
path: root/tests/general/bug-56.xsl
blob: a364bff0fd6ca2540e1778d0d58f08983f9be13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
                exclude-result-prefixes="l"
                version="1.0">

<xsl:output method="xml"/>

<xsl:param name="local.l10n.xml" select="document('')"/>

<xsl:template match="doc">
  <xsl:variable name="lang" select="'en'"/>
  <xsl:variable name="dingbat" select="'nestedstartquote'"/>

    <xsl:text>LOCALES: </xsl:text>
    <xsl:value-of select="count(($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:dingbat[@key=$dingbat])[1])"/>

  <xsl:variable name="local.l10n.dingbat">
    <xsl:value-of select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:dingbat[@key=$dingbat])[1]"/>
  </xsl:variable>

    <xsl:text>
LOCALES2: </xsl:text>
    <xsl:value-of select="count($local.l10n.dingbat)"/>

</xsl:template>

</xsl:stylesheet>