summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-01-26 20:57:40 -0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-01-27 00:01:53 +0100
commit5be1429f1ad6ac472836097516ab3cd0681ecf38 (patch)
tree6267adbb182d5a9086fd46634e0028afe040c91b
parent854f87b82b23d5409b4a3f6cea8628324fb238cc (diff)
tdf#92430 Better example for =WEBSERVICE()
And =FILTERXML() Change-Id: I15c260d625ea54b61cbb0de025f8e0c0c9fe623c Reviewed-on: https://gerrit.libreoffice.org/48727 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/scalc/01/func_webservice.xhp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/text/scalc/01/func_webservice.xhp b/source/text/scalc/01/func_webservice.xhp
index dec173775e..5f3cc5d67d 100644
--- a/source/text/scalc/01/func_webservice.xhp
+++ b/source/text/scalc/01/func_webservice.xhp
@@ -25,8 +25,8 @@
<paragraph role="code" id="par_id3154844" xml-lang="en-US">WEBSERVICE(URI)</paragraph>
<paragraph role="paragraph" id="par_id3147469" xml-lang="en-US"><emph>URI: </emph> URI text of the web service.</paragraph>
<paragraph role="heading" id="hd_id3150141" xml-lang="en-US" level="3">Example</paragraph>
- <paragraph role="paragraph" id="par_id3146142" xml-lang="en-US">=WEBSERVICE("http://api.openweathermap.org/data/2.5/forecast?q=Copenhagen,dk&amp;mode=xml&amp;units=metric") </paragraph>
- <paragraph role="paragraph" id="par_id3146143" xml-lang="en-US">Returns the web page content of "http://api.openweathermap.org/data/2.5/forecast?q=Copenhagen,dk&amp;mode=xml&amp;units=metric"</paragraph>
+ <paragraph role="paragraph" id="par_id3146142" xml-lang="en-US"><item type="input">=WEBSERVICE("wiki.documentfoundation.org/api.php?hidebots=1&amp;days=7&amp;limit=50&amp;action=feedrecentchanges&amp;feedformat=rss")</item></paragraph>
+ <paragraph role="paragraph" id="par_id3146143" xml-lang="en-US">Returns the web page content of "http://wiki.documentfoundation.org/api.php?hidebots=1&amp;days=7&amp;limit=50&amp;action=feedrecentchanges&amp;feedformat=rss".</paragraph>
</section>
<section id="filterxml">
<bookmark xml-lang="en-US" branch="index" id="bm_id2949012">
@@ -40,8 +40,8 @@
<paragraph role="paragraph" id="par_id2947469" xml-lang="en-US"><emph>XML Document (required):</emph> String containing a valid XML stream.</paragraph>
<paragraph role="paragraph" id="par_id2847469" xml-lang="en-US"><emph>XPath expression (required):</emph> String containing a valid XPath expression.</paragraph>
<paragraph role="heading" id="hd_id2950141" xml-lang="en-US" level="3">Example</paragraph>
- <paragraph role="paragraph" id="par_id2946142" xml-lang="en-US">=FILTERXML(WEBSERVICE("http://api.openweathermap.org/data/2.5/forecast?q=Copenhagen,dk&amp;mode=xml&amp;units=metric");"number(/weatherdata/forecast/time[2]/temperature/@value)")</paragraph>
- <paragraph role="paragraph" id="par_id2946143" xml-lang="en-US"> Returns information on Copenhagen weather temperature.</paragraph>
+ <paragraph role="paragraph" id="par_id2946142" xml-lang="en-US"><item type="input">=FILTERXML(WEBSERVICE("wiki.documentfoundation.org/api.php?hidebots=1&amp;days=7&amp;limit=50&amp;action=feedrecentchanges&amp;feedformat=rss");"//lastBuildDate")</item></paragraph>
+ <paragraph role="paragraph" id="par_id2946143" xml-lang="en-US"> Returns information on the last build date of the wiki.</paragraph>
</section>
</body>
-</helpdocument> \ No newline at end of file
+</helpdocument>