http://wbex.ru/index.php?title=XML/XSLT_stylesheet/number_function&feed=atom&action=history
XML/XSLT stylesheet/number function - История изменений
2024-03-29T02:08:13Z
История изменений этой страницы в вики
MediaWiki 1.30.0
http://wbex.ru/index.php?title=XML/XSLT_stylesheet/number_function&diff=10431&oldid=prev
Admin: 1 версия
2010-05-26T08:26:21Z
<p>1 версия</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style="vertical-align: top;" lang="ru">
<td colspan="1" style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan="1" style="background-color: white; color:black; text-align: center;">Версия 08:26, 26 мая 2010</td>
</tr><tr><td colspan="2" style="text-align: center;" lang="ru"><div class="mw-diff-empty">(нет различий)</div>
</td></tr></table>
Admin
http://wbex.ru/index.php?title=XML/XSLT_stylesheet/number_function&diff=10430&oldid=prev
в 18:22, 25 мая 2010
2010-05-25T18:22:29Z
<p></p>
<p><b>Новая страница</b></p><div>==Convert char and boolean to number==<br />
<br />
<br />
<br />
<br />
<!-- start source code --><br />
<br />
<source lang="xml"><br />
<br />
File: Data.xml<br />
<br />
File: Transform.xslt<br />
<?xml version="1.0"?><br />
<xsl:stylesheet version="2.0"<br />
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br />
xmlns:xs="http://www.w3.org/2001/XMLSchema"><br />
<xsl:output method="text"/><br />
<xsl:template match="/"><br />
<xsl:text>Tests of addition in XPath 2.0&#xA;</xsl:text><br />
<xsl:text>&#xA; 9 + 3 = </xsl:text><br />
<xsl:value-of select="9 + 3"/><br />
<xsl:text>&#xA; 9 + 3.8 = </xsl:text><br />
<xsl:value-of select="9 + 3.8"/><br />
<xsl:text>&#xA; 9 + number("4") = </xsl:text><br />
<xsl:value-of select="9 + "4"" version="1.0"/><br />
<xsl:text>&#xA; 9 + number("Q") = </xsl:text><br />
<xsl:value-of select="9 + number("Q")"/><br />
<xsl:text>&#xA; 9 + number(true()) = </xsl:text><br />
<xsl:value-of select="9 + number(true())"/><br />
<xsl:text>&#xA; 9 + number(false()) = </xsl:text><br />
<xsl:value-of select="9 + number(false())"/><br />
</xsl:template><br />
</xsl:stylesheet><br />
<br />
Output:<br />
Tests of addition in XPath 2.0<br />
9 + 3 = 12<br />
9 + 3.8 = 12.8<br />
9 + number("4") = 13<br />
9 + number("Q") = NaN<br />
9 + number(true()) = 10<br />
9 + number(false()) = 9<br />
</source></div>