Update of /cvsroot/mvp-xml/EXSLT/v1/src/Exslt/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29285/v1/src/Exslt/doc Added Files: Functions.htm Functions.xml Functions.xslt GDNDatesAndTimes-avg.xml GDNDatesAndTimes-day-abbreviation.xml GDNDatesAndTimes-day-name.xml GDNDatesAndTimes-max.xml GDNDatesAndTimes-min.xml GDNDatesAndTimes-month-abbreviation.xml GDNDatesAndTimes-month-name.xml GDNDynamic-evaluate.xml GDNFunctions.xsl GDNMath-avg.xml GDNRegularExpressions-tokenize.xml GDNSets-subset.xml GDNStrings-lowercase.xml GDNStrings-uppercase.xml buildFuncList.cmd Log Message: --- NEW FILE: GDNDatesAndTimes-month-abbreviation.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="month-abbreviation" namespace="http://gotdotnet.com/exslt/dates-and-times" prefix="date2"> <syntax> <return>string</return> <params> <param optional="yes">string</param> <param>string</param> </params> </syntax> <description> <p>The <tt>date2:month-abbreviation</tt> function is I18N extension of the <a href="http://exslt.org/date/functions/month-abbreviation/index.html"><tt>date:month-abbreviation</tt></a> function.<br/> Second non-optional argument is valid according to RFC 1766 culture name (supported by <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationCultureInfoClassTopic.asp">System.Globalization.CultureInfo</a> class of .NET framework) in "<languagecode2>-<country/regioncode2>" format, e.g. "en-US" or "he-IL". </p> </description> <sample> <source><![CDATA[ <root> <date>2004-09-01</date> </root>]]></source> <stylesheet><![CDATA[ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date2="http://gotdotnet.com/exslt/dates-and-times" exclude-result-prefixes="date2"> <xsl:template match="root"> Month name abbreviation in Turkish: <xsl:value-of select="date2:month-abbreviation(date, 'tr-TR')"/> </xsl:template> </xsl:stylesheet>]]></stylesheet> <result>Month name abbreviation in Turkish: Eyl</result> </sample> </function> --- NEW FILE: Functions.xml --- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="Functions.xslt"?> <modules version="1.2"> <module namespace="http://exslt.org/dates-and-times" prefix="date" name="Dates and Times" homepage="http://exslt.org/date/index.html" is-exslt-module="yes"> <function name="format-date" alias="formatDate" descriptionURL="http://exslt.org/date/functions/format-date/index.html" supported="yes"/> <function name="parse-date" alias="parseDate" descriptionURL="http://exslt.org/date/functions/parse-date/index.html" supported="yes"/> <function name="date-time" alias="dateTime" descriptionURL="http://exslt.org/date/functions/date-time/index.html" supported="yes"/> <function name="date" descriptionURL="http://exslt.org/date/functions/date/index.html" supported="yes"/> <function name="time" descriptionURL="http://exslt.org/date/functions/time/index.html" supported="yes"/> <function name="year" descriptionURL="http://exslt.org/date/functions/year/index.html" supported="yes"/> <function name="leap-year" alias="leapYear" descriptionURL="http://exslt.org/date/functions/leap-year/index.html" supported="yes"/> <function name="month-in-year" alias="monthInYear" descriptionURL="http://exslt.org/date/functions/month-in-year/index.html" supported="yes"/> <function name="month-name" alias="monthName" descriptionURL="http://exslt.org/date/functions/month-name/index.html" supported="yes"/> <function name="month-abbreviation" alias="monthAbbreviation" descriptionURL="http://exslt.org/date/functions/month-abbreviation/index.html" supported="yes"/> <function name="week-in-year" alias="weekInYear" descriptionURL="http://exslt.org/date/functions/week-in-year/index.html" supported="yes"/> <function name="week-in-month" alias="weekInMonth" descriptionURL="http://exslt.org/date/functions/week-in-month/index.html" supported="yes"/> <function name="day-in-year" alias="dayInYear" descriptionURL="http://exslt.org/date/functions/day-in-year/index.html" supported="yes"/> <function name="day-in-month" alias="dayInMonth" descriptionURL="http://exslt.org/date/functions/day-in-month/index.html" supported="yes"/> <function name="day-of-week-in-month" alias="dayOfWeekInMonth" descriptionURL="http://exslt.org/date/functions/day-of-week-in-month/index.html" supported="yes"/> <function name="day-in-week" alias="dayInWeek" descriptionURL="http://exslt.org/date/functions/day-in-week/index.html" supported="yes"/> <function name="day-name" alias="dayName" descriptionURL="http://exslt.org/date/functions/day-name/index.html" supported="yes"/> <function name="day-abbreviation" alias="dayAbbreviation" descriptionURL="http://exslt.org/date/functions/day-abbreviation/index.html" supported="yes"/> <function name="hour-in-day" alias="hourInDay" descriptionURL="http://exslt.org/date/functions/hour-in-day/index.html" supported="yes"/> <function name="minute-in-hour" alias="minuteInHour" descriptionURL="http://exslt.org/date/functions/minute-in-hour/index.html" supported="yes"/> <function name="second-in-minute" alias="secondInMinute" descriptionURL="http://exslt.org/date/functions/second-in-minute/index.html" supported="yes"/> <function name="difference" descriptionURL="http://exslt.org/date/functions/difference/index.html" supported="yes"/> <function name="add" descriptionURL="http://exslt.org/date/functions/add/index.html" supported="yes"/> <function name="add-duration" alias="addDuration" descriptionURL="http://exslt.org/date/functions/add-duration/index.html" supported="yes"/> <function name="sum" descriptionURL="http://exslt.org/date/functions/sum/index.html" supported="yes"/> <function name="seconds" descriptionURL="http://exslt.org/date/functions/seconds/index.html" supported="yes"/> <function name="duration" descriptionURL="http://exslt.org/date/functions/duration/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/common" prefix="exsl" name="Common" homepage="http://exslt.org/exsl/index.html" is-exslt-module="yes"> <function name="node-set" alias="nodeSet" descriptionURL="http://exslt.org/exsl/functions/node-set/index.html" supported="yes"/> <function name="object-type" alias="objectType" descriptionURL="http://exslt.org/exsl/functions/object-type/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/math" prefix="math" name="Math" homepage="http://exslt.org/math/index.html" is-exslt-module="yes"> <function name="min" descriptionURL="http://exslt.org/math/functions/min/index.html" supported="yes"/> <function name="max" descriptionURL="http://exslt.org/math/functions/max/index.html" supported="yes"/> <function name="highest" descriptionURL="http://exslt.org/math/functions/highest/index.html" supported="yes"/> <function name="lowest" descriptionURL="http://exslt.org/math/functions/lowest/index.html" supported="yes"/> <function name="abs" descriptionURL="http://exslt.org/math/functions/abs/index.html" supported="yes"/> <function name="sqrt" descriptionURL="http://exslt.org/math/functions/sqrt/index.html" supported="yes"/> <function name="power" descriptionURL="http://exslt.org/math/functions/power/index.html" supported="yes"/> <function name="constant" descriptionURL="http://exslt.org/math/functions/constant/index.html" supported="yes"/> <function name="log" descriptionURL="http://exslt.org/math/functions/log/index.html" supported="yes"/> <function name="random" descriptionURL="http://exslt.org/math/functions/random/index.html" supported="yes"/> <function name="sin" descriptionURL="http://exslt.org/math/functions/sin/index.html" supported="yes"/> <function name="cos" descriptionURL="http://exslt.org/math/functions/cos/index.html" supported="yes"/> <function name="tan" descriptionURL="http://exslt.org/math/functions/tan/index.html" supported="yes"/> <function name="asin" descriptionURL="http://exslt.org/math/functions/asin/index.html" supported="yes"/> <function name="acos" descriptionURL="http://exslt.org/math/functions/acos/index.html" supported="yes"/> <function name="atan" descriptionURL="http://exslt.org/math/functions/atan/index.html" supported="yes"/> <function name="atan2" descriptionURL="http://exslt.org/math/functions/atan2/index.html" supported="yes"/> <function name="exp" descriptionURL="http://exslt.org/math/functions/exp/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/random" prefix="random" name="Random" homepage="http://exslt.org/random/index.html" is-exslt-module="yes"> <function name="random-sequence" alias="randomSequence" descriptionURL="http://exslt.org/random/functions/random-sequence/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/regular-expressions" prefix="regexp" name="Regular Expressions" homepage="http://exslt.org/regexp/index.html" is-exslt-module="yes"> <function name="test" descriptionURL="http://exslt.org/regexp/functions/test/index.html" supported="yes"/> <function name="match" descriptionURL="http://exslt.org/regexp/functions/match/index.html" supported="yes"/> <function name="replace" descriptionURL="http://exslt.org/regexp/functions/replace/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/sets" prefix="set" name="Sets" homepage="http://exslt.org/set/index.html" is-exslt-module="yes"> <function name="difference" descriptionURL="http://exslt.org/set/functions/difference/index.html" supported="yes"/> <function name="intersection" descriptionURL="http://exslt.org/set/functions/intersection/index.html" supported="yes"/> <function name="distinct" descriptionURL="http://exslt.org/set/functions/distinct/index.html" supported="yes"/> <function name="has-same-node" descriptionURL="http://exslt.org/set/functions/has-same-node/index.html" supported="yes"/> <function name="leading" descriptionURL="http://exslt.org/set/functions/leading/index.html" supported="yes"/> <function name="trailing" descriptionURL="http://exslt.org/set/functions/trailing/index.html" supported="yes"/> </module> <module namespace="http://exslt.org/strings" prefix="str" name="Strings" homepage="http://exslt.org/str/index.html" is-exslt-module="yes"> <function name="tokenize" descriptionURL="http://exslt.org/str/functions/tokenize/index.html" supported="yes"/> <function name="replace" descriptionURL="http://exslt.org/str/functions/replace/index.html" supported="yes"/> <function name="padding" descriptionURL="http://exslt.org/str/functions/padding/index.html" supported="yes"/> <function name="align" descriptionURL="http://exslt.org/str/functions/align/index.html" supported="yes"/> <function name="encode-uri" descriptionURL="http://exslt.org/str/functions/encode-uri/index.html" supported="yes"/> <function name="decode-uri" descriptionURL="http://exslt.org/str/functions/decode-uri/index.html" supported="yes"/> <function name="concat" descriptionURL="http://exslt.org/str/functions/concat/index.html" supported="yes"/> <function name="split" descriptionURL="http://exslt.org/str/functions/split/index.html" supported="yes"/> </module> <!-- Additional EXSLT.NET functions --> <module namespace="http://gotdotnet.com/exslt/dates-and-times" prefix="date2" name="GotDotNet Dates and Times" is-exslt-module="no"> <function name="avg" descriptionURL="GDNDatesAndTimes-avg.xml" supported="yes"/> <function name="min" descriptionURL="GDNDatesAndTimes-min.xml" supported="yes"/> <function name="max" descriptionURL="GDNDatesAndTimes-max.xml" supported="yes"/> <function name="day-name" alias="dayName" descriptionURL="GDNDatesAndTimes-day-name.xml" supported="yes"/> <function name="day-abbreviation" alias="dayAbbreviation" descriptionURL="GDNDatesAndTimes-day-abbreviation.xml" supported="yes"/> <function name="month-name" alias="monthName" descriptionURL="GDNDatesAndTimes-month-name.xml" supported="yes"/> <function name="month-abbreviation" alias="monthAbbreviation" descriptionURL="GDNDatesAndTimes-month-abbreviation.xml" supported="yes"/> </module> <module namespace="http://gotdotnet.com/exslt/math" prefix="math2" name="GotDotNet Math" is-exslt-module="no"> <function name="avg" descriptionURL="GDNMath-avg.xml" supported="yes"/> </module> <module namespace="http://gotdotnet.com/exslt/regular-expressions" prefix="regexp2" name="GotDotNet Regular Expressions" is-exslt-module="no"> <function name="tokenize" descriptionURL="GDNRegularExpressions-tokenize.xml" supported="yes"/> </module> <module namespace="http://gotdotnet.com/exslt/sets" prefix="set2" name="GotDotNet Sets" is-exslt-module="no"> <function name="subset" descriptionURL="GDNSets-subset.xml" supported="yes"/> </module> <module namespace="http://gotdotnet.com/exslt/strings" prefix="str2" name="GotDotNet Strings" is-exslt-module="no"> <function name="uppercase" descriptionURL="GDNStrings-uppercase.xml" supported="yes"/> <function name="lowercase" descriptionURL="GDNStrings-lowercase.xml" supported="yes"/> </module> <module namespace="http://gotdotnet.com/exslt/dynamic" prefix="dyn2" name="GotDotNet Dynamic" is-exslt-module="no"> <function name="evaluate" descriptionURL="GDNDynamic-evaluate.xml" supported="yes"/> </module> </modules> --- NEW FILE: GDNDatesAndTimes-min.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="min" namespace="http://gotdotnet.com/exslt/dates-and-times" prefix="date2"> <syntax> <return>string</return> <params> <param>node-set</param> </params> </syntax> <description> <p>The <tt>date2:avg</tt> function returns minimum duration.<br/> String values of nodes in the argument nodeset must be in the format defined for xs:duration in [<a href="http://www.w3.org/TR/xmlschema-2/#duration">3.2.6 duration</a>] of [<a href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2: Datatypes</a>].</p> <p>If the argument is empty nodeset or string value of any node in the nodeset is not in correct format, empty string is returned.</p> <p>The return value is a string in the format defined for xs:duration in [<a href="http://www.w3.org/TR/xmlschema-2/#duration">3.2.6 duration</a>] of [<a href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2: Datatypes</a>].</p> </description> <sample> <source><![CDATA[ <root> <timespan>P1M</timespan> <timespan>P3M</timespan> </root>]]></source> <stylesheet><![CDATA[ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date2="http://gotdotnet.com/exslt/dates-and-times"> <xsl:template match="/"> Minimum time interval is <xsl:value-of select="date2:min(root/timespan)"/>. </xsl:template> </xsl:stylesheet>]]></stylesheet> <result>Minimum time interval is P30D.</result> </sample> </function> --- NEW FILE: GDNDynamic-evaluate.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="evaluate" namespace="http://gotdotnet.com/exslt/dynamic" prefix="dyn2"> <syntax> <return>object</return> <params> <param>node-set</param> <param>string</param> <param optional="yes">string</param> </params> </syntax> <description> <p>The <tt>dyn2:evaluate</tt> function evaluates a string as an XPath expression and returns the resulting value, which might be a boolean, number, string, node set, result tree fragment or external object.</p> <p>First node-set argument provides a context node (the first node in the passed node-set), such that selection paths are evaluated relative to it. Second string argument is the XPath expression to be evaluated. Third optional string argument provides namespace bindings to be used to resolve namespace prefixes in the XPath expression. Namespaces are defined in the XML style, as a space separated list of namespace declaration attributes.</p> <p>All namespace prefixes that are in scope for the context node (or its parent node if the context node isn't element node) can be referenced in the evaluated XPath expression. Note though that relying on namespace prefixes defined in the source XML is very unreliable. We encourage users to define namespace bindings explicitly in the third argument instead.</p> <p>If the node-set passed as first argument is empty (no context node) or the expression string passed as the second argument is an invalid XPath expression (including an empty string), this function returns an empty string. Malformed namespace declarations in the third argument are ignored.</p> <p>Note that this function is more limited than EXSLT's <a href="http://exslt.org/dyn/functions/evaluate/index.html">dyn:evaluate()</a> function. More formally: <ul> <li>No context position and context size information is available.</li> <li>No variable bindings - this function is unable to evaluate XPath expressions, which contain variable references!</li> <li>No custom extension functions - only core XPath functions and all extension functions, supported by EXSLT.NET are available.</li> <li>No current node, so the expression cannot contain the <tt>current()</tt> function calls.</li> <li>No key definition information available, so the expression cannot contain the <tt>key()</tt> function calls.</li> <li>No custom decimal format definitions are avilable, so the expression cannot contain the <tt>fomat-number()</tt> function calls that refer to a <tt><xsl:decimal-format></tt> definition.</li> </ul> </p> <p> You should only use this function if the expression must be constructed dynamically - otherwise it is much more efficient to use the expression literally. For expressions that simply give an element or attribute's name (to select a child element or attribute), it is more efficient to use an expression in the style:<br/> <code>*[name() = $expression]</code> </p> </description> <sample> <source><![CDATA[<data xmlns:o="http://orders.com"> <orders> <order id="o234">T-Shirt</order> <order id="o12">Polo Shirt</order> <order id="o332">Shoes</order> </orders> <orders xmlns="http://orders.com"> <order id="o11">Foo</order> <order id="o22">Bar</order> <order id="o44">Baz</order> </orders> <path>/data/orders/order[@id='o12']</path> <path2>orders/order[@id='o12']</path2> <path7>foo:orders/foo:order[@id='o11']</path7> </data>]]></source> <stylesheet><![CDATA[<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn2="http://gotdotnet.com/exslt/dynamic" exclude-result-prefixes="dyn2"> <xsl:output indent="yes" omit-xml-declaration="yes"/> <xsl:template match="data"> <out> <test1> <xsl:value-of select="dyn2:evaluate(., concat('2', '+', '2'))"/> </test1> <test2> <xsl:copy-of select="dyn2:evaluate(., /data/path)"/> </test2> <test3> <xsl:value-of select="dyn2:evaluate(., /data/path)/@id"/> </test3> <test4> <xsl:copy-of select="dyn2:evaluate(., /data/path2)"/> </test4> <test5> <xsl:copy-of select="dyn2:evaluate(., 'o:orders/o:order')"/> </test5> <test6> <xsl:variable name="namespaces">xmlns:foo="http://orders.com" xmlns:bar='http://bar.com/'</xsl:variable> <xsl:copy-of select="dyn2:evaluate(., /data/path7, $namespaces)"/> </test6> </out> </xsl:template> </xsl:stylesheet>]]></stylesheet> <result><![CDATA[<out> <test1>4</test1> <test2> <order id="o12" xmlns:o="http://orders.com">Polo Shirt</order> </test2> <test3>o12</test3> <test4> <order id="o12" xmlns:o="http://orders.com">Polo Shirt</order> </test4> <test5> <order id="o11" xmlns:o="http://orders.com" xmlns="http://orders.com">Foo</order> <order id="o22" xmlns:o="http://orders.com" xmlns="http://orders.com">Bar</order> <order id="o44" xmlns:o="http://orders.com" xmlns="http://orders.com">Baz</order> </test5> <test6> <order id="o11" xmlns:o="http://orders.com" xmlns="http://orders.com">Foo</order> </test6> </out>]]></result> </sample> </function> --- NEW FILE: GDNStrings-uppercase.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="uppercase" namespace="http://gotdotnet.com/exslt/strings" prefix="str2"> <syntax> <return>string</return> <params> <param>string</param> </params> </syntax> <description> <p>This function returns a copy of argument string in uppercase, using the casing rules of the current culture.</p> </description> <sample> <source><![CDATA[<input>The Quick Brown Fox Jumps Over a Lazy Dog.</input>]]></source> <stylesheet><![CDATA[<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str2="http://gotdotnet.com/exslt/strings" extension-element-prefixes="str2"> <xsl:template match="/"> <out><xsl:value-of select="str2:uppercase(input)"/></out> </xsl:template> </xsl:stylesheet>]]></stylesheet> <result><![CDATA[<out>THE QUICK BROWN FOX JUMPS OVER A LAZY DOG.</out>]]></result> </sample> </function> --- NEW FILE: GDNStrings-lowercase.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="lowercase" namespace="http://gotdotnet.com/exslt/strings" prefix="str2"> <syntax> <return>string</return> <params> <param>string</param> </params> </syntax> <description> <p>This function returns a copy of argument string in lowercase, using the casing rules of the current culture.</p> </description> <sample> <source><![CDATA[<input>The Quick Brown Fox Jumps Over a Lazy Dog.</input>]]></source> <stylesheet><![CDATA[<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str2="http://gotdotnet.com/exslt/strings" extension-element-prefixes="str2"> <xsl:template match="/"> <out><xsl:value-of select="str2:lowercase(input)"/></out> </xsl:template> </xsl:stylesheet>]]></stylesheet> <result><![CDATA[<out>the quick brown fox jumps over a lazy dog.</out>]]></result> </sample> </function> --- NEW FILE: GDNDatesAndTimes-max.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="max" namespace="http://gotdotnet.com/exslt/dates-and-times" prefix="date2"> <syntax> <return>string</return> <params> <param>node-set</param> </params> </syntax> <description> <p>The <tt>date2:avg</tt> function returns maximum duration.<br/> String values of nodes in the argument nodeset must be in the format defined for xs:duration in [<a href="http://www.w3.org/TR/xmlschema-2/#duration">3.2.6 duration</a>] of [<a href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2: Datatypes</a>].</p> <p>If the argument is empty nodeset or string value of any node in the nodeset is not in correct format, empty string is returned.</p> <p>The return value is a string in the format defined for xs:duration in [<a href="http://www.w3.org/TR/xmlschema-2/#duration">3.2.6 duration</a>] of [<a href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2: Datatypes</a>].</p> </description> <sample> <source><![CDATA[ <root> <timespan>P1M</timespan> <timespan>P3M</timespan> </root>]]></source> <stylesheet><![CDATA[ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date2="http://gotdotnet.com/exslt/dates-and-times"> <xsl:template match="/"> Maximum time interval is <xsl:value-of select="date2:max(root/timespan)"/>. </xsl:template> </xsl:stylesheet>]]></stylesheet> <result>Maximum time interval is P90D.</result> </sample> </function> --- NEW FILE: GDNDatesAndTimes-month-name.xml --- <?xml-stylesheet type="text/xsl" href="GDNFunctions.xsl"?> <function name="month-name" namespace="http://gotdotnet.com/exslt/dates-and-times" prefix="date2"> <syntax> <return>string</return> <params> <param optional="yes">string</param> <param>string</param> </params> </syntax> <description> <p>The <tt>date2:month-name</tt> function is I18N extension of the <a href="http://exslt.org/date/functions/month-name/index.html"><tt>date:month-name</tt></a> function.<br/> Second non-optional argument is valid according to RFC 1766 culture name (supported by <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationCultureInfoClassTopic.asp">System.Globalization.CultureInfo</a> class of .NET framework) in "<languagecode2>-<country/regioncode2>" format, e.g. "en-US" or "he-IL". </p> </description> <sample> <source><![CDATA[ <root> <date>2004-09-01</date> </root>]]></source> <stylesheet><![CDATA[ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date2="http://gotdotnet.com/exslt/dates-and-times" exclude-result-prefixes="date2"> <xsl:template match="root"> Month name in Italian: <xsl:value-of select="date2:month-name(date, 'it-IT')"/> </xsl:template> </xsl:stylesheet>]]></stylesheet> <result>Month name in Italian: settembre</result> </sample> </function> --- NEW FILE: Functions.xslt --- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/documentation" exclude-result-prefixes="exslt"> <xsl:output indent="yes" encoding="ISO8859-1"/> <!-- <xsl:template match="modules"> <modules> <xsl:for-each select="module"> <module namespace="{@namespace}"> <xsl:variable name="doc" select="document(@url)/*"/> <xsl:variable name="prefix" select="$doc/@prefix"/> <xsl:attribute name="prefix"><xsl:value-of select="$doc/@prefix"/></xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="$doc/exslt:name"/></xsl:attribute> <xsl:attribute name="homepage"><xsl:value-of select="concat('http://exslt.org/', $prefix, '/index.html')"/></xsl:attribute> <xsl:for-each select="$doc/exslt:functions/exslt:function"> <function name="{@name}" descriptionURL="{concat('http://exslt.org/', $prefix, '/functions/', @name, '/index.html')}" supported="yes"/> </xsl:for-each> </module> </xsl:for-each> </modules> </xsl:template> --> <xsl:template match="/"> <html> <head> <title>EXSLTNET <xsl:value-of select="modules/@version"/> Function List</title> <style type="text/css"> body { font-family: Verdana, Arial, helvetica;} .module-table { width: 100%; } </style> </head> <body> <h2>EXSLT.NET <xsl:value-of select="modules/@version"/> Function List</h2> <hr/> <div>EXSLT Modules:</div> <ol> <xsl:apply-templates select="modules/module[@is-exslt-module='yes']" mode="toc"/> </ol> <div>Additional modules:</div> <ol> <xsl:apply-templates select="modules/module[@is-exslt-module='no']" mode="toc"/> </ol> <hr/> <xsl:apply-templates select="modules/module"/> </body> </html> </xsl:template> <xsl:template match="module" mode="toc"> <li> <a href="#{@name}"><xsl:value-of select="@name"/></a> </li> </xsl:template> <xsl:template match="module"> <p> <a name="{@name}"> <div class="module-name"><b>Module:</b> <xsl:value-of select="@name"/></div></a> <div class="module-ns"><b>Namespace:</b> <xsl:value-of select="@namespace"/></div> <xsl:if test="@homepage"> <div class="module-homepage"><b>Homepage:</b> <a href="{@homepage}"><xsl:value-of select="@homepage"/></a></div> </xsl:if> <xsl:if test="@is-exslt-module='no'"> <div class="note"><b>Note:</b> These function... [truncated message content] |