Вы можете решить эту проблему, используя рекурсивный шаблон с обратным отсчетом от MaxCount
до 0 (здесь шаблон называется loop
). Настройте этот скелет в соответствии со своими потребностями.
<xsl:template name="loop">
<xsl:param name="cnt" />
<xsl:if test="$cnt > 0">
<NLoop>
<Number>9</Number>
</NLoop>
<xsl:call-template name="loop">
<xsl:with-param name="cnt" select="$cnt - 1" />
</xsl:call-template>
</xsl:if>
</xsl:template>
Затем вызовите этот шаблон в конце вашего основного шаблона:
<xsl:template match="/s0:Root">
<ns0:Root>
<Detail>
<xsl:for-each select="Detail/Member">
<Member>
<CompanyName>
<xsl:value-of select="CompanyName/text()" />
</CompanyName>
<PersonName>
<xsl:value-of select="PersonName/text()" />
</PersonName>
<State>
<xsl:value-of select="State/text()" />
</State>
<Country>
<xsl:value-of select="Country/text()" />
</Country>
<Amount>
<xsl:value-of select="Amount/text()" />
</Amount>
<CombinedState>
<xsl:value-of select="CombinedState/text()" />
</CombinedState>
</Member>
</xsl:for-each>
</Detail>
<!-- Call the 'loop' template -->
<xsl:call-template name="loop">
<xsl:with-param name="cnt" select="MaxCount" />
</xsl:call-template>
</ns0:Root>
</xsl:template>
Результат будет по желанию.
FilesMatch should only match filenames. You can place the .htaccess
file inside the skins
directory and it should look something like this:
<FilesMatch "\.(jpg|png|gif)">
ExpiresDefault A2592000
</FilesMatch>
Alternatively, in httpd.conf
, you could use:
<Directory path_to_the_skins_dir>
<FilesMatch "\.(jpg|png|gif)">
ExpiresDefault A2592000
</FilesMatch>
</Directory>
Good luck.