From 24a93522ef46152c817b7e2932bbc4968b92ea42 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 29 Jan 2025 17:56:12 +0100 Subject: [PATCH 01/11] chore(ia): reorg /web/xpath --- files/en-us/_redirects.txt | 530 ++++++++++-------- files/en-us/_wikihistory.json | 164 +++--- .../page_types/page_type_key/index.md | 2 +- .../mozilla/firefox/releases/3.6/index.md | 2 +- .../releases/3.6/updating_extensions/index.md | 2 +- .../api/document/creatensresolver/index.md | 2 +- .../en-us/web/api/document/evaluate/index.md | 2 +- .../comparison_with_css_selectors/index.md | 18 - files/en-us/web/xpath/functions/index.md | 47 -- .../comparison_with_css_selectors/index.md | 19 + files/en-us/web/xpath/guides/index.md | 17 + .../index.md | 9 +- .../web/xpath/{ => guides}/snippets/index.md | 4 +- files/en-us/web/xpath/index.md | 32 +- .../web/xpath/{ => reference}/axes/index.md | 2 +- .../functions/boolean/index.md | 2 +- .../functions/ceiling/index.md | 2 +- .../{ => reference}/functions/choose/index.md | 2 +- .../{ => reference}/functions/concat/index.md | 2 +- .../functions/contains/index.md | 2 +- .../{ => reference}/functions/count/index.md | 2 +- .../functions/current/index.md | 2 +- .../functions/document/index.md | 2 +- .../functions/element-available/index.md | 2 +- .../{ => reference}/functions/false/index.md | 2 +- .../{ => reference}/functions/floor/index.md | 2 +- .../functions/format-number/index.md | 2 +- .../functions/function-available/index.md | 2 +- .../functions/generate-id/index.md | 2 +- .../{ => reference}/functions/id/index.md | 2 +- .../web/xpath/reference/functions/index.md | 16 + .../{ => reference}/functions/key/index.md | 2 +- .../{ => reference}/functions/lang/index.md | 2 +- .../{ => reference}/functions/last/index.md | 4 +- .../functions/local-name/index.md | 2 +- .../{ => reference}/functions/name/index.md | 2 +- .../functions/namespace-uri/index.md | 2 +- .../functions/normalize-space/index.md | 2 +- .../{ => reference}/functions/not/index.md | 6 +- .../{ => reference}/functions/number/index.md | 4 +- .../functions/position/index.md | 2 +- .../{ => reference}/functions/round/index.md | 2 +- .../functions/starts-with/index.md | 2 +- .../functions/string-length/index.md | 2 +- .../{ => reference}/functions/string/index.md | 2 +- .../functions/substring-after/index.md | 2 +- .../functions/substring-before/index.md | 2 +- .../functions/substring/index.md | 2 +- .../{ => reference}/functions/sum/index.md | 4 +- .../functions/system-property/index.md | 2 +- .../functions/translate/index.md | 2 +- .../{ => reference}/functions/true/index.md | 2 +- .../functions/unparsed-entity-url/index.md | 2 +- files/en-us/web/xpath/reference/index.md | 16 + files/en-us/web/xslt/element/number/index.md | 6 +- .../xslt/transforming_xml_with_xslt/index.md | 106 ++-- files/sidebars/xsltsidebar.yaml | 18 +- front-matter-config.json | 2 +- 58 files changed, 576 insertions(+), 524 deletions(-) delete mode 100644 files/en-us/web/xpath/comparison_with_css_selectors/index.md delete mode 100644 files/en-us/web/xpath/functions/index.md create mode 100644 files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md create mode 100644 files/en-us/web/xpath/guides/index.md rename files/en-us/web/xpath/{ => guides}/introduction_to_using_xpath_in_javascript/index.md (96%) rename files/en-us/web/xpath/{ => guides}/snippets/index.md (98%) rename files/en-us/web/xpath/{ => reference}/axes/index.md (98%) rename files/en-us/web/xpath/{ => reference}/functions/boolean/index.md (95%) rename files/en-us/web/xpath/{ => reference}/functions/ceiling/index.md (92%) rename files/en-us/web/xpath/{ => reference}/functions/choose/index.md (95%) rename files/en-us/web/xpath/{ => reference}/functions/concat/index.md (93%) rename files/en-us/web/xpath/{ => reference}/functions/contains/index.md (93%) rename files/en-us/web/xpath/{ => reference}/functions/count/index.md (91%) rename files/en-us/web/xpath/{ => reference}/functions/current/index.md (97%) rename files/en-us/web/xpath/{ => reference}/functions/document/index.md (97%) rename files/en-us/web/xpath/{ => reference}/functions/element-available/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/false/index.md (91%) rename files/en-us/web/xpath/{ => reference}/functions/floor/index.md (92%) rename files/en-us/web/xpath/{ => reference}/functions/format-number/index.md (95%) rename files/en-us/web/xpath/{ => reference}/functions/function-available/index.md (89%) rename files/en-us/web/xpath/{ => reference}/functions/generate-id/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/id/index.md (96%) create mode 100644 files/en-us/web/xpath/reference/functions/index.md rename files/en-us/web/xpath/{ => reference}/functions/key/index.md (95%) rename files/en-us/web/xpath/{ => reference}/functions/lang/index.md (97%) rename files/en-us/web/xpath/{ => reference}/functions/last/index.md (78%) rename files/en-us/web/xpath/{ => reference}/functions/local-name/index.md (93%) rename files/en-us/web/xpath/{ => reference}/functions/name/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/namespace-uri/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/normalize-space/index.md (92%) rename files/en-us/web/xpath/{ => reference}/functions/not/index.md (80%) rename files/en-us/web/xpath/{ => reference}/functions/number/index.md (85%) rename files/en-us/web/xpath/{ => reference}/functions/position/index.md (95%) rename files/en-us/web/xpath/{ => reference}/functions/round/index.md (93%) rename files/en-us/web/xpath/{ => reference}/functions/starts-with/index.md (91%) rename files/en-us/web/xpath/{ => reference}/functions/string-length/index.md (92%) rename files/en-us/web/xpath/{ => reference}/functions/string/index.md (96%) rename files/en-us/web/xpath/{ => reference}/functions/substring-after/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/substring-before/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/substring/index.md (94%) rename files/en-us/web/xpath/{ => reference}/functions/sum/index.md (80%) rename files/en-us/web/xpath/{ => reference}/functions/system-property/index.md (96%) rename files/en-us/web/xpath/{ => reference}/functions/translate/index.md (97%) rename files/en-us/web/xpath/{ => reference}/functions/true/index.md (88%) rename files/en-us/web/xpath/{ => reference}/functions/unparsed-entity-url/index.md (92%) create mode 100644 files/en-us/web/xpath/reference/index.md diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index b4269a613c0eade..bd6e2a22012de48 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -1,7 +1,5 @@ # DO NOT EDIT THIS FILE MANUALLY. -# Use the CLI instead: -# -# yarn content add-redirect +# Use the CLI instead. # # FROM-URL TO-URL /en-US/docs/-moz-locale-dir(ltr) /en-US/docs/Web/CSS/:-moz-locale-dir_ltr @@ -4025,7 +4023,7 @@ /en-US/docs/Intro_HTML5 /en-US/docs/Learn_web_development/Core/Structuring_content /en-US/docs/Introducing_Content_Security_Policy /en-US/docs/Web/HTTP/CSP /en-US/docs/Introduction_to_Object-Oriented_JavaScript /en-US/docs/Learn_web_development/Extensions/Advanced_JavaScript_objects -/en-US/docs/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript /en-US/docs/JS/Glossary /en-US/docs/Glossary /en-US/docs/JS/this /en-US/docs/Web/JavaScript/Reference/Operators/this /en-US/docs/JS/with /en-US/docs/Web/JavaScript/Reference/Statements/with @@ -7464,20 +7462,20 @@ /en-US/docs/Transforming_XML_with_XSLT/An_Overview /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/An_Overview /en-US/docs/Transforming_XML_with_XSLT/For_Further_Reading /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/For_Further_Reading /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Axes#self +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Reference/Axes#self /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements /en-US/docs/Web/XSLT/Element /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements/xsl/apply-imports /en-US/docs/Web/XSLT/Element/apply-imports /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements/xsl/apply-templates /en-US/docs/Web/XSLT/Element/apply-templates @@ -7514,43 +7512,43 @@ /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements/xsl/variable /en-US/docs/Web/XSLT/Element/variable /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements/xsl/when /en-US/docs/Web/XSLT/Element/when /en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements/xsl/with-param /en-US/docs/Web/XSLT/Element/with-param -/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Transforming_XML_with_XSLT/Resources /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT /en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Reference/Axes /en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Elements/xsl/decimal-format /en-US/docs/Web/XSLT/Element/decimal-format /en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Elements/xsl/element /en-US/docs/Web/XSLT/Element/element -/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Transforming_XML_with_XSLT:An_Overview /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/An_Overview /en-US/docs/Transforming_XML_with_XSLT:For_Further_Reading /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/For_Further_Reading /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:self /en-US/docs/Web/XPath/Axes#self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Axes:self /en-US/docs/Web/XPath/Reference/Axes#self /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements /en-US/docs/Web/XSLT/Element /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements:xsl:apply-imports /en-US/docs/Web/XSLT/Element/apply-imports /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements:xsl:apply-templates /en-US/docs/Web/XSLT/Element/apply-templates @@ -7587,22 +7585,22 @@ /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements:xsl:variable /en-US/docs/Web/XSLT/Element/variable /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements:xsl:when /en-US/docs/Web/XSLT/Element/when /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Elements:xsl:with-param /en-US/docs/Web/XSLT/Element/with-param -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT/XPath_Reference:Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:self /en-US/docs/Web/XPath/Axes#self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Axes:self /en-US/docs/Web/XPath/Reference/Axes#self /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements /en-US/docs/Web/XSLT/Element /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements:xsl:apply-imports /en-US/docs/Web/XSLT/Element/apply-imports /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements:xsl:apply-templates /en-US/docs/Web/XSLT/Element/apply-templates @@ -7639,44 +7637,44 @@ /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements:xsl:variable /en-US/docs/Web/XSLT/Element/variable /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements:xsl:when /en-US/docs/Web/XSLT/Element/when /en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Elements:xsl:with-param /en-US/docs/Web/XSLT/Element/with-param -/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT:Mozilla_XSLT_XPath_Reference:Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Transforming_XML_with_XSLT:Resources /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:child /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:following /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:self /en-US/docs/Web/XPath/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:child /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:following /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Axes:self /en-US/docs/Web/XPath/Reference/Axes /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Elements:xsl:decimal-format /en-US/docs/Web/XSLT/Element/decimal-format /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Elements:xsl:element /en-US/docs/Web/XSLT/Element/element -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT/XPath_Reference:Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:child /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:following /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:self /en-US/docs/Web/XPath/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:ancestor /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:attribute /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:child /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:descendant /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:descendant-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:following /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:following-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:namespace /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:parent /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:preceding /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:preceding-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Axes:self /en-US/docs/Web/XPath/Reference/Axes /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Elements:xsl:decimal-format /en-US/docs/Web/XSLT/Element/decimal-format /en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Elements:xsl:element /en-US/docs/Web/XSLT/Element/element -/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Transforming_XML_with_XSLT:The_Netscape_XSLT_XPath_Reference:Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces /en-US/docs/Web/API/Document_Object_Model/Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces /en-US/docs/URI /en-US/docs/Glossary/URI /en-US/docs/URI/www and non-www URLs /en-US/docs/Web/URI/Authority/Choosing_between_www_and_non-www_URLs @@ -7731,7 +7729,7 @@ /en-US/docs/Using_Web_Standards_in_your_Web_Pages:Making_your_page_using_web_standards_-_how_to /en-US/docs/Learn_web_development/Core/Structuring_content/Debugging_HTML /en-US/docs/Using_Web_Standards_in_your_Web_Pages:Using_XMLHttpRequest /en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest /en-US/docs/Using_XMLHttpRequest /en-US/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest -/en-US/docs/Using_XPath /en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Using_XPath /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Using_an_External_Spell-checker /en-US/docs/Mozilla/Firefox/Releases/3/Using_an_external_spell_checker /en-US/docs/Using_audio_and_video_in_Firefox /en-US/docs/Learn_web_development/Core/Structuring_content/HTML_video_and_audio /en-US/docs/Using_files_from_web_applications /en-US/docs/Web/API/File_API/Using_files_from_web_applications @@ -7740,9 +7738,9 @@ /en-US/docs/Using_gradients /en-US/docs/Web/CSS/CSS_images/Using_CSS_gradients /en-US/docs/Using_native_JSON /en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON /en-US/docs/Using_the/target_selector /en-US/docs/Web/CSS/CSS_Selectors/Using_the_:target_pseudo-class_in_selectors -/en-US/docs/Using_theMozilla_JavaScript_interface_to_XPath /en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Using_theMozilla_JavaScript_interface_to_XPath /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Using_the_:target_selector /en-US/docs/Web/CSS/CSS_Selectors/Using_the_:target_pseudo-class_in_selectors -/en-US/docs/Using_the_Mozilla_JavaScript_interface_to_XPath /en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Using_the_Mozilla_JavaScript_interface_to_XPath /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations /en-US/docs/Web/API/XSLTProcessor /en-US/docs/Using_the_W3C_DOM_Level_1_Core /en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model /en-US/docs/Using_the_W3C_DOM_Level_1_Core/Example /en-US/docs/Web/API/Document_Object_Model/Using_the_Document_Object_Model @@ -11893,7 +11891,7 @@ /en-US/docs/Web/CSS/CSS_Scroll_Snap/compat /en-US/docs/Web/CSS/CSS_scroll_snap /en-US/docs/Web/CSS/CSS_Scroll_Snap_Points /en-US/docs/Web/CSS/CSS_scroll_snap /en-US/docs/Web/CSS/CSS_Scrollbars /en-US/docs/Web/CSS/CSS_scrollbars_styling -/en-US/docs/Web/CSS/CSS_Selectors/Comparison_with_XPath /en-US/docs/Web/XPath/Comparison_with_CSS_selectors +/en-US/docs/Web/CSS/CSS_Selectors/Comparison_with_XPath /en-US/docs/Web/XPath/Guides/Comparison_with_CSS_selectors /en-US/docs/Web/CSS/CSS_Shapes/Overview_of_CSS_Shapes /en-US/docs/Web/CSS/CSS_shapes/Overview_of_shapes /en-US/docs/Web/CSS/CSS_Shapes/Shapes_From_Box_Values /en-US/docs/Web/CSS/CSS_shapes/From_box_values /en-US/docs/Web/CSS/CSS_Text/Wrapping_text /en-US/docs/Web/CSS/CSS_text/Wrapping_breaking_text @@ -12887,7 +12885,7 @@ /en-US/docs/Web/JavaScript/Guide/Working_With_Private_Class_Features /en-US/docs/Web/JavaScript/Guide/Using_Classes#private_fields /en-US/docs/Web/JavaScript/Guide/iterable /en-US/docs/Web/JavaScript/Reference/Iteration_protocols /en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript /en-US/docs/Learn_web_development/Extensions/Advanced_JavaScript_objects -/en-US/docs/Web/JavaScript/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Web/JavaScript/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/JavaScript/JavaScript_templates /en-US/docs/Web/JavaScript/Reference/Template_literals /en-US/docs/Web/JavaScript/Javascript_How_To_Tutorials /en-US/docs/Web/JavaScript/Guide /en-US/docs/Web/JavaScript/Language_Resources /en-US/docs/Web/JavaScript/JavaScript_technologies_overview @@ -13491,58 +13489,100 @@ /en-US/docs/Web/Web_Components/Using_templates_and_slots /en-US/docs/Web/API/Web_components/Using_templates_and_slots /en-US/docs/Web/XML/Index /en-US/docs/Web/XML /en-US/docs/Web/XML/xml:base /en-US/docs/Web/API/Node/baseURI -/en-US/docs/Web/XPath/Axes/ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/Web/XPath/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/Web/XPath/Axes/attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/Web/XPath/Axes/child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/Web/XPath/Axes/descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/Web/XPath/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/Web/XPath/Axes/following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/Web/XPath/Axes/following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/Web/XPath/Axes/namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/Web/XPath/Axes/parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/Web/XPath/Axes/preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/Web/XPath/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/Web/XPath/Axes/self /en-US/docs/Web/XPath/Axes#self +/en-US/docs/Web/XPath/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XPath/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/Web/XPath/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/Web/XPath/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/Web/XPath/Axes/child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/Web/XPath/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/Web/XPath/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/Web/XPath/Axes/following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/Web/XPath/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/Web/XPath/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/Web/XPath/Axes/parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/Web/XPath/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/Web/XPath/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/Web/XPath/Axes/self /en-US/docs/Web/XPath/Reference/Axes#self +/en-US/docs/Web/XPath/Comparison_with_CSS_selectors /en-US/docs/Web/XPath/Guides/Comparison_with_CSS_selectors +/en-US/docs/Web/XPath/Functions /en-US/docs/Web/XPath/Reference/Functions +/en-US/docs/Web/XPath/Functions/boolean /en-US/docs/Web/XPath/Reference/Functions/boolean +/en-US/docs/Web/XPath/Functions/ceiling /en-US/docs/Web/XPath/Reference/Functions/ceiling +/en-US/docs/Web/XPath/Functions/choose /en-US/docs/Web/XPath/Reference/Functions/choose +/en-US/docs/Web/XPath/Functions/concat /en-US/docs/Web/XPath/Reference/Functions/concat +/en-US/docs/Web/XPath/Functions/contains /en-US/docs/Web/XPath/Reference/Functions/contains +/en-US/docs/Web/XPath/Functions/count /en-US/docs/Web/XPath/Reference/Functions/count +/en-US/docs/Web/XPath/Functions/current /en-US/docs/Web/XPath/Reference/Functions/current +/en-US/docs/Web/XPath/Functions/document /en-US/docs/Web/XPath/Reference/Functions/document +/en-US/docs/Web/XPath/Functions/element-available /en-US/docs/Web/XPath/Reference/Functions/element-available +/en-US/docs/Web/XPath/Functions/false /en-US/docs/Web/XPath/Reference/Functions/false +/en-US/docs/Web/XPath/Functions/floor /en-US/docs/Web/XPath/Reference/Functions/floor +/en-US/docs/Web/XPath/Functions/format-number /en-US/docs/Web/XPath/Reference/Functions/format-number +/en-US/docs/Web/XPath/Functions/function-available /en-US/docs/Web/XPath/Reference/Functions/function-available +/en-US/docs/Web/XPath/Functions/generate-id /en-US/docs/Web/XPath/Reference/Functions/generate-id +/en-US/docs/Web/XPath/Functions/id /en-US/docs/Web/XPath/Reference/Functions/id +/en-US/docs/Web/XPath/Functions/key /en-US/docs/Web/XPath/Reference/Functions/key +/en-US/docs/Web/XPath/Functions/lang /en-US/docs/Web/XPath/Reference/Functions/lang +/en-US/docs/Web/XPath/Functions/last /en-US/docs/Web/XPath/Reference/Functions/last +/en-US/docs/Web/XPath/Functions/local-name /en-US/docs/Web/XPath/Reference/Functions/local-name +/en-US/docs/Web/XPath/Functions/name /en-US/docs/Web/XPath/Reference/Functions/name +/en-US/docs/Web/XPath/Functions/namespace-uri /en-US/docs/Web/XPath/Reference/Functions/namespace-uri +/en-US/docs/Web/XPath/Functions/normalize-space /en-US/docs/Web/XPath/Reference/Functions/normalize-space +/en-US/docs/Web/XPath/Functions/not /en-US/docs/Web/XPath/Reference/Functions/not +/en-US/docs/Web/XPath/Functions/number /en-US/docs/Web/XPath/Reference/Functions/number +/en-US/docs/Web/XPath/Functions/position /en-US/docs/Web/XPath/Reference/Functions/position +/en-US/docs/Web/XPath/Functions/round /en-US/docs/Web/XPath/Reference/Functions/round +/en-US/docs/Web/XPath/Functions/starts-with /en-US/docs/Web/XPath/Reference/Functions/starts-with +/en-US/docs/Web/XPath/Functions/string /en-US/docs/Web/XPath/Reference/Functions/string +/en-US/docs/Web/XPath/Functions/string-length /en-US/docs/Web/XPath/Reference/Functions/string-length +/en-US/docs/Web/XPath/Functions/substring /en-US/docs/Web/XPath/Reference/Functions/substring +/en-US/docs/Web/XPath/Functions/substring-after /en-US/docs/Web/XPath/Reference/Functions/substring-after +/en-US/docs/Web/XPath/Functions/substring-before /en-US/docs/Web/XPath/Reference/Functions/substring-before +/en-US/docs/Web/XPath/Functions/sum /en-US/docs/Web/XPath/Reference/Functions/sum +/en-US/docs/Web/XPath/Functions/system-property /en-US/docs/Web/XPath/Reference/Functions/system-property +/en-US/docs/Web/XPath/Functions/translate /en-US/docs/Web/XPath/Reference/Functions/translate +/en-US/docs/Web/XPath/Functions/true /en-US/docs/Web/XPath/Reference/Functions/true +/en-US/docs/Web/XPath/Functions/unparsed-entity-url /en-US/docs/Web/XPath/Reference/Functions/unparsed-entity-url /en-US/docs/Web/XPath/Index /en-US/docs/Web/XPath +/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript /en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript +/en-US/docs/Web/XPath/Snippets /en-US/docs/Web/XPath/Guides/Snippets /en-US/docs/Web/XSLT/EXSLT /en-US/docs/Web/EXSLT /en-US/docs/Web/XSLT/Elements /en-US/docs/Web/XSLT/Element /en-US/docs/Web/XSLT/Elements/element /en-US/docs/Web/XSLT/Element/element /en-US/docs/Web/XSLT/Index /en-US/docs/Web/XSLT /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Axes#self +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Reference/Axes#self /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Elements /en-US/docs/Web/XSLT/Element -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Mozilla_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/Resources /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference /en-US/docs/Web/XSLT/Transforming_XML_with_XSLT -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Axes -/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Functions +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/child /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/parent /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Axes/self /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT/The_Netscape_XSLT_XPath_Reference/Functions /en-US/docs/Web/XPath/Reference/Functions /en-US/docs/Web/XSLT/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations /en-US/docs/Web/API/XSLTProcessor /en-US/docs/Web/XSLT/XSLT_JS_interface_in_Gecko /en-US/docs/Web/API/XSLTProcessor /en-US/docs/Web/XSLT/XSLT_JS_interface_in_Gecko/Advanced_Example /en-US/docs/Web/API/XSLTProcessor @@ -13707,109 +13747,109 @@ /en-US/docs/XML_introduction/xml:base /en-US/docs/Web/API/Node/baseURI /en-US/docs/XPCOM_Interface_Reference/nsIDOMStorageEvent /en-US/docs/Web/API/StorageEvent /en-US/docs/XPath /en-US/docs/Web/XPath -/en-US/docs/XPath/Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/XPath/Axes/ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/XPath/Axes/ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/XPath/Axes/attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/XPath/Axes/child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/XPath/Axes/descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/XPath/Axes/descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/XPath/Axes/following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/XPath/Axes/following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/XPath/Axes/namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/XPath/Axes/parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/XPath/Axes/preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/XPath/Axes/preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/XPath/Axes/self /en-US/docs/Web/XPath/Axes#self -/en-US/docs/XPath/Functions /en-US/docs/Web/XPath/Functions -/en-US/docs/XPath/Functions/boolean /en-US/docs/Web/XPath/Functions/boolean -/en-US/docs/XPath/Functions/ceiling /en-US/docs/Web/XPath/Functions/ceiling -/en-US/docs/XPath/Functions/choose /en-US/docs/Web/XPath/Functions/choose -/en-US/docs/XPath/Functions/concat /en-US/docs/Web/XPath/Functions/concat -/en-US/docs/XPath/Functions/contains /en-US/docs/Web/XPath/Functions/contains -/en-US/docs/XPath/Functions/count /en-US/docs/Web/XPath/Functions/count -/en-US/docs/XPath/Functions/current /en-US/docs/Web/XPath/Functions/current -/en-US/docs/XPath/Functions/document /en-US/docs/Web/XPath/Functions/document -/en-US/docs/XPath/Functions/element-available /en-US/docs/Web/XPath/Functions/element-available -/en-US/docs/XPath/Functions/false /en-US/docs/Web/XPath/Functions/false -/en-US/docs/XPath/Functions/floor /en-US/docs/Web/XPath/Functions/floor -/en-US/docs/XPath/Functions/format-number /en-US/docs/Web/XPath/Functions/format-number -/en-US/docs/XPath/Functions/function-available /en-US/docs/Web/XPath/Functions/function-available -/en-US/docs/XPath/Functions/generate-id /en-US/docs/Web/XPath/Functions/generate-id -/en-US/docs/XPath/Functions/id /en-US/docs/Web/XPath/Functions/id -/en-US/docs/XPath/Functions/key /en-US/docs/Web/XPath/Functions/key -/en-US/docs/XPath/Functions/lang /en-US/docs/Web/XPath/Functions/lang -/en-US/docs/XPath/Functions/last /en-US/docs/Web/XPath/Functions/last -/en-US/docs/XPath/Functions/local-name /en-US/docs/Web/XPath/Functions/local-name -/en-US/docs/XPath/Functions/name /en-US/docs/Web/XPath/Functions/name -/en-US/docs/XPath/Functions/namespace-uri /en-US/docs/Web/XPath/Functions/namespace-uri -/en-US/docs/XPath/Functions/normalize-space /en-US/docs/Web/XPath/Functions/normalize-space -/en-US/docs/XPath/Functions/not /en-US/docs/Web/XPath/Functions/not -/en-US/docs/XPath/Functions/number /en-US/docs/Web/XPath/Functions/number -/en-US/docs/XPath/Functions/position /en-US/docs/Web/XPath/Functions/position -/en-US/docs/XPath/Functions/round /en-US/docs/Web/XPath/Functions/round -/en-US/docs/XPath/Functions/starts-with /en-US/docs/Web/XPath/Functions/starts-with -/en-US/docs/XPath/Functions/string /en-US/docs/Web/XPath/Functions/string -/en-US/docs/XPath/Functions/string-length /en-US/docs/Web/XPath/Functions/string-length -/en-US/docs/XPath/Functions/substring /en-US/docs/Web/XPath/Functions/substring -/en-US/docs/XPath/Functions/substring-after /en-US/docs/Web/XPath/Functions/substring-after -/en-US/docs/XPath/Functions/substring-before /en-US/docs/Web/XPath/Functions/substring-before -/en-US/docs/XPath/Functions/sum /en-US/docs/Web/XPath/Functions/sum -/en-US/docs/XPath/Functions/system-property /en-US/docs/Web/XPath/Functions/system-property -/en-US/docs/XPath/Functions/translate /en-US/docs/Web/XPath/Functions/translate -/en-US/docs/XPath/Functions/true /en-US/docs/Web/XPath/Functions/true -/en-US/docs/XPath/Functions/unparsed-entity-url /en-US/docs/Web/XPath/Functions/unparsed-entity-url -/en-US/docs/XPath:Axes /en-US/docs/Web/XPath/Axes -/en-US/docs/XPath:Axes:ancestor /en-US/docs/Web/XPath/Axes#ancestor -/en-US/docs/XPath:Axes:ancestor-or-self /en-US/docs/Web/XPath/Axes#ancestor-or-self -/en-US/docs/XPath:Axes:attribute /en-US/docs/Web/XPath/Axes#attribute -/en-US/docs/XPath:Axes:child /en-US/docs/Web/XPath/Axes#child -/en-US/docs/XPath:Axes:descendant /en-US/docs/Web/XPath/Axes#descendant -/en-US/docs/XPath:Axes:descendant-or-self /en-US/docs/Web/XPath/Axes#descendant-or-self -/en-US/docs/XPath:Axes:following /en-US/docs/Web/XPath/Axes#following -/en-US/docs/XPath:Axes:following-sibling /en-US/docs/Web/XPath/Axes#following-sibling -/en-US/docs/XPath:Axes:namespace /en-US/docs/Web/XPath/Axes#namespace -/en-US/docs/XPath:Axes:parent /en-US/docs/Web/XPath/Axes#parent -/en-US/docs/XPath:Axes:preceding /en-US/docs/Web/XPath/Axes#preceding -/en-US/docs/XPath:Axes:preceding-sibling /en-US/docs/Web/XPath/Axes#preceding-sibling -/en-US/docs/XPath:Axes:self /en-US/docs/Web/XPath/Axes#self -/en-US/docs/XPath:Functions /en-US/docs/Web/XPath/Functions -/en-US/docs/XPath:Functions:boolean /en-US/docs/Web/XPath/Functions/boolean -/en-US/docs/XPath:Functions:ceiling /en-US/docs/Web/XPath/Functions/ceiling -/en-US/docs/XPath:Functions:concat /en-US/docs/Web/XPath/Functions/concat -/en-US/docs/XPath:Functions:contains /en-US/docs/Web/XPath/Functions/contains -/en-US/docs/XPath:Functions:count /en-US/docs/Web/XPath/Functions/count -/en-US/docs/XPath:Functions:current /en-US/docs/Web/XPath/Functions/current -/en-US/docs/XPath:Functions:document /en-US/docs/Web/XPath/Functions/document -/en-US/docs/XPath:Functions:element-available /en-US/docs/Web/XPath/Functions/element-available -/en-US/docs/XPath:Functions:false /en-US/docs/Web/XPath/Functions/false -/en-US/docs/XPath:Functions:floor /en-US/docs/Web/XPath/Functions/floor -/en-US/docs/XPath:Functions:format-number /en-US/docs/Web/XPath/Functions/format-number -/en-US/docs/XPath:Functions:function-available /en-US/docs/Web/XPath/Functions/function-available -/en-US/docs/XPath:Functions:generate-id /en-US/docs/Web/XPath/Functions/generate-id -/en-US/docs/XPath:Functions:id /en-US/docs/Web/XPath/Functions/id -/en-US/docs/XPath:Functions:key /en-US/docs/Web/XPath/Functions/key -/en-US/docs/XPath:Functions:lang /en-US/docs/Web/XPath/Functions/lang -/en-US/docs/XPath:Functions:last /en-US/docs/Web/XPath/Functions/last -/en-US/docs/XPath:Functions:local-name /en-US/docs/Web/XPath/Functions/local-name -/en-US/docs/XPath:Functions:name /en-US/docs/Web/XPath/Functions/name -/en-US/docs/XPath:Functions:namespace-uri /en-US/docs/Web/XPath/Functions/namespace-uri -/en-US/docs/XPath:Functions:normalize-space /en-US/docs/Web/XPath/Functions/normalize-space -/en-US/docs/XPath:Functions:not /en-US/docs/Web/XPath/Functions/not -/en-US/docs/XPath:Functions:number /en-US/docs/Web/XPath/Functions/number -/en-US/docs/XPath:Functions:position /en-US/docs/Web/XPath/Functions/position -/en-US/docs/XPath:Functions:round /en-US/docs/Web/XPath/Functions/round -/en-US/docs/XPath:Functions:starts-with /en-US/docs/Web/XPath/Functions/starts-with -/en-US/docs/XPath:Functions:string /en-US/docs/Web/XPath/Functions/string -/en-US/docs/XPath:Functions:string-length /en-US/docs/Web/XPath/Functions/string-length -/en-US/docs/XPath:Functions:substring /en-US/docs/Web/XPath/Functions/substring -/en-US/docs/XPath:Functions:substring-after /en-US/docs/Web/XPath/Functions/substring-after -/en-US/docs/XPath:Functions:substring-before /en-US/docs/Web/XPath/Functions/substring-before -/en-US/docs/XPath:Functions:sum /en-US/docs/Web/XPath/Functions/sum -/en-US/docs/XPath:Functions:system-property /en-US/docs/Web/XPath/Functions/system-property -/en-US/docs/XPath:Functions:translate /en-US/docs/Web/XPath/Functions/translate -/en-US/docs/XPath:Functions:true /en-US/docs/Web/XPath/Functions/true -/en-US/docs/XPath:Functions:unparsed-entity-url /en-US/docs/Web/XPath/Functions/unparsed-entity-url +/en-US/docs/XPath/Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/XPath/Axes/ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/XPath/Axes/ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/XPath/Axes/attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/XPath/Axes/child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/XPath/Axes/descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/XPath/Axes/descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/XPath/Axes/following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/XPath/Axes/following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/XPath/Axes/namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/XPath/Axes/parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/XPath/Axes/preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/XPath/Axes/preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/XPath/Axes/self /en-US/docs/Web/XPath/Reference/Axes#self +/en-US/docs/XPath/Functions /en-US/docs/Web/XPath/Reference/Functions +/en-US/docs/XPath/Functions/boolean /en-US/docs/Web/XPath/Reference/Functions/boolean +/en-US/docs/XPath/Functions/ceiling /en-US/docs/Web/XPath/Reference/Functions/ceiling +/en-US/docs/XPath/Functions/choose /en-US/docs/Web/XPath/Reference/Functions/choose +/en-US/docs/XPath/Functions/concat /en-US/docs/Web/XPath/Reference/Functions/concat +/en-US/docs/XPath/Functions/contains /en-US/docs/Web/XPath/Reference/Functions/contains +/en-US/docs/XPath/Functions/count /en-US/docs/Web/XPath/Reference/Functions/count +/en-US/docs/XPath/Functions/current /en-US/docs/Web/XPath/Reference/Functions/current +/en-US/docs/XPath/Functions/document /en-US/docs/Web/XPath/Reference/Functions/document +/en-US/docs/XPath/Functions/element-available /en-US/docs/Web/XPath/Reference/Functions/element-available +/en-US/docs/XPath/Functions/false /en-US/docs/Web/XPath/Reference/Functions/false +/en-US/docs/XPath/Functions/floor /en-US/docs/Web/XPath/Reference/Functions/floor +/en-US/docs/XPath/Functions/format-number /en-US/docs/Web/XPath/Reference/Functions/format-number +/en-US/docs/XPath/Functions/function-available /en-US/docs/Web/XPath/Reference/Functions/function-available +/en-US/docs/XPath/Functions/generate-id /en-US/docs/Web/XPath/Reference/Functions/generate-id +/en-US/docs/XPath/Functions/id /en-US/docs/Web/XPath/Reference/Functions/id +/en-US/docs/XPath/Functions/key /en-US/docs/Web/XPath/Reference/Functions/key +/en-US/docs/XPath/Functions/lang /en-US/docs/Web/XPath/Reference/Functions/lang +/en-US/docs/XPath/Functions/last /en-US/docs/Web/XPath/Reference/Functions/last +/en-US/docs/XPath/Functions/local-name /en-US/docs/Web/XPath/Reference/Functions/local-name +/en-US/docs/XPath/Functions/name /en-US/docs/Web/XPath/Reference/Functions/name +/en-US/docs/XPath/Functions/namespace-uri /en-US/docs/Web/XPath/Reference/Functions/namespace-uri +/en-US/docs/XPath/Functions/normalize-space /en-US/docs/Web/XPath/Reference/Functions/normalize-space +/en-US/docs/XPath/Functions/not /en-US/docs/Web/XPath/Reference/Functions/not +/en-US/docs/XPath/Functions/number /en-US/docs/Web/XPath/Reference/Functions/number +/en-US/docs/XPath/Functions/position /en-US/docs/Web/XPath/Reference/Functions/position +/en-US/docs/XPath/Functions/round /en-US/docs/Web/XPath/Reference/Functions/round +/en-US/docs/XPath/Functions/starts-with /en-US/docs/Web/XPath/Reference/Functions/starts-with +/en-US/docs/XPath/Functions/string /en-US/docs/Web/XPath/Reference/Functions/string +/en-US/docs/XPath/Functions/string-length /en-US/docs/Web/XPath/Reference/Functions/string-length +/en-US/docs/XPath/Functions/substring /en-US/docs/Web/XPath/Reference/Functions/substring +/en-US/docs/XPath/Functions/substring-after /en-US/docs/Web/XPath/Reference/Functions/substring-after +/en-US/docs/XPath/Functions/substring-before /en-US/docs/Web/XPath/Reference/Functions/substring-before +/en-US/docs/XPath/Functions/sum /en-US/docs/Web/XPath/Reference/Functions/sum +/en-US/docs/XPath/Functions/system-property /en-US/docs/Web/XPath/Reference/Functions/system-property +/en-US/docs/XPath/Functions/translate /en-US/docs/Web/XPath/Reference/Functions/translate +/en-US/docs/XPath/Functions/true /en-US/docs/Web/XPath/Reference/Functions/true +/en-US/docs/XPath/Functions/unparsed-entity-url /en-US/docs/Web/XPath/Reference/Functions/unparsed-entity-url +/en-US/docs/XPath:Axes /en-US/docs/Web/XPath/Reference/Axes +/en-US/docs/XPath:Axes:ancestor /en-US/docs/Web/XPath/Reference/Axes#ancestor +/en-US/docs/XPath:Axes:ancestor-or-self /en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self +/en-US/docs/XPath:Axes:attribute /en-US/docs/Web/XPath/Reference/Axes#attribute +/en-US/docs/XPath:Axes:child /en-US/docs/Web/XPath/Reference/Axes#child +/en-US/docs/XPath:Axes:descendant /en-US/docs/Web/XPath/Reference/Axes#descendant +/en-US/docs/XPath:Axes:descendant-or-self /en-US/docs/Web/XPath/Reference/Axes#descendant-or-self +/en-US/docs/XPath:Axes:following /en-US/docs/Web/XPath/Reference/Axes#following +/en-US/docs/XPath:Axes:following-sibling /en-US/docs/Web/XPath/Reference/Axes#following-sibling +/en-US/docs/XPath:Axes:namespace /en-US/docs/Web/XPath/Reference/Axes#namespace +/en-US/docs/XPath:Axes:parent /en-US/docs/Web/XPath/Reference/Axes#parent +/en-US/docs/XPath:Axes:preceding /en-US/docs/Web/XPath/Reference/Axes#preceding +/en-US/docs/XPath:Axes:preceding-sibling /en-US/docs/Web/XPath/Reference/Axes#preceding-sibling +/en-US/docs/XPath:Axes:self /en-US/docs/Web/XPath/Reference/Axes#self +/en-US/docs/XPath:Functions /en-US/docs/Web/XPath/Reference/Functions +/en-US/docs/XPath:Functions:boolean /en-US/docs/Web/XPath/Reference/Functions/boolean +/en-US/docs/XPath:Functions:ceiling /en-US/docs/Web/XPath/Reference/Functions/ceiling +/en-US/docs/XPath:Functions:concat /en-US/docs/Web/XPath/Reference/Functions/concat +/en-US/docs/XPath:Functions:contains /en-US/docs/Web/XPath/Reference/Functions/contains +/en-US/docs/XPath:Functions:count /en-US/docs/Web/XPath/Reference/Functions/count +/en-US/docs/XPath:Functions:current /en-US/docs/Web/XPath/Reference/Functions/current +/en-US/docs/XPath:Functions:document /en-US/docs/Web/XPath/Reference/Functions/document +/en-US/docs/XPath:Functions:element-available /en-US/docs/Web/XPath/Reference/Functions/element-available +/en-US/docs/XPath:Functions:false /en-US/docs/Web/XPath/Reference/Functions/false +/en-US/docs/XPath:Functions:floor /en-US/docs/Web/XPath/Reference/Functions/floor +/en-US/docs/XPath:Functions:format-number /en-US/docs/Web/XPath/Reference/Functions/format-number +/en-US/docs/XPath:Functions:function-available /en-US/docs/Web/XPath/Reference/Functions/function-available +/en-US/docs/XPath:Functions:generate-id /en-US/docs/Web/XPath/Reference/Functions/generate-id +/en-US/docs/XPath:Functions:id /en-US/docs/Web/XPath/Reference/Functions/id +/en-US/docs/XPath:Functions:key /en-US/docs/Web/XPath/Reference/Functions/key +/en-US/docs/XPath:Functions:lang /en-US/docs/Web/XPath/Reference/Functions/lang +/en-US/docs/XPath:Functions:last /en-US/docs/Web/XPath/Reference/Functions/last +/en-US/docs/XPath:Functions:local-name /en-US/docs/Web/XPath/Reference/Functions/local-name +/en-US/docs/XPath:Functions:name /en-US/docs/Web/XPath/Reference/Functions/name +/en-US/docs/XPath:Functions:namespace-uri /en-US/docs/Web/XPath/Reference/Functions/namespace-uri +/en-US/docs/XPath:Functions:normalize-space /en-US/docs/Web/XPath/Reference/Functions/normalize-space +/en-US/docs/XPath:Functions:not /en-US/docs/Web/XPath/Reference/Functions/not +/en-US/docs/XPath:Functions:number /en-US/docs/Web/XPath/Reference/Functions/number +/en-US/docs/XPath:Functions:position /en-US/docs/Web/XPath/Reference/Functions/position +/en-US/docs/XPath:Functions:round /en-US/docs/Web/XPath/Reference/Functions/round +/en-US/docs/XPath:Functions:starts-with /en-US/docs/Web/XPath/Reference/Functions/starts-with +/en-US/docs/XPath:Functions:string /en-US/docs/Web/XPath/Reference/Functions/string +/en-US/docs/XPath:Functions:string-length /en-US/docs/Web/XPath/Reference/Functions/string-length +/en-US/docs/XPath:Functions:substring /en-US/docs/Web/XPath/Reference/Functions/substring +/en-US/docs/XPath:Functions:substring-after /en-US/docs/Web/XPath/Reference/Functions/substring-after +/en-US/docs/XPath:Functions:substring-before /en-US/docs/Web/XPath/Reference/Functions/substring-before +/en-US/docs/XPath:Functions:sum /en-US/docs/Web/XPath/Reference/Functions/sum +/en-US/docs/XPath:Functions:system-property /en-US/docs/Web/XPath/Reference/Functions/system-property +/en-US/docs/XPath:Functions:translate /en-US/docs/Web/XPath/Reference/Functions/translate +/en-US/docs/XPath:Functions:true /en-US/docs/Web/XPath/Reference/Functions/true +/en-US/docs/XPath:Functions:unparsed-entity-url /en-US/docs/Web/XPath/Reference/Functions/unparsed-entity-url /en-US/docs/XPathExpression /en-US/docs/Web/API/XPathExpression /en-US/docs/XPathResult /en-US/docs/Web/API/XPathResult /en-US/docs/XPathResult/booleanValue /en-US/docs/Web/API/XPathResult/booleanValue diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 693f948426dc418..c2e532e7f5ca968 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -126608,7 +126608,50 @@ "Jt" ] }, - "Web/XPath/Axes": { + "Web/XPath/Guides/Comparison_with_CSS_selectors": { + "modified": "2019-06-06T12:32:39.713Z", + "contributors": ["ExE-Boss", "criticabug", "chrisdavidmills"] + }, + "Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript": { + "modified": "2020-03-04T11:40:28.386Z", + "contributors": [ + "fscholz", + "wilsonm", + "morenoh149", + "utkarshbhatt12", + "Biiinggg", + "chrisdavidmills", + "jpaugh", + "chinhodado", + "teoli", + "NWilson", + "Brettz9", + "Taken", + "kmaglione", + "JaredWBurt", + "Cuimingda", + "Mgjbot", + "Nibbler", + "Shoot", + "Liorn", + "Celelibi", + "Fredchat", + "broofa", + "Sebuls", + "AxelHecht", + "Andreas Wuest", + "Tom W.M.", + "Lies", + "Jt", + "Nickolay", + "Dria" + ] + }, + "Web/XPath/Guides/Snippets": { + "modified": "2019-03-23T22:48:13.524Z", + "contributors": ["ExE-Boss", "SphinxKnight", "sideshowbarker"] + }, + "Web/XPath/Reference/Axes": { "modified": "2019-03-24T00:17:50.976Z", "contributors": [ "ExE-Boss", @@ -126625,11 +126668,7 @@ "Dria" ] }, - "Web/XPath/Comparison_with_CSS_selectors": { - "modified": "2019-06-06T12:32:39.713Z", - "contributors": ["ExE-Boss", "criticabug", "chrisdavidmills"] - }, - "Web/XPath/Functions": { + "Web/XPath/Reference/Functions": { "modified": "2019-08-11T00:05:54.428Z", "contributors": [ "ExE-Boss", @@ -126646,7 +126685,7 @@ "Dria" ] }, - "Web/XPath/Functions/boolean": { + "Web/XPath/Reference/Functions/boolean": { "modified": "2019-10-11T08:27:44.097Z", "contributors": [ "mfuji09", @@ -126660,7 +126699,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/ceiling": { + "Web/XPath/Reference/Functions/ceiling": { "modified": "2019-03-23T23:49:13.930Z", "contributors": [ "SphinxKnight", @@ -126672,11 +126711,11 @@ "Jonnyq" ] }, - "Web/XPath/Functions/choose": { + "Web/XPath/Reference/Functions/choose": { "modified": "2019-03-24T00:01:33.145Z", "contributors": ["Fredchat", "Sheppy"] }, - "Web/XPath/Functions/concat": { + "Web/XPath/Reference/Functions/concat": { "modified": "2019-03-23T23:49:16.456Z", "contributors": [ "SphinxKnight", @@ -126689,7 +126728,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/contains": { + "Web/XPath/Reference/Functions/contains": { "modified": "2019-03-23T23:49:14.230Z", "contributors": [ "hellpanderrr", @@ -126701,7 +126740,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/count": { + "Web/XPath/Reference/Functions/count": { "modified": "2019-03-23T23:49:11.406Z", "contributors": [ "SphinxKnight", @@ -126713,7 +126752,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/current": { + "Web/XPath/Reference/Functions/current": { "modified": "2019-03-23T23:43:52.275Z", "contributors": [ "SphinxKnight", @@ -126725,7 +126764,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/document": { + "Web/XPath/Reference/Functions/document": { "modified": "2020-05-13T10:17:12.125Z", "contributors": [ "chrisdavidmills", @@ -126737,11 +126776,11 @@ "Jonnyq" ] }, - "Web/XPath/Functions/element-available": { + "Web/XPath/Reference/Functions/element-available": { "modified": "2019-03-23T23:43:50.600Z", "contributors": ["SphinxKnight", "Sheppy", "Fredchat", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/false": { + "Web/XPath/Reference/Functions/false": { "modified": "2019-03-23T23:49:21.978Z", "contributors": [ "SphinxKnight", @@ -126752,7 +126791,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/floor": { + "Web/XPath/Reference/Functions/floor": { "modified": "2019-03-23T23:57:57.293Z", "contributors": [ "SphinxKnight", @@ -126764,7 +126803,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/format-number": { + "Web/XPath/Reference/Functions/format-number": { "modified": "2019-03-23T23:46:35.564Z", "contributors": [ "SphinxKnight", @@ -126775,15 +126814,15 @@ "Jonnyq" ] }, - "Web/XPath/Functions/function-available": { + "Web/XPath/Reference/Functions/function-available": { "modified": "2019-03-23T23:43:52.726Z", "contributors": ["SphinxKnight", "Sheppy", "Fredchat", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/generate-id": { + "Web/XPath/Reference/Functions/generate-id": { "modified": "2019-03-23T23:43:52.818Z", "contributors": ["SphinxKnight", "Sheppy", "Fredchat", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/id": { + "Web/XPath/Reference/Functions/id": { "modified": "2019-03-23T23:49:23.187Z", "contributors": [ "SphinxKnight", @@ -126795,11 +126834,11 @@ "Jonnyq" ] }, - "Web/XPath/Functions/key": { + "Web/XPath/Reference/Functions/key": { "modified": "2019-03-23T23:43:52.512Z", "contributors": ["SphinxKnight", "Sheppy", "Fredchat", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/lang": { + "Web/XPath/Reference/Functions/lang": { "modified": "2019-03-23T23:49:21.772Z", "contributors": [ "SphinxKnight", @@ -126811,7 +126850,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/last": { + "Web/XPath/Reference/Functions/last": { "modified": "2019-03-23T23:49:22.896Z", "contributors": [ "SphinxKnight", @@ -126823,7 +126862,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/local-name": { + "Web/XPath/Reference/Functions/local-name": { "modified": "2019-03-23T23:49:22.756Z", "contributors": [ "SphinxKnight", @@ -126834,7 +126873,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/name": { + "Web/XPath/Reference/Functions/name": { "modified": "2019-03-23T23:49:23.974Z", "contributors": [ "SphinxKnight", @@ -126845,7 +126884,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/namespace-uri": { + "Web/XPath/Reference/Functions/namespace-uri": { "modified": "2019-03-23T23:49:22.667Z", "contributors": [ "SphinxKnight", @@ -126856,7 +126895,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/normalize-space": { + "Web/XPath/Reference/Functions/normalize-space": { "modified": "2019-03-23T23:49:25.369Z", "contributors": [ "SphinxKnight", @@ -126868,7 +126907,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/not": { + "Web/XPath/Reference/Functions/not": { "modified": "2019-03-23T23:49:24.482Z", "contributors": [ "SphinxKnight", @@ -126883,7 +126922,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/number": { + "Web/XPath/Reference/Functions/number": { "modified": "2019-03-23T23:49:25.574Z", "contributors": [ "SphinxKnight", @@ -126895,7 +126934,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/position": { + "Web/XPath/Reference/Functions/position": { "modified": "2019-03-23T23:49:19.581Z", "contributors": [ "SphinxKnight", @@ -126908,7 +126947,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/round": { + "Web/XPath/Reference/Functions/round": { "modified": "2019-03-23T23:49:23.692Z", "contributors": [ "SphinxKnight", @@ -126919,7 +126958,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/starts-with": { + "Web/XPath/Reference/Functions/starts-with": { "modified": "2019-03-23T23:49:22.069Z", "contributors": [ "fhllrmyr", @@ -126930,7 +126969,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/string": { + "Web/XPath/Reference/Functions/string": { "modified": "2019-03-23T23:49:18.639Z", "contributors": [ "MaxValue", @@ -126941,11 +126980,11 @@ "Jonnyq" ] }, - "Web/XPath/Functions/string-length": { + "Web/XPath/Reference/Functions/string-length": { "modified": "2019-03-23T23:49:19.661Z", "contributors": ["SphinxKnight", "Sheppy", "Mgjbot", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/substring": { + "Web/XPath/Reference/Functions/substring": { "modified": "2019-03-23T23:49:21.056Z", "contributors": [ "SphinxKnight", @@ -126956,7 +126995,7 @@ "Nickolay" ] }, - "Web/XPath/Functions/substring-after": { + "Web/XPath/Reference/Functions/substring-after": { "modified": "2020-01-04T09:21:09.942Z", "contributors": [ "mfuji09", @@ -126971,7 +127010,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/substring-before": { + "Web/XPath/Reference/Functions/substring-before": { "modified": "2019-03-18T21:09:22.312Z", "contributors": [ "vor0nwe", @@ -126984,7 +127023,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/sum": { + "Web/XPath/Reference/Functions/sum": { "modified": "2019-03-23T23:49:20.197Z", "contributors": [ "SphinxKnight", @@ -126996,7 +127035,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/system-property": { + "Web/XPath/Reference/Functions/system-property": { "modified": "2020-08-06T04:20:35.872Z", "contributors": [ "mfuji09", @@ -127008,7 +127047,7 @@ "Jonnyq" ] }, - "Web/XPath/Functions/translate": { + "Web/XPath/Reference/Functions/translate": { "modified": "2019-12-14T08:11:05.270Z", "contributors": [ "elix0n", @@ -127029,11 +127068,11 @@ "AlanKrueger" ] }, - "Web/XPath/Functions/true": { + "Web/XPath/Reference/Functions/true": { "modified": "2019-03-23T23:49:18.738Z", "contributors": ["SphinxKnight", "Sheppy", "Mgjbot", "Ptak82", "Jonnyq"] }, - "Web/XPath/Functions/unparsed-entity-url": { + "Web/XPath/Reference/Functions/unparsed-entity-url": { "modified": "2019-06-06T02:16:13.856Z", "contributors": [ "SphinxKnight", @@ -127044,45 +127083,6 @@ "alecananian" ] }, - "Web/XPath/Introduction_to_using_XPath_in_JavaScript": { - "modified": "2020-03-04T11:40:28.386Z", - "contributors": [ - "fscholz", - "wilsonm", - "morenoh149", - "utkarshbhatt12", - "Biiinggg", - "chrisdavidmills", - "jpaugh", - "chinhodado", - "teoli", - "NWilson", - "Brettz9", - "Taken", - "kmaglione", - "JaredWBurt", - "Cuimingda", - "Mgjbot", - "Nibbler", - "Shoot", - "Liorn", - "Celelibi", - "Fredchat", - "broofa", - "Sebuls", - "AxelHecht", - "Andreas Wuest", - "Tom W.M.", - "Lies", - "Jt", - "Nickolay", - "Dria" - ] - }, - "Web/XPath/Snippets": { - "modified": "2019-03-23T22:48:13.524Z", - "contributors": ["ExE-Boss", "SphinxKnight", "sideshowbarker"] - }, "Web/XSLT": { "modified": "2020-09-28T10:37:51.636Z", "contributors": [ diff --git a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md index 06cb75c0a167293..d77997064b709d8 100644 --- a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md +++ b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md @@ -187,7 +187,7 @@ This section lists `page-type` values for pages under [Web/Manifest](/en-US/docs This section lists `page-type` values for pages under [Web/XPath](/en-US/docs/Web/XPath). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the [generic page type](#generic_page_types) values. -- `xpath-function`: a function, like [`ceiling()`](/en-US/docs/Web/XPath/Functions/ceiling) +- `xpath-function`: a function, like [`ceiling()`](/en-US/docs/Web/XPath/Reference/Functions/ceiling) ### XSLT page types diff --git a/files/en-us/mozilla/firefox/releases/3.6/index.md b/files/en-us/mozilla/firefox/releases/3.6/index.md index 6cad2ac98e0c731..667e6719d159db7 100644 --- a/files/en-us/mozilla/firefox/releases/3.6/index.md +++ b/files/en-us/mozilla/firefox/releases/3.6/index.md @@ -84,7 +84,7 @@ Gecko 1.9.2 introduces JavaScript 1.8.2, which adds a number of language feature ### XPath - The choose() XPath method is now supported - - : The [`choose()`](/en-US/docs/Web/XPath/Functions/choose) method is now supported by our implementation of [XPath](/en-US/docs/Web/XPath). + - : The [`choose()`](/en-US/docs/Web/XPath/Reference/Functions/choose) method is now supported by our implementation of [XPath](/en-US/docs/Web/XPath). ## For XUL and add-on developers diff --git a/files/en-us/mozilla/firefox/releases/3.6/updating_extensions/index.md b/files/en-us/mozilla/firefox/releases/3.6/updating_extensions/index.md index 5eaab5732834cb5..67828bef019a266 100644 --- a/files/en-us/mozilla/firefox/releases/3.6/updating_extensions/index.md +++ b/files/en-us/mozilla/firefox/releases/3.6/updating_extensions/index.md @@ -25,7 +25,7 @@ The DOM Level 2 views to HTML and XHTML documents are now unified per HTML 5. - `document.createElementNS(null, "FOO")` no longer creates an HTML element node in HTML documents. `document.createElement("FOO")` or `document.createElementNS("http://www.w3.org/1999/xhtml", "foo")` continue to work in HTML documents. -- The [`name`](/en-US/docs/Web/XPath/Functions/name) and the [`local-name`](/en-US/docs/Web/XPath/Functions/local-name) functions in XPath returns the name of HTML elements in lower case. Previously, in HTML documents, they returned it in upper case. +- The [`name`](/en-US/docs/Web/XPath/Reference/Functions/name) and the [`local-name`](/en-US/docs/Web/XPath/Reference/Functions/local-name) functions in XPath returns the name of HTML elements in lower case. Previously, in HTML documents, they returned it in upper case. The most probable upgrade problem is the pattern `if (elt.localName === "FOO")`. diff --git a/files/en-us/web/api/document/creatensresolver/index.md b/files/en-us/web/api/document/creatensresolver/index.md index 38f2d627906e9ce..ed52b7410c400c3 100644 --- a/files/en-us/web/api/document/creatensresolver/index.md +++ b/files/en-us/web/api/document/creatensresolver/index.md @@ -38,4 +38,4 @@ createNSResolver(nodeResolver) ## See also - {{domxref("Document.evaluate()")}} -- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript) +- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript) diff --git a/files/en-us/web/api/document/evaluate/index.md b/files/en-us/web/api/document/evaluate/index.md index b725821505ad017..8f7700a7b5079b3 100644 --- a/files/en-us/web/api/document/evaluate/index.md +++ b/files/en-us/web/api/document/evaluate/index.md @@ -142,7 +142,7 @@ context node, document.body. If the "." was left out (leaving `//h2`) the query would start from the root node (`html`) which would be more wasteful.) -See [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript) for more information. +See [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript) for more information. ### Getting element by xml:id diff --git a/files/en-us/web/xpath/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/comparison_with_css_selectors/index.md deleted file mode 100644 index 343e1576b5cb99d..000000000000000 --- a/files/en-us/web/xpath/comparison_with_css_selectors/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Comparison of CSS Selectors and XPath -slug: Web/XPath/Comparison_with_CSS_selectors -page-type: guide ---- - -{{XsltSidebar}} - -This article seeks to document the difference between CSS Selectors and XPath for web developers to be able to better choose the right tool for the right job. - -| [XPath feature](/en-US/docs/Web/XPath) | [CSS equivalent](/en-US/docs/Web/CSS/CSS_selectors) | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [`ancestor`](/en-US/docs/Web/XPath/Axes#ancestor), [`parent`](/en-US/docs/Web/XPath/Axes#parent) or [`preceding-sibling`](/en-US/docs/Web/XPath/Axes#preceding-sibling) axis | {{CSSxRef(":has",":has()")}} selector | -| [`attribute`](/en-US/docs/Web/XPath/Axes#attribute) axis | [Attribute selectors](/en-US/docs/Web/CSS/Attribute_selectors) | -| [`child`](/en-US/docs/Web/XPath/Axes#child) axis | [Child combinator](/en-US/docs/Web/CSS/Child_combinator) | -| [`descendant`](/en-US/docs/Web/XPath/Axes#descendant) axis | [Descendant combinator](/en-US/docs/Web/CSS/Descendant_combinator) | -| [`following-sibling`](/en-US/docs/Web/XPath/Axes#following-sibling) axis | [Subsequent-sibling combinator](/en-US/docs/Web/CSS/Subsequent-sibling_combinator) or [Next-sibling combinator](/en-US/docs/Web/CSS/Next-sibling_combinator) | -| [`self`](/en-US/docs/Web/XPath/Axes#self) axis | {{CSSxRef(":scope")}} or {{CSSxRef(":host")}} selector | diff --git a/files/en-us/web/xpath/functions/index.md b/files/en-us/web/xpath/functions/index.md deleted file mode 100644 index 2cff832ebadd062..000000000000000 --- a/files/en-us/web/xpath/functions/index.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Functions -slug: Web/XPath/Functions -page-type: guide ---- - -{{XsltSidebar}} - -The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. - -- [boolean()](/en-US/docs/Web/XPath/Functions/boolean) -- [ceiling()](/en-US/docs/Web/XPath/Functions/ceiling) -- [choose()](/en-US/docs/Web/XPath/Functions/choose) -- [concat()](/en-US/docs/Web/XPath/Functions/concat) -- [contains()](/en-US/docs/Web/XPath/Functions/contains) -- [count()](/en-US/docs/Web/XPath/Functions/count) -- [current()](/en-US/docs/Web/XPath/Functions/current) _XSLT-specific_ -- [document()](/en-US/docs/Web/XPath/Functions/document) _XSLT-specific_ -- [element-available()](/en-US/docs/Web/XPath/Functions/element-available) -- [false()](/en-US/docs/Web/XPath/Functions/false) -- [floor()](/en-US/docs/Web/XPath/Functions/floor) -- [format-number()](/en-US/docs/Web/XPath/Functions/format-number) _XSLT-specific_ -- [function-available()](/en-US/docs/Web/XPath/Functions/function-available) -- [generate-id()](/en-US/docs/Web/XPath/Functions/generate-id) _XSLT-specific_ -- [id()](/en-US/docs/Web/XPath/Functions/id) -- [key()](/en-US/docs/Web/XPath/Functions/key) _XSLT-specific_ -- [lang()](/en-US/docs/Web/XPath/Functions/lang) -- [last()](/en-US/docs/Web/XPath/Functions/last) -- [local-name()](/en-US/docs/Web/XPath/Functions/local-name) -- [name()](/en-US/docs/Web/XPath/Functions/name) -- [namespace-uri()](/en-US/docs/Web/XPath/Functions/namespace-uri) -- [normalize-space()](/en-US/docs/Web/XPath/Functions/normalize-space) -- [not()](/en-US/docs/Web/XPath/Functions/not) -- [number()](/en-US/docs/Web/XPath/Functions/number) -- [position()](/en-US/docs/Web/XPath/Functions/position) -- [round()](/en-US/docs/Web/XPath/Functions/round) -- [starts-with()](/en-US/docs/Web/XPath/Functions/starts-with) -- [string()](/en-US/docs/Web/XPath/Functions/string) -- [string-length()](/en-US/docs/Web/XPath/Functions/string-length) -- [substring()](/en-US/docs/Web/XPath/Functions/substring) -- [substring-after()](/en-US/docs/Web/XPath/Functions/substring-after) -- [substring-before()](/en-US/docs/Web/XPath/Functions/substring-before) -- [sum()](/en-US/docs/Web/XPath/Functions/sum) -- [system-property()](/en-US/docs/Web/XPath/Functions/system-property) _XSLT-specific_ -- [translate()](/en-US/docs/Web/XPath/Functions/translate) -- [true()](/en-US/docs/Web/XPath/Functions/true) -- [unparsed-entity-url()](/en-US/docs/Web/XPath/Functions/unparsed-entity-url) _XSLT-specific_ diff --git a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md new file mode 100644 index 000000000000000..721195335253908 --- /dev/null +++ b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md @@ -0,0 +1,19 @@ +--- +title: Comparison of CSS selectors and XPath +short-title: CSS selectors and XPath +slug: Web/XPath/Guides/Comparison_with_CSS_selectors +page-type: guide +--- + +{{XsltSidebar}} + +This article seeks to document the difference between CSS Selectors and XPath for web developers to be able to better choose the right tool for the right job. + +| [XPath feature](/en-US/docs/Web/XPath) | [CSS equivalent](/en-US/docs/Web/CSS/CSS_selectors) | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [`ancestor`](/en-US/docs/Web/XPath/Reference/Axes#ancestor), [`parent`](/en-US/docs/Web/XPath/Reference/Axes#parent) or [`preceding-sibling`](/en-US/docs/Web/XPath/Reference/Axes#preceding-sibling) axis | {{CSSxRef(":has",":has()")}} selector | +| [`attribute`](/en-US/docs/Web/XPath/Reference/Axes#attribute) axis | [Attribute selectors](/en-US/docs/Web/CSS/Attribute_selectors) | +| [`child`](/en-US/docs/Web/XPath/Reference/Axes#child) axis | [Child combinator](/en-US/docs/Web/CSS/Child_combinator) | +| [`descendant`](/en-US/docs/Web/XPath/Reference/Axes#descendant) axis | [Descendant combinator](/en-US/docs/Web/CSS/Descendant_combinator) | +| [`following-sibling`](/en-US/docs/Web/XPath/Reference/Axes#following-sibling) axis | [Subsequent-sibling combinator](/en-US/docs/Web/CSS/Subsequent-sibling_combinator) or [Next-sibling combinator](/en-US/docs/Web/CSS/Next-sibling_combinator) | +| [`self`](/en-US/docs/Web/XPath/Reference/Axes#self) axis | {{CSSxRef(":scope")}} or {{CSSxRef(":host")}} selector | diff --git a/files/en-us/web/xpath/guides/index.md b/files/en-us/web/xpath/guides/index.md new file mode 100644 index 000000000000000..8d2be7b0a3c2b66 --- /dev/null +++ b/files/en-us/web/xpath/guides/index.md @@ -0,0 +1,17 @@ +--- +title: XPath guides +short-title: Guides +slug: Web/XPath/Guides +page-type: landing-page +--- + +{{XsltSidebar}} + +This page lists guides for XPath. +They're intended to help you understand what kinds of things are possible using XPath in JavaScript, and highlight the similarities with CSS selectors. + +{{SubPagesWithSummaries}} + +## See also + +- [XPath reference](/en-US/docs/Web/XPath/Reference) diff --git a/files/en-us/web/xpath/introduction_to_using_xpath_in_javascript/index.md b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md similarity index 96% rename from files/en-us/web/xpath/introduction_to_using_xpath_in_javascript/index.md rename to files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md index 23138dfaf013f52..e16e48d2ed4052b 100644 --- a/files/en-us/web/xpath/introduction_to_using_xpath_in_javascript/index.md +++ b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md @@ -1,6 +1,7 @@ --- title: Introduction to using XPath in JavaScript -slug: Web/XPath/Introduction_to_using_XPath_in_JavaScript +short-title: Using XPath in JavaScript +slug: Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript page-type: guide --- @@ -81,7 +82,7 @@ We obtain the returned value of the expression by accessing the following proper ##### Example -The following uses the XPath expression [`count(//p)`](/en-US/docs/Web/XPath/Functions/count) to obtain the number of `

` elements in an HTML document: +The following uses the XPath expression [`count(//p)`](/en-US/docs/Web/XPath/Reference/Functions/count) to obtain the number of `

` elements in an HTML document: ```js const paragraphCount = document.evaluate( @@ -324,11 +325,11 @@ Another approach to match default elements in a non-null namespace (and one whic If one wishes to provide flexibility in namespaces (as they are intended) by not necessarily requiring a particular prefix to be used when finding a namespaced element or attribute, one must use special techniques. -While one can adapt the approach in the above section to test for namespaced elements regardless of the prefix chosen (using [`local-name()`](/en-US/docs/Web/XPath/Functions/local-name) in combination with [`namespace-uri()`](/en-US/docs/Web/XPath/Functions/namespace-uri) instead of [`name()`](/en-US/docs/Web/XPath/Functions/name)), a more challenging situation occurs, however, if one wishes to grab an element with a particular namespaced attribute in a predicate (given the absence of implementation-independent variables in XPath 1.0). +While one can adapt the approach in the above section to test for namespaced elements regardless of the prefix chosen (using [`local-name()`](/en-US/docs/Web/XPath/Reference/Functions/local-name) in combination with [`namespace-uri()`](/en-US/docs/Web/XPath/Reference/Functions/namespace-uri) instead of [`name()`](/en-US/docs/Web/XPath/Reference/Functions/name)), a more challenging situation occurs, however, if one wishes to grab an element with a particular namespaced attribute in a predicate (given the absence of implementation-independent variables in XPath 1.0). For example, one might try (incorrectly) to grab an element with a namespaced attribute as follows: `const xpathLink = someElements[local-name(@*)="href" and namespace-uri(@*)='http://www.w3.org/1999/xlink'];` -This could inadvertently grab some elements if one of its attributes existed that had a local name of `href`, but it was a different attribute which had the targeted (XLink) namespace (instead of [`@href`](/en-US/docs/Web/XPath/Axes#attribute)). +This could inadvertently grab some elements if one of its attributes existed that had a local name of `href`, but it was a different attribute which had the targeted (XLink) namespace (instead of [`@href`](/en-US/docs/Web/XPath/Reference/Axes#attribute)). In order to accurately grab elements with the XLink `@href` attribute (without also being confined to predefined prefixes in a namespace resolver), one could obtain them as follows: diff --git a/files/en-us/web/xpath/snippets/index.md b/files/en-us/web/xpath/guides/snippets/index.md similarity index 98% rename from files/en-us/web/xpath/snippets/index.md rename to files/en-us/web/xpath/guides/snippets/index.md index 56c4b61900d27f9..0836561e4c1da0a 100644 --- a/files/en-us/web/xpath/snippets/index.md +++ b/files/en-us/web/xpath/guides/snippets/index.md @@ -1,6 +1,6 @@ --- title: XPath snippets -slug: Web/XPath/Snippets +slug: Web/XPath/Guides/Snippets page-type: guide --- @@ -153,4 +153,4 @@ function getXPathForElement(el, xml) { ## See also -- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript) +- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript) diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index 6dc9acc69b022e4..cf35e87a628e1e5 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -13,29 +13,27 @@ XPath is mainly used in [XSLT](/en-US/docs/Web/XSLT), but can also be used as a XPath uses a path notation (as in URLs) for navigating through the hierarchical structure of an XML document. It uses a non-XML syntax so that it can be used in URIs and XML attribute values. > [!NOTE] -> Support for XPath varies widely; it's supported reasonably well in Firefox (although there are no plans to improve support further), while other browsers implement it to a lesser extent, if at all. If you need a polyfill, you may consider [js-xpath](https://pilotfiber.dl.sourceforge.net/project/js-xpath/js-xpath/1.0.0/xpath.js) or [wicked-good-xpath](https://github.com/google/wicked-good-xpath). +> Support for XPath varies; it's supported reasonably well in Firefox, while other browsers implement it to a lesser extent, if at all. +> If you need a polyfill, you may consider [js-xpath](https://pilotfiber.dl.sourceforge.net/project/js-xpath/js-xpath/1.0.0/xpath.js) or [wicked-good-xpath](https://github.com/google/wicked-good-xpath). -## Documentation +## Guides -- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript) +- [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript) - : Describes a non-XSLT use of XPath. -- [XPath:Axes](/en-US/docs/Web/XPath/Axes) - - : List and definition of the axes defined in the XPath specification. Axes are used to describe the relationships between nodes. -- [XPath:Functions](/en-US/docs/Web/XPath/Functions) - - : List and description of the core XPath functions and XSLT-specific additions to XPath. -- [Transforming XML with XSLT](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) - - : XSLT uses XPath to address code segments in an XML document that it wishes to transform. -- [XPath snippets](/en-US/docs/Web/XPath/Snippets) +- [XPath snippets](/en-US/docs/Web/XPath/Guides/Snippets) - : These are JavaScript utility functions, that can be used in your own code, based on [DOM Level 3 XPath](https://www.w3.org/TR/DOM-Level-3-XPath/) APIs. -- [What is XSLT?](https://www.xml.com/pub/a/2000/08/holman/) - - : This extensive introduction to XSLT and XPath assumes no prior knowledge of the technologies, and guides the reader through background, context, structure, concepts, and introductory terminology. -## Tools +## Reference -- [XPath tester](https://extendsclass.com/xpath-tester.html) - - : An online XPath Builder/Debugger. +- [XPath:Axes](/en-US/docs/Web/XPath/Reference/Axes) + - : List and definition of the axes defined in the XPath specification. Axes are used to describe the relationships between nodes. +- [XPath:Functions](/en-US/docs/Web/XPath/Reference/Functions) + - : List and description of the core XPath functions and XSLT-specific additions to XPath. -## Related Topics +## See also - [XSLT](/en-US/docs/Web/XSLT), [XML](/en-US/docs/Web/XML), [DOM](/en-US/docs/Web/API/Document_Object_Model) -- [Comparison of CSS Selectors and XPath](/en-US/docs/Web/XPath/Comparison_with_CSS_selectors) +- [Transforming XML with XSLT](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) +- [Comparison of CSS Selectors and XPath](/en-US/docs/Web/XPath/Guides/Comparison_with_CSS_selectors) +- [What is XSLT?](https://www.xml.com/pub/a/2000/08/holman/) introduces XSLT and XPath, including background, context, structure, concepts, and terminology - xml.com (2000) +- [XPath tester](https://extendsclass.com/xpath-tester.html) online XPath Builder/Debugger diff --git a/files/en-us/web/xpath/axes/index.md b/files/en-us/web/xpath/reference/axes/index.md similarity index 98% rename from files/en-us/web/xpath/axes/index.md rename to files/en-us/web/xpath/reference/axes/index.md index 4cf7ed1af38c823..bc59898d9934e80 100644 --- a/files/en-us/web/xpath/axes/index.md +++ b/files/en-us/web/xpath/reference/axes/index.md @@ -1,6 +1,6 @@ --- title: Axes -slug: Web/XPath/Axes +slug: Web/XPath/Reference/Axes page-type: landing-page --- diff --git a/files/en-us/web/xpath/functions/boolean/index.md b/files/en-us/web/xpath/reference/functions/boolean/index.md similarity index 95% rename from files/en-us/web/xpath/functions/boolean/index.md rename to files/en-us/web/xpath/reference/functions/boolean/index.md index 5af8b7e262fbd7e..5c31100765f1864 100644 --- a/files/en-us/web/xpath/functions/boolean/index.md +++ b/files/en-us/web/xpath/reference/functions/boolean/index.md @@ -1,6 +1,6 @@ --- title: boolean -slug: Web/XPath/Functions/boolean +slug: Web/XPath/Reference/Functions/boolean page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/ceiling/index.md b/files/en-us/web/xpath/reference/functions/ceiling/index.md similarity index 92% rename from files/en-us/web/xpath/functions/ceiling/index.md rename to files/en-us/web/xpath/reference/functions/ceiling/index.md index 06226281cc9c713..6e82da147b67d01 100644 --- a/files/en-us/web/xpath/functions/ceiling/index.md +++ b/files/en-us/web/xpath/reference/functions/ceiling/index.md @@ -1,6 +1,6 @@ --- title: ceiling -slug: Web/XPath/Functions/ceiling +slug: Web/XPath/Reference/Functions/ceiling page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/choose/index.md b/files/en-us/web/xpath/reference/functions/choose/index.md similarity index 95% rename from files/en-us/web/xpath/functions/choose/index.md rename to files/en-us/web/xpath/reference/functions/choose/index.md index 93556301466805d..62c0d0bcba6dd46 100644 --- a/files/en-us/web/xpath/functions/choose/index.md +++ b/files/en-us/web/xpath/reference/functions/choose/index.md @@ -1,6 +1,6 @@ --- title: choose -slug: Web/XPath/Functions/choose +slug: Web/XPath/Reference/Functions/choose page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/concat/index.md b/files/en-us/web/xpath/reference/functions/concat/index.md similarity index 93% rename from files/en-us/web/xpath/functions/concat/index.md rename to files/en-us/web/xpath/reference/functions/concat/index.md index 0c895c8d62334ac..43167088761a991 100644 --- a/files/en-us/web/xpath/functions/concat/index.md +++ b/files/en-us/web/xpath/reference/functions/concat/index.md @@ -1,6 +1,6 @@ --- title: concat -slug: Web/XPath/Functions/concat +slug: Web/XPath/Reference/Functions/concat page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/contains/index.md b/files/en-us/web/xpath/reference/functions/contains/index.md similarity index 93% rename from files/en-us/web/xpath/functions/contains/index.md rename to files/en-us/web/xpath/reference/functions/contains/index.md index 5654fc6e339bc17..06bb9081e6f0c16 100644 --- a/files/en-us/web/xpath/functions/contains/index.md +++ b/files/en-us/web/xpath/reference/functions/contains/index.md @@ -1,6 +1,6 @@ --- title: contains -slug: Web/XPath/Functions/contains +slug: Web/XPath/Reference/Functions/contains page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/count/index.md b/files/en-us/web/xpath/reference/functions/count/index.md similarity index 91% rename from files/en-us/web/xpath/functions/count/index.md rename to files/en-us/web/xpath/reference/functions/count/index.md index 8c41c8a4c3a77f7..2a7beaa7f750999 100644 --- a/files/en-us/web/xpath/functions/count/index.md +++ b/files/en-us/web/xpath/reference/functions/count/index.md @@ -1,6 +1,6 @@ --- title: count -slug: Web/XPath/Functions/count +slug: Web/XPath/Reference/Functions/count page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/current/index.md b/files/en-us/web/xpath/reference/functions/current/index.md similarity index 97% rename from files/en-us/web/xpath/functions/current/index.md rename to files/en-us/web/xpath/reference/functions/current/index.md index 3a14e70d15b42bb..c88084ff965b8cc 100644 --- a/files/en-us/web/xpath/functions/current/index.md +++ b/files/en-us/web/xpath/reference/functions/current/index.md @@ -1,6 +1,6 @@ --- title: current -slug: Web/XPath/Functions/current +slug: Web/XPath/Reference/Functions/current page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/document/index.md b/files/en-us/web/xpath/reference/functions/document/index.md similarity index 97% rename from files/en-us/web/xpath/functions/document/index.md rename to files/en-us/web/xpath/reference/functions/document/index.md index f36b0b99145a3e6..77b71a65a9139ca 100644 --- a/files/en-us/web/xpath/functions/document/index.md +++ b/files/en-us/web/xpath/reference/functions/document/index.md @@ -1,6 +1,6 @@ --- title: document -slug: Web/XPath/Functions/document +slug: Web/XPath/Reference/Functions/document page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/element-available/index.md b/files/en-us/web/xpath/reference/functions/element-available/index.md similarity index 94% rename from files/en-us/web/xpath/functions/element-available/index.md rename to files/en-us/web/xpath/reference/functions/element-available/index.md index 3a311fe8ea5bc04..5c4005b32942e79 100644 --- a/files/en-us/web/xpath/functions/element-available/index.md +++ b/files/en-us/web/xpath/reference/functions/element-available/index.md @@ -1,6 +1,6 @@ --- title: element-available -slug: Web/XPath/Functions/element-available +slug: Web/XPath/Reference/Functions/element-available page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/false/index.md b/files/en-us/web/xpath/reference/functions/false/index.md similarity index 91% rename from files/en-us/web/xpath/functions/false/index.md rename to files/en-us/web/xpath/reference/functions/false/index.md index 315df39bbffa68d..c9639cbeb22fd81 100644 --- a/files/en-us/web/xpath/functions/false/index.md +++ b/files/en-us/web/xpath/reference/functions/false/index.md @@ -1,6 +1,6 @@ --- title: "false" -slug: Web/XPath/Functions/false +slug: Web/XPath/Reference/Functions/false page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/floor/index.md b/files/en-us/web/xpath/reference/functions/floor/index.md similarity index 92% rename from files/en-us/web/xpath/functions/floor/index.md rename to files/en-us/web/xpath/reference/functions/floor/index.md index 214022129f0e892..d4c512768479fa4 100644 --- a/files/en-us/web/xpath/functions/floor/index.md +++ b/files/en-us/web/xpath/reference/functions/floor/index.md @@ -1,6 +1,6 @@ --- title: floor -slug: Web/XPath/Functions/floor +slug: Web/XPath/Reference/Functions/floor page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/format-number/index.md b/files/en-us/web/xpath/reference/functions/format-number/index.md similarity index 95% rename from files/en-us/web/xpath/functions/format-number/index.md rename to files/en-us/web/xpath/reference/functions/format-number/index.md index c7576d10f8e4fa5..c1b36cfd601b511 100644 --- a/files/en-us/web/xpath/functions/format-number/index.md +++ b/files/en-us/web/xpath/reference/functions/format-number/index.md @@ -1,6 +1,6 @@ --- title: format-number -slug: Web/XPath/Functions/format-number +slug: Web/XPath/Reference/Functions/format-number page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/function-available/index.md b/files/en-us/web/xpath/reference/functions/function-available/index.md similarity index 89% rename from files/en-us/web/xpath/functions/function-available/index.md rename to files/en-us/web/xpath/reference/functions/function-available/index.md index d29154cfee8ea1a..9161a9940f64c8f 100644 --- a/files/en-us/web/xpath/functions/function-available/index.md +++ b/files/en-us/web/xpath/reference/functions/function-available/index.md @@ -1,6 +1,6 @@ --- title: function-available -slug: Web/XPath/Functions/function-available +slug: Web/XPath/Reference/Functions/function-available page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/generate-id/index.md b/files/en-us/web/xpath/reference/functions/generate-id/index.md similarity index 94% rename from files/en-us/web/xpath/functions/generate-id/index.md rename to files/en-us/web/xpath/reference/functions/generate-id/index.md index 57f7d6e0f109758..1e45c9cbfee0f74 100644 --- a/files/en-us/web/xpath/functions/generate-id/index.md +++ b/files/en-us/web/xpath/reference/functions/generate-id/index.md @@ -1,6 +1,6 @@ --- title: generate-id -slug: Web/XPath/Functions/generate-id +slug: Web/XPath/Reference/Functions/generate-id page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/id/index.md b/files/en-us/web/xpath/reference/functions/id/index.md similarity index 96% rename from files/en-us/web/xpath/functions/id/index.md rename to files/en-us/web/xpath/reference/functions/id/index.md index 0af2c47ae2dadcc..d5530e804d9394c 100644 --- a/files/en-us/web/xpath/functions/id/index.md +++ b/files/en-us/web/xpath/reference/functions/id/index.md @@ -1,6 +1,6 @@ --- title: id -slug: Web/XPath/Functions/id +slug: Web/XPath/Reference/Functions/id page-type: xpath-function --- diff --git a/files/en-us/web/xpath/reference/functions/index.md b/files/en-us/web/xpath/reference/functions/index.md new file mode 100644 index 000000000000000..b4084478d10b82c --- /dev/null +++ b/files/en-us/web/xpath/reference/functions/index.md @@ -0,0 +1,16 @@ +--- +title: XPath functions +short-title: Functions +slug: Web/XPath/Reference/Functions +page-type: reference +--- + +{{XsltSidebar}} + +The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. + +{{SubpagesWithSummaries}} + +## See also + +- [XPath guides](/en-US/docs/Web/XPath/Guides) diff --git a/files/en-us/web/xpath/functions/key/index.md b/files/en-us/web/xpath/reference/functions/key/index.md similarity index 95% rename from files/en-us/web/xpath/functions/key/index.md rename to files/en-us/web/xpath/reference/functions/key/index.md index 0a64c373aa00ee0..5893904b3372d09 100644 --- a/files/en-us/web/xpath/functions/key/index.md +++ b/files/en-us/web/xpath/reference/functions/key/index.md @@ -1,6 +1,6 @@ --- title: key -slug: Web/XPath/Functions/key +slug: Web/XPath/Reference/Functions/key page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/lang/index.md b/files/en-us/web/xpath/reference/functions/lang/index.md similarity index 97% rename from files/en-us/web/xpath/functions/lang/index.md rename to files/en-us/web/xpath/reference/functions/lang/index.md index 1846d29bd1093c7..c490a8d53aa6da4 100644 --- a/files/en-us/web/xpath/functions/lang/index.md +++ b/files/en-us/web/xpath/reference/functions/lang/index.md @@ -1,6 +1,6 @@ --- title: lang -slug: Web/XPath/Functions/lang +slug: Web/XPath/Reference/Functions/lang page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/last/index.md b/files/en-us/web/xpath/reference/functions/last/index.md similarity index 78% rename from files/en-us/web/xpath/functions/last/index.md rename to files/en-us/web/xpath/reference/functions/last/index.md index c7ccd9e9272901c..9bc84c37bd12f1d 100644 --- a/files/en-us/web/xpath/functions/last/index.md +++ b/files/en-us/web/xpath/reference/functions/last/index.md @@ -1,6 +1,6 @@ --- title: last -slug: Web/XPath/Functions/last +slug: Web/XPath/Reference/Functions/last page-type: xpath-function --- @@ -20,7 +20,7 @@ An integer equal to the context size from the expression evaluation context. ## Description -- This is often used with the [position()](/en-US/docs/Web/XPath/Functions/position) function to determine if a particular node is the last in a node-set. +- This is often used with the [position()](/en-US/docs/Web/XPath/Reference/Functions/position) function to determine if a particular node is the last in a node-set. ## Specifications diff --git a/files/en-us/web/xpath/functions/local-name/index.md b/files/en-us/web/xpath/reference/functions/local-name/index.md similarity index 93% rename from files/en-us/web/xpath/functions/local-name/index.md rename to files/en-us/web/xpath/reference/functions/local-name/index.md index 1a1b8956e8e6cd4..cd0b94ce5e23f65 100644 --- a/files/en-us/web/xpath/functions/local-name/index.md +++ b/files/en-us/web/xpath/reference/functions/local-name/index.md @@ -1,6 +1,6 @@ --- title: local-name -slug: Web/XPath/Functions/local-name +slug: Web/XPath/Reference/Functions/local-name page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/name/index.md b/files/en-us/web/xpath/reference/functions/name/index.md similarity index 94% rename from files/en-us/web/xpath/functions/name/index.md rename to files/en-us/web/xpath/reference/functions/name/index.md index a8833280d4d7303..14759a2558ada5f 100644 --- a/files/en-us/web/xpath/functions/name/index.md +++ b/files/en-us/web/xpath/reference/functions/name/index.md @@ -1,6 +1,6 @@ --- title: name -slug: Web/XPath/Functions/name +slug: Web/XPath/Reference/Functions/name page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/namespace-uri/index.md b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md similarity index 94% rename from files/en-us/web/xpath/functions/namespace-uri/index.md rename to files/en-us/web/xpath/reference/functions/namespace-uri/index.md index 9a2224f52c3f17e..2cc7e46f5d268e6 100644 --- a/files/en-us/web/xpath/functions/namespace-uri/index.md +++ b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md @@ -1,6 +1,6 @@ --- title: namespace-uri -slug: Web/XPath/Functions/namespace-uri +slug: Web/XPath/Reference/Functions/namespace-uri page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/normalize-space/index.md b/files/en-us/web/xpath/reference/functions/normalize-space/index.md similarity index 92% rename from files/en-us/web/xpath/functions/normalize-space/index.md rename to files/en-us/web/xpath/reference/functions/normalize-space/index.md index e825e7dfcf6eed2..d47ab3c628139d5 100644 --- a/files/en-us/web/xpath/functions/normalize-space/index.md +++ b/files/en-us/web/xpath/reference/functions/normalize-space/index.md @@ -1,6 +1,6 @@ --- title: normalize-space -slug: Web/XPath/Functions/normalize-space +slug: Web/XPath/Reference/Functions/normalize-space page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/not/index.md b/files/en-us/web/xpath/reference/functions/not/index.md similarity index 80% rename from files/en-us/web/xpath/functions/not/index.md rename to files/en-us/web/xpath/reference/functions/not/index.md index 50e31b1840a76e3..54cc3f9111dceeb 100644 --- a/files/en-us/web/xpath/functions/not/index.md +++ b/files/en-us/web/xpath/reference/functions/not/index.md @@ -1,6 +1,6 @@ --- title: not -slug: Web/XPath/Functions/not +slug: Web/XPath/Reference/Functions/not page-type: xpath-function --- @@ -17,7 +17,7 @@ not( expression ) ### Parameters - `expression` - - : The expression is evaluated exactly as if it were passed as an argument to the [boolean()](/en-US/docs/Web/XPath/Functions/boolean) function. + - : The expression is evaluated exactly as if it were passed as an argument to the [boolean()](/en-US/docs/Web/XPath/Reference/Functions/boolean) function. ### Return value @@ -25,7 +25,7 @@ True for an expression that evaluates to false; false for an expression that eva ## Description -- This function should behave similarly to the [boolean()](/en-US/docs/Web/XPath/Functions/boolean) function except that it returns the opposite value. +- This function should behave similarly to the [boolean()](/en-US/docs/Web/XPath/Reference/Functions/boolean) function except that it returns the opposite value. - You can test if an element doesn't have some attribute. ```xml diff --git a/files/en-us/web/xpath/functions/number/index.md b/files/en-us/web/xpath/reference/functions/number/index.md similarity index 85% rename from files/en-us/web/xpath/functions/number/index.md rename to files/en-us/web/xpath/reference/functions/number/index.md index 01428ce5e2e7f3d..d66debdda70528a 100644 --- a/files/en-us/web/xpath/functions/number/index.md +++ b/files/en-us/web/xpath/reference/functions/number/index.md @@ -1,6 +1,6 @@ --- title: number -slug: Web/XPath/Functions/number +slug: Web/XPath/Reference/Functions/number page-type: xpath-function --- @@ -27,7 +27,7 @@ The resulting number after converting the object. - Strings are converted to a number by stripping the leading whitespace in the string before the number and ignoring whitespace after the number. If the string does not match this pattern, then the string is converted to NaN. - Boolean true is converted to 1. False is converted to 0. -- A node-set is first converted to a string as if by a call to the [string()](/en-US/docs/Web/XPath/Functions/string) function and then converted in the same way as a string argument. +- A node-set is first converted to a string as if by a call to the [string()](/en-US/docs/Web/XPath/Reference/Functions/string) function and then converted in the same way as a string argument. - An object of a type other than the four basic types is converted to a number in a way that is dependent on that type. ## Specifications diff --git a/files/en-us/web/xpath/functions/position/index.md b/files/en-us/web/xpath/reference/functions/position/index.md similarity index 95% rename from files/en-us/web/xpath/functions/position/index.md rename to files/en-us/web/xpath/reference/functions/position/index.md index ed454cdbfb645a9..075ee8af7faa5ad 100644 --- a/files/en-us/web/xpath/functions/position/index.md +++ b/files/en-us/web/xpath/reference/functions/position/index.md @@ -1,6 +1,6 @@ --- title: position -slug: Web/XPath/Functions/position +slug: Web/XPath/Reference/Functions/position page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/round/index.md b/files/en-us/web/xpath/reference/functions/round/index.md similarity index 93% rename from files/en-us/web/xpath/functions/round/index.md rename to files/en-us/web/xpath/reference/functions/round/index.md index 72a3693a182e027..183535c11b3fd49 100644 --- a/files/en-us/web/xpath/functions/round/index.md +++ b/files/en-us/web/xpath/reference/functions/round/index.md @@ -1,6 +1,6 @@ --- title: round -slug: Web/XPath/Functions/round +slug: Web/XPath/Reference/Functions/round page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/starts-with/index.md b/files/en-us/web/xpath/reference/functions/starts-with/index.md similarity index 91% rename from files/en-us/web/xpath/functions/starts-with/index.md rename to files/en-us/web/xpath/reference/functions/starts-with/index.md index a196ac74b94660f..9f6cb578a656ba2 100644 --- a/files/en-us/web/xpath/functions/starts-with/index.md +++ b/files/en-us/web/xpath/reference/functions/starts-with/index.md @@ -1,6 +1,6 @@ --- title: starts-with -slug: Web/XPath/Functions/starts-with +slug: Web/XPath/Reference/Functions/starts-with page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/string-length/index.md b/files/en-us/web/xpath/reference/functions/string-length/index.md similarity index 92% rename from files/en-us/web/xpath/functions/string-length/index.md rename to files/en-us/web/xpath/reference/functions/string-length/index.md index 605375d5c7dda4b..879732f234ec391 100644 --- a/files/en-us/web/xpath/functions/string-length/index.md +++ b/files/en-us/web/xpath/reference/functions/string-length/index.md @@ -1,6 +1,6 @@ --- title: string-length -slug: Web/XPath/Functions/string-length +slug: Web/XPath/Reference/Functions/string-length page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/string/index.md b/files/en-us/web/xpath/reference/functions/string/index.md similarity index 96% rename from files/en-us/web/xpath/functions/string/index.md rename to files/en-us/web/xpath/reference/functions/string/index.md index 5591b4772c787fb..5467af8714ff554 100644 --- a/files/en-us/web/xpath/functions/string/index.md +++ b/files/en-us/web/xpath/reference/functions/string/index.md @@ -1,6 +1,6 @@ --- title: string -slug: Web/XPath/Functions/string +slug: Web/XPath/Reference/Functions/string page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/substring-after/index.md b/files/en-us/web/xpath/reference/functions/substring-after/index.md similarity index 94% rename from files/en-us/web/xpath/functions/substring-after/index.md rename to files/en-us/web/xpath/reference/functions/substring-after/index.md index fc6d5dd1df3dc3e..e910694694c7451 100644 --- a/files/en-us/web/xpath/functions/substring-after/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-after/index.md @@ -1,6 +1,6 @@ --- title: substring-after -slug: Web/XPath/Functions/substring-after +slug: Web/XPath/Reference/Functions/substring-after page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/substring-before/index.md b/files/en-us/web/xpath/reference/functions/substring-before/index.md similarity index 94% rename from files/en-us/web/xpath/functions/substring-before/index.md rename to files/en-us/web/xpath/reference/functions/substring-before/index.md index fa9568ef405bbfe..e8f929adf78b22e 100644 --- a/files/en-us/web/xpath/functions/substring-before/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-before/index.md @@ -1,6 +1,6 @@ --- title: substring-before -slug: Web/XPath/Functions/substring-before +slug: Web/XPath/Reference/Functions/substring-before page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/substring/index.md b/files/en-us/web/xpath/reference/functions/substring/index.md similarity index 94% rename from files/en-us/web/xpath/functions/substring/index.md rename to files/en-us/web/xpath/reference/functions/substring/index.md index c3e1b8b12b2a298..4a4ef26960e9502 100644 --- a/files/en-us/web/xpath/functions/substring/index.md +++ b/files/en-us/web/xpath/reference/functions/substring/index.md @@ -1,6 +1,6 @@ --- title: substring -slug: Web/XPath/Functions/substring +slug: Web/XPath/Reference/Functions/substring page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/sum/index.md b/files/en-us/web/xpath/reference/functions/sum/index.md similarity index 80% rename from files/en-us/web/xpath/functions/sum/index.md rename to files/en-us/web/xpath/reference/functions/sum/index.md index 0ed4c9b09d22f98..d790adea8140eef 100644 --- a/files/en-us/web/xpath/functions/sum/index.md +++ b/files/en-us/web/xpath/reference/functions/sum/index.md @@ -1,6 +1,6 @@ --- title: sum -slug: Web/XPath/Functions/sum +slug: Web/XPath/Reference/Functions/sum page-type: xpath-function --- @@ -17,7 +17,7 @@ sum(node-set) ### Parameters - `node-set` - - : The node-set to be evaluated. Each node in this node-set is evaluated as if it were passed to the [number()](/en-US/docs/Web/XPath/Functions/number) function, and a sum of the resulting numbers is returned. + - : The node-set to be evaluated. Each node in this node-set is evaluated as if it were passed to the [number()](/en-US/docs/Web/XPath/Reference/Functions/number) function, and a sum of the resulting numbers is returned. ### Return value diff --git a/files/en-us/web/xpath/functions/system-property/index.md b/files/en-us/web/xpath/reference/functions/system-property/index.md similarity index 96% rename from files/en-us/web/xpath/functions/system-property/index.md rename to files/en-us/web/xpath/reference/functions/system-property/index.md index 721dd0e47b0eff8..3b6087349d24dc3 100644 --- a/files/en-us/web/xpath/functions/system-property/index.md +++ b/files/en-us/web/xpath/reference/functions/system-property/index.md @@ -1,6 +1,6 @@ --- title: system-property -slug: Web/XPath/Functions/system-property +slug: Web/XPath/Reference/Functions/system-property page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/translate/index.md b/files/en-us/web/xpath/reference/functions/translate/index.md similarity index 97% rename from files/en-us/web/xpath/functions/translate/index.md rename to files/en-us/web/xpath/reference/functions/translate/index.md index 8e0d7e0c56db85b..dfaaa25072ff0cc 100644 --- a/files/en-us/web/xpath/functions/translate/index.md +++ b/files/en-us/web/xpath/reference/functions/translate/index.md @@ -1,6 +1,6 @@ --- title: translate -slug: Web/XPath/Functions/translate +slug: Web/XPath/Reference/Functions/translate page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/true/index.md b/files/en-us/web/xpath/reference/functions/true/index.md similarity index 88% rename from files/en-us/web/xpath/functions/true/index.md rename to files/en-us/web/xpath/reference/functions/true/index.md index 85af9fecffb1e19..b1a7d64ab801db3 100644 --- a/files/en-us/web/xpath/functions/true/index.md +++ b/files/en-us/web/xpath/reference/functions/true/index.md @@ -1,6 +1,6 @@ --- title: "true" -slug: Web/XPath/Functions/true +slug: Web/XPath/Reference/Functions/true page-type: xpath-function --- diff --git a/files/en-us/web/xpath/functions/unparsed-entity-url/index.md b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md similarity index 92% rename from files/en-us/web/xpath/functions/unparsed-entity-url/index.md rename to files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md index 5ad8543ca457bde..1b0b9d23c5e215c 100644 --- a/files/en-us/web/xpath/functions/unparsed-entity-url/index.md +++ b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md @@ -1,6 +1,6 @@ --- title: unparsed-entity-url -slug: Web/XPath/Functions/unparsed-entity-url +slug: Web/XPath/Reference/Functions/unparsed-entity-url page-type: xpath-function --- diff --git a/files/en-us/web/xpath/reference/index.md b/files/en-us/web/xpath/reference/index.md new file mode 100644 index 000000000000000..99d0fea53d85769 --- /dev/null +++ b/files/en-us/web/xpath/reference/index.md @@ -0,0 +1,16 @@ +--- +title: XPath reference +short-title: Reference +slug: Web/XPath/Reference +page-type: landing-page +--- + +{{XsltSidebar}} + +The following pages contain reference documentation for XPath. + +{{SubpagesWithSummaries}} + +## See also + +- [XPath guides](/en-US/docs/Web/XPath/Guides) diff --git a/files/en-us/web/xslt/element/number/index.md b/files/en-us/web/xslt/element/number/index.md index 434f966e3451f68..92c2c1bc9d8747f 100644 --- a/files/en-us/web/xslt/element/number/index.md +++ b/files/en-us/web/xslt/element/number/index.md @@ -36,11 +36,11 @@ None. - : Defines how levels of the source tree should be considered in generating sequential numbers. It has three valid values: `single`, `multiple`, and `any`. The default value is `single`: - `single` - - : Numbers sibling nodes sequentially, as in the items in a list. The processor goes to the first node in the [`ancestor-or-self`](/en-US/docs/Web/XPath/Axes#ancestor-or-self) axis that matches the `count` attribute and then counts that node plus all its preceding siblings (stopping when it reaches a match to the `from` attribute, if there is one) that also match the `count` attribute. If no match is found, the sequence will be an empty list. + - : Numbers sibling nodes sequentially, as in the items in a list. The processor goes to the first node in the [`ancestor-or-self`](/en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self) axis that matches the `count` attribute and then counts that node plus all its preceding siblings (stopping when it reaches a match to the `from` attribute, if there is one) that also match the `count` attribute. If no match is found, the sequence will be an empty list. - `multiple` - - : Numbers nodes as a composite sequence that reflects the hierarchic position of the node, e.g. 1.2.2.5. (The nested format can be specified with the `format` attribute, e.g. A.1.1). The processor looks at all [`ancestors`](/en-US/docs/Web/XPath/Axes#ancestor) of the current node and the current node itself, stopping when it reaches a match for the `from` attribute, if there is one. For each node in this list that matches the `count` attribute, the processor counts how many preceding matching siblings it has, and adds one for the node itself. If no match is found, the sequence will be an empty list. + - : Numbers nodes as a composite sequence that reflects the hierarchic position of the node, e.g. 1.2.2.5. (The nested format can be specified with the `format` attribute, e.g. A.1.1). The processor looks at all [`ancestors`](/en-US/docs/Web/XPath/Reference/Axes#ancestor) of the current node and the current node itself, stopping when it reaches a match for the `from` attribute, if there is one. For each node in this list that matches the `count` attribute, the processor counts how many preceding matching siblings it has, and adds one for the node itself. If no match is found, the sequence will be an empty list. - `any` (Not supported at this time.) - - : Numbers all matching nodes, regardless of level, sequentially. The [`ancestor`](/en-US/docs/Web/XPath/Axes#ancestor), [`self`](/en-US/docs/Web/XPath/Axes#self), and [`preceding`](/en-US/docs/Web/XPath/Axes#preceding) axes are all considered. The processor starts at the current node and proceeds in reverse document order, stopping if it reaches a match to any `from` attribute. If no match to the `count` attribute is found, the sequence will be an empty list. This level is not supported at this time. + - : Numbers all matching nodes, regardless of level, sequentially. The [`ancestor`](/en-US/docs/Web/XPath/Reference/Axes#ancestor), [`self`](/en-US/docs/Web/XPath/Reference/Axes#self), and [`preceding`](/en-US/docs/Web/XPath/Reference/Axes#preceding) axes are all considered. The processor starts at the current node and proceeds in reverse document order, stopping if it reaches a match to any `from` attribute. If no match to the `count` attribute is found, the sequence will be an empty list. This level is not supported at this time. - `from` - : Specifies where the numbering should start or start over. The sequence begins with the first descendant of the node that matches the `from` attribute. diff --git a/files/en-us/web/xslt/transforming_xml_with_xslt/index.md b/files/en-us/web/xslt/transforming_xml_with_xslt/index.md index ff69260a8839c0c..3ec990d8ef6a4a6 100644 --- a/files/en-us/web/xslt/transforming_xml_with_xslt/index.md +++ b/files/en-us/web/xslt/transforming_xml_with_xslt/index.md @@ -62,62 +62,62 @@ Our focus here is on the second type of stylesheet that Gecko supports: the XSLT ### Axes -[Axes](/en-US/docs/Web/XPath/Axes) - -- [ancestor](/en-US/docs/Web/XPath/Axes#ancestor) -- [ancestor-or-self](/en-US/docs/Web/XPath/Axes#ancestor-or-self) -- [attribute](/en-US/docs/Web/XPath/Axes#attribute) -- [child](/en-US/docs/Web/XPath/Axes#child) -- [descendant](/en-US/docs/Web/XPath/Axes#descendant) -- [descendant-or-self](/en-US/docs/Web/XPath/Axes#descendant-or-self) -- [following](/en-US/docs/Web/XPath/Axes#following) -- [following-sibling](/en-US/docs/Web/XPath/Axes#following-sibling) -- [namespace](/en-US/docs/Web/XPath/Axes#namespace) _(not supported)_ -- [parent](/en-US/docs/Web/XPath/Axes#parent) -- [preceding](/en-US/docs/Web/XPath/Axes#preceding) -- [preceding-sibling](/en-US/docs/Web/XPath/Axes#preceding-sibling) -- [self](/en-US/docs/Web/XPath/Axes#self) +[Axes](/en-US/docs/Web/XPath/Reference/Axes) + +- [ancestor](/en-US/docs/Web/XPath/Reference/Axes#ancestor) +- [ancestor-or-self](/en-US/docs/Web/XPath/Reference/Axes#ancestor-or-self) +- [attribute](/en-US/docs/Web/XPath/Reference/Axes#attribute) +- [child](/en-US/docs/Web/XPath/Reference/Axes#child) +- [descendant](/en-US/docs/Web/XPath/Reference/Axes#descendant) +- [descendant-or-self](/en-US/docs/Web/XPath/Reference/Axes#descendant-or-self) +- [following](/en-US/docs/Web/XPath/Reference/Axes#following) +- [following-sibling](/en-US/docs/Web/XPath/Reference/Axes#following-sibling) +- [namespace](/en-US/docs/Web/XPath/Reference/Axes#namespace) _(not supported)_ +- [parent](/en-US/docs/Web/XPath/Reference/Axes#parent) +- [preceding](/en-US/docs/Web/XPath/Reference/Axes#preceding) +- [preceding-sibling](/en-US/docs/Web/XPath/Reference/Axes#preceding-sibling) +- [self](/en-US/docs/Web/XPath/Reference/Axes#self) ### Functions -[Functions](/en-US/docs/Web/XPath/Functions) - -- [boolean()](/en-US/docs/Web/XPath/Functions/boolean) _(supported)_ -- [ceiling()](/en-US/docs/Web/XPath/Functions/ceiling) _(supported)_ -- [concat()](/en-US/docs/Web/XPath/Functions/concat) _(supported)_ -- [contains()](/en-US/docs/Web/XPath/Functions/contains) _(supported)_ -- [count()](/en-US/docs/Web/XPath/Functions/count) _(supported)_ -- [current()](/en-US/docs/Web/XPath/Functions/current) _(supported)_ -- [document()](/en-US/docs/Web/XPath/Functions/document) _(supported)_ -- [element-available()](/en-US/docs/Web/XPath/Functions/element-available) _(supported)_ -- [false()](/en-US/docs/Web/XPath/Functions/false) _(supported)_ -- [floor()](/en-US/docs/Web/XPath/Functions/floor) _(supported)_ -- [format-number()](/en-US/docs/Web/XPath/Functions/format-number) _(supported)_ -- [function-available()](/en-US/docs/Web/XPath/Functions/function-available) _(supported)_ -- [generate-id()](/en-US/docs/Web/XPath/Functions/generate-id) _(supported)_ -- [id()](/en-US/docs/Web/XPath/Functions/id) _(partially supported)_ -- [key()](/en-US/docs/Web/XPath/Functions/key) _(supported)_ -- [lang()](/en-US/docs/Web/XPath/Functions/lang) _(supported)_ -- [last()](/en-US/docs/Web/XPath/Functions/last) _(supported)_ -- [local-name()](/en-US/docs/Web/XPath/Functions/local-name) _(supported)_ -- [name()](/en-US/docs/Web/XPath/Functions/name) _(supported)_ -- [namespace-uri()](/en-US/docs/Web/XPath/Functions/namespace-uri) _(supported)_ -- [normalize-space()](/en-US/docs/Web/XPath/Functions/normalize-space) _(supported)_ -- [not()](/en-US/docs/Web/XPath/Functions/not) _(supported)_ -- [number()](/en-US/docs/Web/XPath/Functions/number) _(supported)_ -- [position()](/en-US/docs/Web/XPath/Functions/position) _(supported)_ -- [round()](/en-US/docs/Web/XPath/Functions/round) _(supported)_ -- [starts-with()](/en-US/docs/Web/XPath/Functions/starts-with) _(supported)_ -- [string()](/en-US/docs/Web/XPath/Functions/string) _(supported)_ -- [string-length()](/en-US/docs/Web/XPath/Functions/string-length) _(supported)_ -- [substring()](/en-US/docs/Web/XPath/Functions/substring) _(supported)_ -- [substring-after()](/en-US/docs/Web/XPath/Functions/substring-after) _(supported)_ -- [substring-before()](/en-US/docs/Web/XPath/Functions/substring-before) _(supported)_ -- [sum()](/en-US/docs/Web/XPath/Functions/sum) _(supported)_ -- [system-property()](/en-US/docs/Web/XPath/Functions/system-property) _(supported)_ -- [translate()](/en-US/docs/Web/XPath/Functions/translate) _(supported)_ -- [true()](/en-US/docs/Web/XPath/Functions/true) _(supported)_ -- [unparsed-entity-url()](/en-US/docs/Web/XPath/Functions/unparsed-entity-url) _(not supported)_ +[Functions](/en-US/docs/Web/XPath/Reference/Functions) + +- [boolean()](/en-US/docs/Web/XPath/Reference/Functions/boolean) _(supported)_ +- [ceiling()](/en-US/docs/Web/XPath/Reference/Functions/ceiling) _(supported)_ +- [concat()](/en-US/docs/Web/XPath/Reference/Functions/concat) _(supported)_ +- [contains()](/en-US/docs/Web/XPath/Reference/Functions/contains) _(supported)_ +- [count()](/en-US/docs/Web/XPath/Reference/Functions/count) _(supported)_ +- [current()](/en-US/docs/Web/XPath/Reference/Functions/current) _(supported)_ +- [document()](/en-US/docs/Web/XPath/Reference/Functions/document) _(supported)_ +- [element-available()](/en-US/docs/Web/XPath/Reference/Functions/element-available) _(supported)_ +- [false()](/en-US/docs/Web/XPath/Reference/Functions/false) _(supported)_ +- [floor()](/en-US/docs/Web/XPath/Reference/Functions/floor) _(supported)_ +- [format-number()](/en-US/docs/Web/XPath/Reference/Functions/format-number) _(supported)_ +- [function-available()](/en-US/docs/Web/XPath/Reference/Functions/function-available) _(supported)_ +- [generate-id()](/en-US/docs/Web/XPath/Reference/Functions/generate-id) _(supported)_ +- [id()](/en-US/docs/Web/XPath/Reference/Functions/id) _(partially supported)_ +- [key()](/en-US/docs/Web/XPath/Reference/Functions/key) _(supported)_ +- [lang()](/en-US/docs/Web/XPath/Reference/Functions/lang) _(supported)_ +- [last()](/en-US/docs/Web/XPath/Reference/Functions/last) _(supported)_ +- [local-name()](/en-US/docs/Web/XPath/Reference/Functions/local-name) _(supported)_ +- [name()](/en-US/docs/Web/XPath/Reference/Functions/name) _(supported)_ +- [namespace-uri()](/en-US/docs/Web/XPath/Reference/Functions/namespace-uri) _(supported)_ +- [normalize-space()](/en-US/docs/Web/XPath/Reference/Functions/normalize-space) _(supported)_ +- [not()](/en-US/docs/Web/XPath/Reference/Functions/not) _(supported)_ +- [number()](/en-US/docs/Web/XPath/Reference/Functions/number) _(supported)_ +- [position()](/en-US/docs/Web/XPath/Reference/Functions/position) _(supported)_ +- [round()](/en-US/docs/Web/XPath/Reference/Functions/round) _(supported)_ +- [starts-with()](/en-US/docs/Web/XPath/Reference/Functions/starts-with) _(supported)_ +- [string()](/en-US/docs/Web/XPath/Reference/Functions/string) _(supported)_ +- [string-length()](/en-US/docs/Web/XPath/Reference/Functions/string-length) _(supported)_ +- [substring()](/en-US/docs/Web/XPath/Reference/Functions/substring) _(supported)_ +- [substring-after()](/en-US/docs/Web/XPath/Reference/Functions/substring-after) _(supported)_ +- [substring-before()](/en-US/docs/Web/XPath/Reference/Functions/substring-before) _(supported)_ +- [sum()](/en-US/docs/Web/XPath/Reference/Functions/sum) _(supported)_ +- [system-property()](/en-US/docs/Web/XPath/Reference/Functions/system-property) _(supported)_ +- [translate()](/en-US/docs/Web/XPath/Reference/Functions/translate) _(supported)_ +- [true()](/en-US/docs/Web/XPath/Reference/Functions/true) _(supported)_ +- [unparsed-entity-url()](/en-US/docs/Web/XPath/Reference/Functions/unparsed-entity-url) _(not supported)_ ## For Further Reading diff --git a/files/sidebars/xsltsidebar.yaml b/files/sidebars/xsltsidebar.yaml index 62b41daf8e05e23..b27ac0873853518 100644 --- a/files/sidebars/xsltsidebar.yaml +++ b/files/sidebars/xsltsidebar.yaml @@ -14,8 +14,18 @@ sidebar: - type: listSubPages path: /Web/EXSLT - type: section - link: /Web/XPath/Functions + link: /Web/XPath - type: listSubPages - path: /Web/XPath/Functions - - type: section - link: /Web/XPath/Axes + path: /Web/XPath/Guides + title: Guides + includeParent: true + - title: Reference + link: /Web/XPath/Reference + - children: + - type: listSubPages + path: /Web/XPath/Reference/Functions + title: Functions + details: closed + includeParent: true + code: true + - /Web/XPath/Reference/Axes diff --git a/front-matter-config.json b/front-matter-config.json index 314f1f1d38105b8..c75bb2c2f2c44eb 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -518,7 +518,7 @@ "then": { "properties": { "page-type": { - "enum": ["guide", "landing-page", "xpath-function"] + "enum": ["guide", "landing-page", "xpath-function", "reference"] } } }, From 8e070e48a7bbe02d560e5673f6e412444da2eb66 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 11:41:32 +0100 Subject: [PATCH 02/11] chore: remove support note about XPath --- files/en-us/web/xpath/index.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index cf35e87a628e1e5..175eae90f4c49a2 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -12,10 +12,6 @@ XPath is mainly used in [XSLT](/en-US/docs/Web/XSLT), but can also be used as a XPath uses a path notation (as in URLs) for navigating through the hierarchical structure of an XML document. It uses a non-XML syntax so that it can be used in URIs and XML attribute values. -> [!NOTE] -> Support for XPath varies; it's supported reasonably well in Firefox, while other browsers implement it to a lesser extent, if at all. -> If you need a polyfill, you may consider [js-xpath](https://pilotfiber.dl.sourceforge.net/project/js-xpath/js-xpath/1.0.0/xpath.js) or [wicked-good-xpath](https://github.com/google/wicked-good-xpath). - ## Guides - [Introduction to using XPath in JavaScript](/en-US/docs/Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript) From 6ae819affc7ca5f2c79341db14bcdf8c1eaaeae1 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 11:49:54 +0100 Subject: [PATCH 03/11] chore: use front matter for sidebar --- .../web/xpath/guides/comparison_with_css_selectors/index.md | 4 +--- files/en-us/web/xpath/guides/index.md | 2 -- .../introduction_to_using_xpath_in_javascript/index.md | 2 -- files/en-us/web/xpath/guides/snippets/index.md | 2 -- files/en-us/web/xpath/index.md | 2 -- files/en-us/web/xpath/reference/axes/index.md | 2 -- files/en-us/web/xpath/reference/functions/boolean/index.md | 2 -- files/en-us/web/xpath/reference/functions/ceiling/index.md | 2 -- files/en-us/web/xpath/reference/functions/choose/index.md | 2 -- files/en-us/web/xpath/reference/functions/concat/index.md | 2 -- files/en-us/web/xpath/reference/functions/contains/index.md | 2 -- files/en-us/web/xpath/reference/functions/count/index.md | 2 -- files/en-us/web/xpath/reference/functions/current/index.md | 2 -- files/en-us/web/xpath/reference/functions/document/index.md | 2 -- .../web/xpath/reference/functions/element-available/index.md | 2 -- files/en-us/web/xpath/reference/functions/false/index.md | 2 -- files/en-us/web/xpath/reference/functions/floor/index.md | 2 -- .../web/xpath/reference/functions/format-number/index.md | 2 -- .../xpath/reference/functions/function-available/index.md | 2 -- .../en-us/web/xpath/reference/functions/generate-id/index.md | 2 -- files/en-us/web/xpath/reference/functions/id/index.md | 2 -- files/en-us/web/xpath/reference/functions/index.md | 2 -- files/en-us/web/xpath/reference/functions/key/index.md | 2 -- files/en-us/web/xpath/reference/functions/lang/index.md | 2 -- files/en-us/web/xpath/reference/functions/last/index.md | 2 -- .../en-us/web/xpath/reference/functions/local-name/index.md | 2 -- files/en-us/web/xpath/reference/functions/name/index.md | 2 -- .../web/xpath/reference/functions/namespace-uri/index.md | 2 -- .../web/xpath/reference/functions/normalize-space/index.md | 2 -- files/en-us/web/xpath/reference/functions/not/index.md | 2 -- files/en-us/web/xpath/reference/functions/number/index.md | 2 -- files/en-us/web/xpath/reference/functions/position/index.md | 2 -- files/en-us/web/xpath/reference/functions/round/index.md | 2 -- .../en-us/web/xpath/reference/functions/starts-with/index.md | 2 -- .../web/xpath/reference/functions/string-length/index.md | 2 -- files/en-us/web/xpath/reference/functions/string/index.md | 2 -- .../web/xpath/reference/functions/substring-after/index.md | 2 -- .../web/xpath/reference/functions/substring-before/index.md | 2 -- files/en-us/web/xpath/reference/functions/substring/index.md | 2 -- files/en-us/web/xpath/reference/functions/sum/index.md | 2 -- .../web/xpath/reference/functions/system-property/index.md | 2 -- files/en-us/web/xpath/reference/functions/translate/index.md | 2 -- files/en-us/web/xpath/reference/functions/true/index.md | 2 -- .../xpath/reference/functions/unparsed-entity-url/index.md | 2 -- files/en-us/web/xpath/reference/index.md | 2 -- front-matter-config.json | 5 +++++ 46 files changed, 6 insertions(+), 91 deletions(-) diff --git a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md index 721195335253908..0b066642353c413 100644 --- a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md +++ b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md @@ -5,9 +5,7 @@ slug: Web/XPath/Guides/Comparison_with_CSS_selectors page-type: guide --- -{{XsltSidebar}} - -This article seeks to document the difference between CSS Selectors and XPath for web developers to be able to better choose the right tool for the right job. +This article seeks to document the difference between CSS selectors and XPath for web developers to be able to better choose the right tool for the right job. | [XPath feature](/en-US/docs/Web/XPath) | [CSS equivalent](/en-US/docs/Web/CSS/CSS_selectors) | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | diff --git a/files/en-us/web/xpath/guides/index.md b/files/en-us/web/xpath/guides/index.md index 8d2be7b0a3c2b66..929ff555d75d9ad 100644 --- a/files/en-us/web/xpath/guides/index.md +++ b/files/en-us/web/xpath/guides/index.md @@ -5,8 +5,6 @@ slug: Web/XPath/Guides page-type: landing-page --- -{{XsltSidebar}} - This page lists guides for XPath. They're intended to help you understand what kinds of things are possible using XPath in JavaScript, and highlight the similarities with CSS selectors. diff --git a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md index e16e48d2ed4052b..48b756aafd9f33d 100644 --- a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md +++ b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md @@ -5,8 +5,6 @@ slug: Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript page-type: guide --- -{{XsltSidebar}} - This document describes the interface for using [XPath](/en-US/docs/Web/XPath) in JavaScript. The main interface to using XPath is the [evaluate](/en-US/docs/Web/API/Document/evaluate) function of the [document](/en-US/docs/Web/API/Document) object. diff --git a/files/en-us/web/xpath/guides/snippets/index.md b/files/en-us/web/xpath/guides/snippets/index.md index 0836561e4c1da0a..59bfb48a64e18f9 100644 --- a/files/en-us/web/xpath/guides/snippets/index.md +++ b/files/en-us/web/xpath/guides/snippets/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Guides/Snippets page-type: guide --- -{{XsltSidebar}} - This article provides some XPath code snippets — simple examples of how to a few simple **utility functions** based on standard interfaces from the [DOM Level 3 XPath specification](https://www.w3.org/TR/DOM-Level-3-XPath/) that expose XPath functionality to JavaScript code. The snippets are functions you can use in the real world in your own code. ### Node-specific evaluator function diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index 175eae90f4c49a2..af4a535ec5b39f3 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -4,8 +4,6 @@ slug: Web/XPath page-type: landing-page --- -{{XsltSidebar}} - XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an [XML](/en-US/docs/Web/XML/XML_introduction) document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not. XPath is mainly used in [XSLT](/en-US/docs/Web/XSLT), but can also be used as a much more powerful way of navigating through the [DOM](/en-US/docs/Web/API/Document_Object_Model) of any XML-like language document using {{DOMxRef("XPathExpression")}}, such as [HTML](/en-US/docs/Web/HTML) and [SVG](/en-US/docs/Web/SVG), instead of relying on the {{DOMxRef("Document.getElementById()")}} or {{DOMxRef("Document.querySelectorAll()")}} methods, the {{DOMxRef("Node.childNodes")}} properties, and other DOM Core features. diff --git a/files/en-us/web/xpath/reference/axes/index.md b/files/en-us/web/xpath/reference/axes/index.md index bc59898d9934e80..700447fae72a251 100644 --- a/files/en-us/web/xpath/reference/axes/index.md +++ b/files/en-us/web/xpath/reference/axes/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Axes page-type: landing-page --- -{{XsltSidebar}} - There are thirteen different axes in the [XPath](/en-US/docs/Web/XPath) specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree. For further information on using XPath expressions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT#for_further_reading) section at the end of [Transforming XML with XSLT](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) document. Also see the ['axes' section in the xpath spec](https://www.w3.org/TR/xpath-30/#axes). diff --git a/files/en-us/web/xpath/reference/functions/boolean/index.md b/files/en-us/web/xpath/reference/functions/boolean/index.md index 5c31100765f1864..1b75c359b216a4c 100644 --- a/files/en-us/web/xpath/reference/functions/boolean/index.md +++ b/files/en-us/web/xpath/reference/functions/boolean/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/boolean page-type: xpath-function --- -{{XsltSidebar}} - The `boolean` function evaluates an expression and returns true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/ceiling/index.md b/files/en-us/web/xpath/reference/functions/ceiling/index.md index 6e82da147b67d01..c4fefb6a2646cd9 100644 --- a/files/en-us/web/xpath/reference/functions/ceiling/index.md +++ b/files/en-us/web/xpath/reference/functions/ceiling/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/ceiling page-type: xpath-function --- -{{XsltSidebar}} - The `ceiling` function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/choose/index.md b/files/en-us/web/xpath/reference/functions/choose/index.md index 62c0d0bcba6dd46..34f610678c66ae4 100644 --- a/files/en-us/web/xpath/reference/functions/choose/index.md +++ b/files/en-us/web/xpath/reference/functions/choose/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/choose page-type: xpath-function --- -{{XsltSidebar}} - The `choose` function returns one of the specified objects based on a boolean parameter. > [!NOTE] diff --git a/files/en-us/web/xpath/reference/functions/concat/index.md b/files/en-us/web/xpath/reference/functions/concat/index.md index 43167088761a991..745ac124dc3155b 100644 --- a/files/en-us/web/xpath/reference/functions/concat/index.md +++ b/files/en-us/web/xpath/reference/functions/concat/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/concat page-type: xpath-function --- -{{XsltSidebar}} - The `concat` function concatenates two or more strings and returns the resulting string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/contains/index.md b/files/en-us/web/xpath/reference/functions/contains/index.md index 06bb9081e6f0c16..9a2a07cac95ea4c 100644 --- a/files/en-us/web/xpath/reference/functions/contains/index.md +++ b/files/en-us/web/xpath/reference/functions/contains/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/contains page-type: xpath-function --- -{{XsltSidebar}} - The `contains` function determines whether the first argument string contains the second argument string and returns boolean true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/count/index.md b/files/en-us/web/xpath/reference/functions/count/index.md index 2a7beaa7f750999..e878ba0908236ca 100644 --- a/files/en-us/web/xpath/reference/functions/count/index.md +++ b/files/en-us/web/xpath/reference/functions/count/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/count page-type: xpath-function --- -{{XsltSidebar}} - The `count` function counts the number of nodes in a node-set and returns an integer. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/current/index.md b/files/en-us/web/xpath/reference/functions/current/index.md index c88084ff965b8cc..db6c9abac4faff7 100644 --- a/files/en-us/web/xpath/reference/functions/current/index.md +++ b/files/en-us/web/xpath/reference/functions/current/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/current page-type: xpath-function --- -{{XsltSidebar}} - The `current` function can be used to get the context node in an XSLT instruction. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/document/index.md b/files/en-us/web/xpath/reference/functions/document/index.md index 77b71a65a9139ca..a6b2a59cad9da47 100644 --- a/files/en-us/web/xpath/reference/functions/document/index.md +++ b/files/en-us/web/xpath/reference/functions/document/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/document page-type: xpath-function --- -{{XsltSidebar}} - The `document` finds a node-set in an external document, or multiple external documents, and returns the resulting node-set. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/element-available/index.md b/files/en-us/web/xpath/reference/functions/element-available/index.md index 5c4005b32942e79..f9f4b2cee67efd1 100644 --- a/files/en-us/web/xpath/reference/functions/element-available/index.md +++ b/files/en-us/web/xpath/reference/functions/element-available/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/element-available page-type: xpath-function --- -{{XsltSidebar}} - The `element-available` function determines if an element is available and returns true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/false/index.md b/files/en-us/web/xpath/reference/functions/false/index.md index c9639cbeb22fd81..495e21da6b0aa1a 100644 --- a/files/en-us/web/xpath/reference/functions/false/index.md +++ b/files/en-us/web/xpath/reference/functions/false/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/false page-type: xpath-function --- -{{XsltSidebar}} - The `false` function returns boolean false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/floor/index.md b/files/en-us/web/xpath/reference/functions/floor/index.md index d4c512768479fa4..f5ca8c2b14d893d 100644 --- a/files/en-us/web/xpath/reference/functions/floor/index.md +++ b/files/en-us/web/xpath/reference/functions/floor/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/floor page-type: xpath-function --- -{{XsltSidebar}} - The `floor` function evaluates a decimal number and returns the largest integer less than or equal to the decimal number. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/format-number/index.md b/files/en-us/web/xpath/reference/functions/format-number/index.md index c1b36cfd601b511..8f41c2557197d9d 100644 --- a/files/en-us/web/xpath/reference/functions/format-number/index.md +++ b/files/en-us/web/xpath/reference/functions/format-number/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/format-number page-type: xpath-function --- -{{XsltSidebar}} - The `format-number` function evaluates a number and returns a string representing the number in a given format. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/function-available/index.md b/files/en-us/web/xpath/reference/functions/function-available/index.md index 9161a9940f64c8f..6fcd13fa6a9d601 100644 --- a/files/en-us/web/xpath/reference/functions/function-available/index.md +++ b/files/en-us/web/xpath/reference/functions/function-available/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/function-available page-type: xpath-function --- -{{XsltSidebar}} - The `function-available` function determines if a given function is available and returns boolean true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/generate-id/index.md b/files/en-us/web/xpath/reference/functions/generate-id/index.md index 1e45c9cbfee0f74..0e0a24a011fcad4 100644 --- a/files/en-us/web/xpath/reference/functions/generate-id/index.md +++ b/files/en-us/web/xpath/reference/functions/generate-id/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/generate-id page-type: xpath-function --- -{{XsltSidebar}} - The `generate-id` function generates a unique id for the first node in a given node-set and returns a string containing that id. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/id/index.md b/files/en-us/web/xpath/reference/functions/id/index.md index d5530e804d9394c..929ea4699af8ed8 100644 --- a/files/en-us/web/xpath/reference/functions/id/index.md +++ b/files/en-us/web/xpath/reference/functions/id/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/id page-type: xpath-function --- -{{XsltSidebar}} - The `id` function finds nodes matching the given ids and returns a node-set containing the identified nodes. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/index.md b/files/en-us/web/xpath/reference/functions/index.md index b4084478d10b82c..9ed01fd6cfa71dd 100644 --- a/files/en-us/web/xpath/reference/functions/index.md +++ b/files/en-us/web/xpath/reference/functions/index.md @@ -5,8 +5,6 @@ slug: Web/XPath/Reference/Functions page-type: reference --- -{{XsltSidebar}} - The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. {{SubpagesWithSummaries}} diff --git a/files/en-us/web/xpath/reference/functions/key/index.md b/files/en-us/web/xpath/reference/functions/key/index.md index 5893904b3372d09..25bf5567011dce2 100644 --- a/files/en-us/web/xpath/reference/functions/key/index.md +++ b/files/en-us/web/xpath/reference/functions/key/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/key page-type: xpath-function --- -{{XsltSidebar}} - The `key` function returns a node-set of nodes that have the given value for the given key. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/lang/index.md b/files/en-us/web/xpath/reference/functions/lang/index.md index c490a8d53aa6da4..3c5ee7ee41a962f 100644 --- a/files/en-us/web/xpath/reference/functions/lang/index.md +++ b/files/en-us/web/xpath/reference/functions/lang/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/lang page-type: xpath-function --- -{{XsltSidebar}} - The `lang` function determines whether the context node matches the given language and returns boolean true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/last/index.md b/files/en-us/web/xpath/reference/functions/last/index.md index 9bc84c37bd12f1d..037169d01d0a6cc 100644 --- a/files/en-us/web/xpath/reference/functions/last/index.md +++ b/files/en-us/web/xpath/reference/functions/last/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/last page-type: xpath-function --- -{{XsltSidebar}} - The `last` function returns a number equal to the context size from the expression evaluation context. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/local-name/index.md b/files/en-us/web/xpath/reference/functions/local-name/index.md index cd0b94ce5e23f65..84e957e872e5ff7 100644 --- a/files/en-us/web/xpath/reference/functions/local-name/index.md +++ b/files/en-us/web/xpath/reference/functions/local-name/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/local-name page-type: xpath-function --- -{{XsltSidebar}} - The `local-name` function returns a string representing the local name of the first node in a given node-set. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/name/index.md b/files/en-us/web/xpath/reference/functions/name/index.md index 14759a2558ada5f..56ea86a9e32dfef 100644 --- a/files/en-us/web/xpath/reference/functions/name/index.md +++ b/files/en-us/web/xpath/reference/functions/name/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/name page-type: xpath-function --- -{{XsltSidebar}} - The `name` function returns a string representing the QName of the first node in a given node-set. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md index 2cc7e46f5d268e6..3d9336f510b6c93 100644 --- a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md +++ b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/namespace-uri page-type: xpath-function --- -{{XsltSidebar}} - The `namespace-uri` function returns a string representing the namespace URI of the first node in a given node-set. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/normalize-space/index.md b/files/en-us/web/xpath/reference/functions/normalize-space/index.md index d47ab3c628139d5..5f40f2669139172 100644 --- a/files/en-us/web/xpath/reference/functions/normalize-space/index.md +++ b/files/en-us/web/xpath/reference/functions/normalize-space/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/normalize-space page-type: xpath-function --- -{{XsltSidebar}} - The `normalize-space` function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/not/index.md b/files/en-us/web/xpath/reference/functions/not/index.md index 54cc3f9111dceeb..4d623a77fb7f6c7 100644 --- a/files/en-us/web/xpath/reference/functions/not/index.md +++ b/files/en-us/web/xpath/reference/functions/not/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/not page-type: xpath-function --- -{{XsltSidebar}} - The `not` function evaluates a boolean expression and returns the opposite value. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/number/index.md b/files/en-us/web/xpath/reference/functions/number/index.md index d66debdda70528a..8e1d43e86cb328e 100644 --- a/files/en-us/web/xpath/reference/functions/number/index.md +++ b/files/en-us/web/xpath/reference/functions/number/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/number page-type: xpath-function --- -{{XsltSidebar}} - The `number` function converts an object to a number and returns the number. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/position/index.md b/files/en-us/web/xpath/reference/functions/position/index.md index 075ee8af7faa5ad..f6a85b799683abb 100644 --- a/files/en-us/web/xpath/reference/functions/position/index.md +++ b/files/en-us/web/xpath/reference/functions/position/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/position page-type: xpath-function --- -{{XsltSidebar}} - The `position` function returns a number equal to the context position from the expression evaluation context. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/round/index.md b/files/en-us/web/xpath/reference/functions/round/index.md index 183535c11b3fd49..f1727913209f2be 100644 --- a/files/en-us/web/xpath/reference/functions/round/index.md +++ b/files/en-us/web/xpath/reference/functions/round/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/round page-type: xpath-function --- -{{XsltSidebar}} - The `round` function returns a number that is the nearest integer to the given number. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/starts-with/index.md b/files/en-us/web/xpath/reference/functions/starts-with/index.md index 9f6cb578a656ba2..89a8cf3e54f7e07 100644 --- a/files/en-us/web/xpath/reference/functions/starts-with/index.md +++ b/files/en-us/web/xpath/reference/functions/starts-with/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/starts-with page-type: xpath-function --- -{{XsltSidebar}} - The `starts-with` checks whether the first string starts with the second string and returns true or false. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/string-length/index.md b/files/en-us/web/xpath/reference/functions/string-length/index.md index 879732f234ec391..0b5ab129eec821c 100644 --- a/files/en-us/web/xpath/reference/functions/string-length/index.md +++ b/files/en-us/web/xpath/reference/functions/string-length/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/string-length page-type: xpath-function --- -{{XsltSidebar}} - The `string-length` function returns a number equal to the number of characters in a given string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/string/index.md b/files/en-us/web/xpath/reference/functions/string/index.md index 5467af8714ff554..6d1a9c4906aea67 100644 --- a/files/en-us/web/xpath/reference/functions/string/index.md +++ b/files/en-us/web/xpath/reference/functions/string/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/string page-type: xpath-function --- -{{XsltSidebar}} - The `string` function converts the given argument to a string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/substring-after/index.md b/files/en-us/web/xpath/reference/functions/substring-after/index.md index e910694694c7451..113fcc19719a1d0 100644 --- a/files/en-us/web/xpath/reference/functions/substring-after/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-after/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/substring-after page-type: xpath-function --- -{{XsltSidebar}} - The `substring-after` function returns a string that is the rest of a given string after a given substring. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/substring-before/index.md b/files/en-us/web/xpath/reference/functions/substring-before/index.md index e8f929adf78b22e..356c51575fd84bd 100644 --- a/files/en-us/web/xpath/reference/functions/substring-before/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-before/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/substring-before page-type: xpath-function --- -{{XsltSidebar}} - The `substring-before` function returns a string that is the part of a given string before a given substring. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/substring/index.md b/files/en-us/web/xpath/reference/functions/substring/index.md index 4a4ef26960e9502..49f53b87d6fc2b3 100644 --- a/files/en-us/web/xpath/reference/functions/substring/index.md +++ b/files/en-us/web/xpath/reference/functions/substring/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/substring page-type: xpath-function --- -{{XsltSidebar}} - The `substring` function returns a part of a given string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/sum/index.md b/files/en-us/web/xpath/reference/functions/sum/index.md index d790adea8140eef..ab2a501632fb37c 100644 --- a/files/en-us/web/xpath/reference/functions/sum/index.md +++ b/files/en-us/web/xpath/reference/functions/sum/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/sum page-type: xpath-function --- -{{XsltSidebar}} - The `sum` function returns a number that is the sum of the numeric values of each node in a given node-set. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/system-property/index.md b/files/en-us/web/xpath/reference/functions/system-property/index.md index 3b6087349d24dc3..cca6b032fab7fe0 100644 --- a/files/en-us/web/xpath/reference/functions/system-property/index.md +++ b/files/en-us/web/xpath/reference/functions/system-property/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/system-property page-type: xpath-function --- -{{XsltSidebar}} - The `system-property` function returns an object representing the given system-property. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/translate/index.md b/files/en-us/web/xpath/reference/functions/translate/index.md index dfaaa25072ff0cc..704f0869e1927c1 100644 --- a/files/en-us/web/xpath/reference/functions/translate/index.md +++ b/files/en-us/web/xpath/reference/functions/translate/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/translate page-type: xpath-function --- -{{XsltSidebar}} - The `translate` function evaluates a string and a set of characters to translate and returns the translated string. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/true/index.md b/files/en-us/web/xpath/reference/functions/true/index.md index b1a7d64ab801db3..57d2ef10390e82d 100644 --- a/files/en-us/web/xpath/reference/functions/true/index.md +++ b/files/en-us/web/xpath/reference/functions/true/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/true page-type: xpath-function --- -{{XsltSidebar}} - The `true` function returns a boolean value of true. ## Syntax diff --git a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md index 1b0b9d23c5e215c..848243f8ea1fd4a 100644 --- a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md +++ b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md @@ -4,8 +4,6 @@ slug: Web/XPath/Reference/Functions/unparsed-entity-url page-type: xpath-function --- -{{XsltSidebar}} - The `unparsed-entity-url()` function returns the URI of the unparsed entity with the given name. This is non-XML data referenced in the DTD of the source document. ## Syntax diff --git a/files/en-us/web/xpath/reference/index.md b/files/en-us/web/xpath/reference/index.md index 99d0fea53d85769..7e2beb3d2b55939 100644 --- a/files/en-us/web/xpath/reference/index.md +++ b/files/en-us/web/xpath/reference/index.md @@ -5,8 +5,6 @@ slug: Web/XPath/Reference page-type: landing-page --- -{{XsltSidebar}} - The following pages contain reference documentation for XPath. {{SubpagesWithSummaries}} diff --git a/front-matter-config.json b/front-matter-config.json index c75bb2c2f2c44eb..1435a61dc4d9022 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -23,6 +23,11 @@ "description": "URL path of the page", "type": "string" }, + "sidebar": { + "title": "sidebar", + "description": "A YAML sidebar defined in /files/en-us/sidebars", + "type": "string" + }, "page-type": { "title": "Page Type", "description": "Type of the page", From 889be487a5060dc1133a589c56f5870eda0e47c0 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 11:58:28 +0100 Subject: [PATCH 04/11] chore: use front matter for sidebar --- front-matter-config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front-matter-config.json b/front-matter-config.json index 1435a61dc4d9022..7363ad246e09a5d 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -524,7 +524,8 @@ "properties": { "page-type": { "enum": ["guide", "landing-page", "xpath-function", "reference"] - } + }, + "sidebar": { "enum": ["xsltsidebar"] } } }, "else": false From 08502a541b4e3a1af497f49455759b3d427e9039 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 12:07:11 +0100 Subject: [PATCH 05/11] chore: use front matter for sidebar --- front-matter-config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-matter-config.json b/front-matter-config.json index 7363ad246e09a5d..f9dda9af2b8f04d 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -525,7 +525,7 @@ "page-type": { "enum": ["guide", "landing-page", "xpath-function", "reference"] }, - "sidebar": { "enum": ["xsltsidebar"] } + "sidebar": true } }, "else": false From 3de835ed9d61f2e14cd62d68af406765b6843faa Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 12:27:01 +0100 Subject: [PATCH 06/11] chore: use front matter for sidebar --- .lintstagedrc.js | 26 ++++++++----------- .../comparison_with_css_selectors/index.md | 1 + files/en-us/web/xpath/guides/index.md | 1 + .../index.md | 1 + .../en-us/web/xpath/guides/snippets/index.md | 1 + files/en-us/web/xpath/index.md | 1 + files/en-us/web/xpath/reference/axes/index.md | 1 + .../reference/functions/boolean/index.md | 1 + .../reference/functions/ceiling/index.md | 1 + .../xpath/reference/functions/choose/index.md | 1 + .../xpath/reference/functions/concat/index.md | 1 + .../reference/functions/contains/index.md | 1 + .../xpath/reference/functions/count/index.md | 1 + .../reference/functions/current/index.md | 1 + .../reference/functions/document/index.md | 1 + .../functions/element-available/index.md | 1 + .../xpath/reference/functions/false/index.md | 1 + .../xpath/reference/functions/floor/index.md | 1 + .../functions/format-number/index.md | 1 + .../functions/function-available/index.md | 1 + .../reference/functions/generate-id/index.md | 1 + .../web/xpath/reference/functions/id/index.md | 1 + .../web/xpath/reference/functions/index.md | 1 + .../xpath/reference/functions/key/index.md | 1 + .../xpath/reference/functions/lang/index.md | 1 + .../xpath/reference/functions/last/index.md | 1 + .../reference/functions/local-name/index.md | 1 + .../xpath/reference/functions/name/index.md | 1 + .../functions/namespace-uri/index.md | 1 + .../functions/normalize-space/index.md | 1 + .../xpath/reference/functions/not/index.md | 1 + .../xpath/reference/functions/number/index.md | 1 + .../reference/functions/position/index.md | 1 + .../xpath/reference/functions/round/index.md | 1 + .../reference/functions/starts-with/index.md | 1 + .../functions/string-length/index.md | 1 + .../xpath/reference/functions/string/index.md | 1 + .../functions/substring-after/index.md | 1 + .../functions/substring-before/index.md | 1 + .../reference/functions/substring/index.md | 1 + .../xpath/reference/functions/sum/index.md | 1 + .../functions/system-property/index.md | 1 + .../reference/functions/translate/index.md | 1 + .../xpath/reference/functions/true/index.md | 1 + .../functions/unparsed-entity-url/index.md | 1 + files/en-us/web/xpath/reference/index.md | 1 + front-matter-config.json | 3 +-- 47 files changed, 57 insertions(+), 17 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 2beaa84d3643b9e..b5cdcb8b0aa48bc 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,23 +1,19 @@ export default { - "files/en-us/_redirects.txt": (filenames) => [ + "files/en-us/_redirects.txt": () => [ `yarn content fix-redirects`, `yarn content:legacy validate-redirects en-us --strict`, ], - "!*.md": (filenames) => [ - `prettier --ignore-unknown --write ${filenames.join(" ")}`, - ], - "*.md": (filenames) => [ - `markdownlint-cli2 --fix ${filenames.join(" ")}`, - `node scripts/front-matter_linter.js --fix true ${filenames.join(" ")}`, + "!*.md": (files) => [`prettier --ignore-unknown --write ${files.join(" ")}`], + "*.md": (files) => [ + `markdownlint-cli2 --fix ${files.join(" ")}`, + `node scripts/front-matter_linter.js ${files.join(" ")}`, `node scripts/update-moved-file-links.js --check`, - `prettier --write ${filenames.join(" ")}`, - ], - "tests/**/*.*": (filenames) => [`yarn test:front-matter-linter`], - "*.{svg,png,jpeg,jpg,gif}": (filenames) => [ - `yarn filecheck ${filenames.join(" ")}`, + `prettier --write ${files.join(" ")}`, ], - "*": (filenames) => [`node scripts/log-url-issues.js`], - ".vscode/dictionaries/*.txt": (filenames) => [ - `node scripts/sort_and_unique_file_lines.js ${filenames.join(" ")}`, + "tests/**/*.*": () => [`yarn test:front-matter-linter`], + "*.{svg,png,jpeg,jpg,gif}": (files) => [`yarn filecheck ${files.join(" ")}`], + "*": () => [`node scripts/log-url-issues.js`], + ".vscode/dictionaries/*.txt": (files) => [ + `node scripts/sort_and_unique_file_lines.js ${files.join(" ")}`, ], }; diff --git a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md index 0b066642353c413..1f5ff36a9c2d227 100644 --- a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md +++ b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md @@ -3,6 +3,7 @@ title: Comparison of CSS selectors and XPath short-title: CSS selectors and XPath slug: Web/XPath/Guides/Comparison_with_CSS_selectors page-type: guide +sidebar: "xsltsidebar" --- This article seeks to document the difference between CSS selectors and XPath for web developers to be able to better choose the right tool for the right job. diff --git a/files/en-us/web/xpath/guides/index.md b/files/en-us/web/xpath/guides/index.md index 929ff555d75d9ad..ecae8dc18ec56c0 100644 --- a/files/en-us/web/xpath/guides/index.md +++ b/files/en-us/web/xpath/guides/index.md @@ -3,6 +3,7 @@ title: XPath guides short-title: Guides slug: Web/XPath/Guides page-type: landing-page +sidebar: "xsltsidebar" --- This page lists guides for XPath. diff --git a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md index 48b756aafd9f33d..40ad63bb94ee55a 100644 --- a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md +++ b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md @@ -3,6 +3,7 @@ title: Introduction to using XPath in JavaScript short-title: Using XPath in JavaScript slug: Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript page-type: guide +sidebar: "xsltsidebar" --- This document describes the interface for using [XPath](/en-US/docs/Web/XPath) in JavaScript. diff --git a/files/en-us/web/xpath/guides/snippets/index.md b/files/en-us/web/xpath/guides/snippets/index.md index 59bfb48a64e18f9..7c98de6b58d05f4 100644 --- a/files/en-us/web/xpath/guides/snippets/index.md +++ b/files/en-us/web/xpath/guides/snippets/index.md @@ -2,6 +2,7 @@ title: XPath snippets slug: Web/XPath/Guides/Snippets page-type: guide +sidebar: "xsltsidebar" --- This article provides some XPath code snippets — simple examples of how to a few simple **utility functions** based on standard interfaces from the [DOM Level 3 XPath specification](https://www.w3.org/TR/DOM-Level-3-XPath/) that expose XPath functionality to JavaScript code. The snippets are functions you can use in the real world in your own code. diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index af4a535ec5b39f3..e7f544211b440db 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -2,6 +2,7 @@ title: XPath slug: Web/XPath page-type: landing-page +sidebar: "xsltsidebar" --- XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an [XML](/en-US/docs/Web/XML/XML_introduction) document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not. diff --git a/files/en-us/web/xpath/reference/axes/index.md b/files/en-us/web/xpath/reference/axes/index.md index 700447fae72a251..da7ce1deac48eb0 100644 --- a/files/en-us/web/xpath/reference/axes/index.md +++ b/files/en-us/web/xpath/reference/axes/index.md @@ -2,6 +2,7 @@ title: Axes slug: Web/XPath/Reference/Axes page-type: landing-page +sidebar: "xsltsidebar" --- There are thirteen different axes in the [XPath](/en-US/docs/Web/XPath) specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree. diff --git a/files/en-us/web/xpath/reference/functions/boolean/index.md b/files/en-us/web/xpath/reference/functions/boolean/index.md index 1b75c359b216a4c..17a3f5780e8ce0d 100644 --- a/files/en-us/web/xpath/reference/functions/boolean/index.md +++ b/files/en-us/web/xpath/reference/functions/boolean/index.md @@ -2,6 +2,7 @@ title: boolean slug: Web/XPath/Reference/Functions/boolean page-type: xpath-function +sidebar: "xsltsidebar" --- The `boolean` function evaluates an expression and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/ceiling/index.md b/files/en-us/web/xpath/reference/functions/ceiling/index.md index c4fefb6a2646cd9..1cefc943082b70f 100644 --- a/files/en-us/web/xpath/reference/functions/ceiling/index.md +++ b/files/en-us/web/xpath/reference/functions/ceiling/index.md @@ -2,6 +2,7 @@ title: ceiling slug: Web/XPath/Reference/Functions/ceiling page-type: xpath-function +sidebar: "xsltsidebar" --- The `ceiling` function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/choose/index.md b/files/en-us/web/xpath/reference/functions/choose/index.md index 34f610678c66ae4..2becc1ff8249a80 100644 --- a/files/en-us/web/xpath/reference/functions/choose/index.md +++ b/files/en-us/web/xpath/reference/functions/choose/index.md @@ -2,6 +2,7 @@ title: choose slug: Web/XPath/Reference/Functions/choose page-type: xpath-function +sidebar: "xsltsidebar" --- The `choose` function returns one of the specified objects based on a boolean parameter. diff --git a/files/en-us/web/xpath/reference/functions/concat/index.md b/files/en-us/web/xpath/reference/functions/concat/index.md index 745ac124dc3155b..9763a20d660d960 100644 --- a/files/en-us/web/xpath/reference/functions/concat/index.md +++ b/files/en-us/web/xpath/reference/functions/concat/index.md @@ -2,6 +2,7 @@ title: concat slug: Web/XPath/Reference/Functions/concat page-type: xpath-function +sidebar: "xsltsidebar" --- The `concat` function concatenates two or more strings and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/contains/index.md b/files/en-us/web/xpath/reference/functions/contains/index.md index 9a2a07cac95ea4c..35744cca6ad291f 100644 --- a/files/en-us/web/xpath/reference/functions/contains/index.md +++ b/files/en-us/web/xpath/reference/functions/contains/index.md @@ -2,6 +2,7 @@ title: contains slug: Web/XPath/Reference/Functions/contains page-type: xpath-function +sidebar: "xsltsidebar" --- The `contains` function determines whether the first argument string contains the second argument string and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/count/index.md b/files/en-us/web/xpath/reference/functions/count/index.md index e878ba0908236ca..f05f61dbee81a83 100644 --- a/files/en-us/web/xpath/reference/functions/count/index.md +++ b/files/en-us/web/xpath/reference/functions/count/index.md @@ -2,6 +2,7 @@ title: count slug: Web/XPath/Reference/Functions/count page-type: xpath-function +sidebar: "xsltsidebar" --- The `count` function counts the number of nodes in a node-set and returns an integer. diff --git a/files/en-us/web/xpath/reference/functions/current/index.md b/files/en-us/web/xpath/reference/functions/current/index.md index db6c9abac4faff7..93c239a44e7c812 100644 --- a/files/en-us/web/xpath/reference/functions/current/index.md +++ b/files/en-us/web/xpath/reference/functions/current/index.md @@ -2,6 +2,7 @@ title: current slug: Web/XPath/Reference/Functions/current page-type: xpath-function +sidebar: "xsltsidebar" --- The `current` function can be used to get the context node in an XSLT instruction. diff --git a/files/en-us/web/xpath/reference/functions/document/index.md b/files/en-us/web/xpath/reference/functions/document/index.md index a6b2a59cad9da47..8ccf8bf984f5578 100644 --- a/files/en-us/web/xpath/reference/functions/document/index.md +++ b/files/en-us/web/xpath/reference/functions/document/index.md @@ -2,6 +2,7 @@ title: document slug: Web/XPath/Reference/Functions/document page-type: xpath-function +sidebar: "xsltsidebar" --- The `document` finds a node-set in an external document, or multiple external documents, and returns the resulting node-set. diff --git a/files/en-us/web/xpath/reference/functions/element-available/index.md b/files/en-us/web/xpath/reference/functions/element-available/index.md index f9f4b2cee67efd1..c887d058689eda9 100644 --- a/files/en-us/web/xpath/reference/functions/element-available/index.md +++ b/files/en-us/web/xpath/reference/functions/element-available/index.md @@ -2,6 +2,7 @@ title: element-available slug: Web/XPath/Reference/Functions/element-available page-type: xpath-function +sidebar: "xsltsidebar" --- The `element-available` function determines if an element is available and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/false/index.md b/files/en-us/web/xpath/reference/functions/false/index.md index 495e21da6b0aa1a..e5046b130875278 100644 --- a/files/en-us/web/xpath/reference/functions/false/index.md +++ b/files/en-us/web/xpath/reference/functions/false/index.md @@ -2,6 +2,7 @@ title: "false" slug: Web/XPath/Reference/Functions/false page-type: xpath-function +sidebar: "xsltsidebar" --- The `false` function returns boolean false. diff --git a/files/en-us/web/xpath/reference/functions/floor/index.md b/files/en-us/web/xpath/reference/functions/floor/index.md index f5ca8c2b14d893d..a4d13229c4e2ae6 100644 --- a/files/en-us/web/xpath/reference/functions/floor/index.md +++ b/files/en-us/web/xpath/reference/functions/floor/index.md @@ -2,6 +2,7 @@ title: floor slug: Web/XPath/Reference/Functions/floor page-type: xpath-function +sidebar: "xsltsidebar" --- The `floor` function evaluates a decimal number and returns the largest integer less than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/format-number/index.md b/files/en-us/web/xpath/reference/functions/format-number/index.md index 8f41c2557197d9d..1c894c3d9f99b15 100644 --- a/files/en-us/web/xpath/reference/functions/format-number/index.md +++ b/files/en-us/web/xpath/reference/functions/format-number/index.md @@ -2,6 +2,7 @@ title: format-number slug: Web/XPath/Reference/Functions/format-number page-type: xpath-function +sidebar: "xsltsidebar" --- The `format-number` function evaluates a number and returns a string representing the number in a given format. diff --git a/files/en-us/web/xpath/reference/functions/function-available/index.md b/files/en-us/web/xpath/reference/functions/function-available/index.md index 6fcd13fa6a9d601..55934aa5402c8dc 100644 --- a/files/en-us/web/xpath/reference/functions/function-available/index.md +++ b/files/en-us/web/xpath/reference/functions/function-available/index.md @@ -2,6 +2,7 @@ title: function-available slug: Web/XPath/Reference/Functions/function-available page-type: xpath-function +sidebar: "xsltsidebar" --- The `function-available` function determines if a given function is available and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/generate-id/index.md b/files/en-us/web/xpath/reference/functions/generate-id/index.md index 0e0a24a011fcad4..b129c3376dd6047 100644 --- a/files/en-us/web/xpath/reference/functions/generate-id/index.md +++ b/files/en-us/web/xpath/reference/functions/generate-id/index.md @@ -2,6 +2,7 @@ title: generate-id slug: Web/XPath/Reference/Functions/generate-id page-type: xpath-function +sidebar: "xsltsidebar" --- The `generate-id` function generates a unique id for the first node in a given node-set and returns a string containing that id. diff --git a/files/en-us/web/xpath/reference/functions/id/index.md b/files/en-us/web/xpath/reference/functions/id/index.md index 929ea4699af8ed8..3feb1266cbe09ee 100644 --- a/files/en-us/web/xpath/reference/functions/id/index.md +++ b/files/en-us/web/xpath/reference/functions/id/index.md @@ -2,6 +2,7 @@ title: id slug: Web/XPath/Reference/Functions/id page-type: xpath-function +sidebar: "xsltsidebar" --- The `id` function finds nodes matching the given ids and returns a node-set containing the identified nodes. diff --git a/files/en-us/web/xpath/reference/functions/index.md b/files/en-us/web/xpath/reference/functions/index.md index 9ed01fd6cfa71dd..86631789e0ae5a1 100644 --- a/files/en-us/web/xpath/reference/functions/index.md +++ b/files/en-us/web/xpath/reference/functions/index.md @@ -3,6 +3,7 @@ title: XPath functions short-title: Functions slug: Web/XPath/Reference/Functions page-type: reference +sidebar: "xsltsidebar" --- The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. diff --git a/files/en-us/web/xpath/reference/functions/key/index.md b/files/en-us/web/xpath/reference/functions/key/index.md index 25bf5567011dce2..9d5811bd38d2420 100644 --- a/files/en-us/web/xpath/reference/functions/key/index.md +++ b/files/en-us/web/xpath/reference/functions/key/index.md @@ -2,6 +2,7 @@ title: key slug: Web/XPath/Reference/Functions/key page-type: xpath-function +sidebar: "xsltsidebar" --- The `key` function returns a node-set of nodes that have the given value for the given key. diff --git a/files/en-us/web/xpath/reference/functions/lang/index.md b/files/en-us/web/xpath/reference/functions/lang/index.md index 3c5ee7ee41a962f..ff20ba39325cc22 100644 --- a/files/en-us/web/xpath/reference/functions/lang/index.md +++ b/files/en-us/web/xpath/reference/functions/lang/index.md @@ -2,6 +2,7 @@ title: lang slug: Web/XPath/Reference/Functions/lang page-type: xpath-function +sidebar: "xsltsidebar" --- The `lang` function determines whether the context node matches the given language and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/last/index.md b/files/en-us/web/xpath/reference/functions/last/index.md index 037169d01d0a6cc..ef59805afb9acc6 100644 --- a/files/en-us/web/xpath/reference/functions/last/index.md +++ b/files/en-us/web/xpath/reference/functions/last/index.md @@ -2,6 +2,7 @@ title: last slug: Web/XPath/Reference/Functions/last page-type: xpath-function +sidebar: "xsltsidebar" --- The `last` function returns a number equal to the context size from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/local-name/index.md b/files/en-us/web/xpath/reference/functions/local-name/index.md index 84e957e872e5ff7..b7e3be4209de049 100644 --- a/files/en-us/web/xpath/reference/functions/local-name/index.md +++ b/files/en-us/web/xpath/reference/functions/local-name/index.md @@ -2,6 +2,7 @@ title: local-name slug: Web/XPath/Reference/Functions/local-name page-type: xpath-function +sidebar: "xsltsidebar" --- The `local-name` function returns a string representing the local name of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/name/index.md b/files/en-us/web/xpath/reference/functions/name/index.md index 56ea86a9e32dfef..4aabdafcc33abd8 100644 --- a/files/en-us/web/xpath/reference/functions/name/index.md +++ b/files/en-us/web/xpath/reference/functions/name/index.md @@ -2,6 +2,7 @@ title: name slug: Web/XPath/Reference/Functions/name page-type: xpath-function +sidebar: "xsltsidebar" --- The `name` function returns a string representing the QName of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md index 3d9336f510b6c93..93cb0db4a369d90 100644 --- a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md +++ b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md @@ -2,6 +2,7 @@ title: namespace-uri slug: Web/XPath/Reference/Functions/namespace-uri page-type: xpath-function +sidebar: "xsltsidebar" --- The `namespace-uri` function returns a string representing the namespace URI of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/normalize-space/index.md b/files/en-us/web/xpath/reference/functions/normalize-space/index.md index 5f40f2669139172..dd99c8c77898ce2 100644 --- a/files/en-us/web/xpath/reference/functions/normalize-space/index.md +++ b/files/en-us/web/xpath/reference/functions/normalize-space/index.md @@ -2,6 +2,7 @@ title: normalize-space slug: Web/XPath/Reference/Functions/normalize-space page-type: xpath-function +sidebar: "xsltsidebar" --- The `normalize-space` function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/not/index.md b/files/en-us/web/xpath/reference/functions/not/index.md index 4d623a77fb7f6c7..bd322c6ce6c9298 100644 --- a/files/en-us/web/xpath/reference/functions/not/index.md +++ b/files/en-us/web/xpath/reference/functions/not/index.md @@ -2,6 +2,7 @@ title: not slug: Web/XPath/Reference/Functions/not page-type: xpath-function +sidebar: "xsltsidebar" --- The `not` function evaluates a boolean expression and returns the opposite value. diff --git a/files/en-us/web/xpath/reference/functions/number/index.md b/files/en-us/web/xpath/reference/functions/number/index.md index 8e1d43e86cb328e..bcffec5ea66a829 100644 --- a/files/en-us/web/xpath/reference/functions/number/index.md +++ b/files/en-us/web/xpath/reference/functions/number/index.md @@ -2,6 +2,7 @@ title: number slug: Web/XPath/Reference/Functions/number page-type: xpath-function +sidebar: "xsltsidebar" --- The `number` function converts an object to a number and returns the number. diff --git a/files/en-us/web/xpath/reference/functions/position/index.md b/files/en-us/web/xpath/reference/functions/position/index.md index f6a85b799683abb..2036660af57cf07 100644 --- a/files/en-us/web/xpath/reference/functions/position/index.md +++ b/files/en-us/web/xpath/reference/functions/position/index.md @@ -2,6 +2,7 @@ title: position slug: Web/XPath/Reference/Functions/position page-type: xpath-function +sidebar: "xsltsidebar" --- The `position` function returns a number equal to the context position from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/round/index.md b/files/en-us/web/xpath/reference/functions/round/index.md index f1727913209f2be..9be7366f89efed8 100644 --- a/files/en-us/web/xpath/reference/functions/round/index.md +++ b/files/en-us/web/xpath/reference/functions/round/index.md @@ -2,6 +2,7 @@ title: round slug: Web/XPath/Reference/Functions/round page-type: xpath-function +sidebar: "xsltsidebar" --- The `round` function returns a number that is the nearest integer to the given number. diff --git a/files/en-us/web/xpath/reference/functions/starts-with/index.md b/files/en-us/web/xpath/reference/functions/starts-with/index.md index 89a8cf3e54f7e07..873e42c0bb73e4f 100644 --- a/files/en-us/web/xpath/reference/functions/starts-with/index.md +++ b/files/en-us/web/xpath/reference/functions/starts-with/index.md @@ -2,6 +2,7 @@ title: starts-with slug: Web/XPath/Reference/Functions/starts-with page-type: xpath-function +sidebar: "xsltsidebar" --- The `starts-with` checks whether the first string starts with the second string and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/string-length/index.md b/files/en-us/web/xpath/reference/functions/string-length/index.md index 0b5ab129eec821c..f65bbbf160e79b1 100644 --- a/files/en-us/web/xpath/reference/functions/string-length/index.md +++ b/files/en-us/web/xpath/reference/functions/string-length/index.md @@ -2,6 +2,7 @@ title: string-length slug: Web/XPath/Reference/Functions/string-length page-type: xpath-function +sidebar: "xsltsidebar" --- The `string-length` function returns a number equal to the number of characters in a given string. diff --git a/files/en-us/web/xpath/reference/functions/string/index.md b/files/en-us/web/xpath/reference/functions/string/index.md index 6d1a9c4906aea67..de9cef33c6479da 100644 --- a/files/en-us/web/xpath/reference/functions/string/index.md +++ b/files/en-us/web/xpath/reference/functions/string/index.md @@ -2,6 +2,7 @@ title: string slug: Web/XPath/Reference/Functions/string page-type: xpath-function +sidebar: "xsltsidebar" --- The `string` function converts the given argument to a string. diff --git a/files/en-us/web/xpath/reference/functions/substring-after/index.md b/files/en-us/web/xpath/reference/functions/substring-after/index.md index 113fcc19719a1d0..0a83a0bf3ac6216 100644 --- a/files/en-us/web/xpath/reference/functions/substring-after/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-after/index.md @@ -2,6 +2,7 @@ title: substring-after slug: Web/XPath/Reference/Functions/substring-after page-type: xpath-function +sidebar: "xsltsidebar" --- The `substring-after` function returns a string that is the rest of a given string after a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring-before/index.md b/files/en-us/web/xpath/reference/functions/substring-before/index.md index 356c51575fd84bd..3d6c3943b6a2f64 100644 --- a/files/en-us/web/xpath/reference/functions/substring-before/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-before/index.md @@ -2,6 +2,7 @@ title: substring-before slug: Web/XPath/Reference/Functions/substring-before page-type: xpath-function +sidebar: "xsltsidebar" --- The `substring-before` function returns a string that is the part of a given string before a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring/index.md b/files/en-us/web/xpath/reference/functions/substring/index.md index 49f53b87d6fc2b3..783e35eb39d30ed 100644 --- a/files/en-us/web/xpath/reference/functions/substring/index.md +++ b/files/en-us/web/xpath/reference/functions/substring/index.md @@ -2,6 +2,7 @@ title: substring slug: Web/XPath/Reference/Functions/substring page-type: xpath-function +sidebar: "xsltsidebar" --- The `substring` function returns a part of a given string. diff --git a/files/en-us/web/xpath/reference/functions/sum/index.md b/files/en-us/web/xpath/reference/functions/sum/index.md index ab2a501632fb37c..ba00551fdda122c 100644 --- a/files/en-us/web/xpath/reference/functions/sum/index.md +++ b/files/en-us/web/xpath/reference/functions/sum/index.md @@ -2,6 +2,7 @@ title: sum slug: Web/XPath/Reference/Functions/sum page-type: xpath-function +sidebar: "xsltsidebar" --- The `sum` function returns a number that is the sum of the numeric values of each node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/system-property/index.md b/files/en-us/web/xpath/reference/functions/system-property/index.md index cca6b032fab7fe0..7defd1b7f3aa4f3 100644 --- a/files/en-us/web/xpath/reference/functions/system-property/index.md +++ b/files/en-us/web/xpath/reference/functions/system-property/index.md @@ -2,6 +2,7 @@ title: system-property slug: Web/XPath/Reference/Functions/system-property page-type: xpath-function +sidebar: "xsltsidebar" --- The `system-property` function returns an object representing the given system-property. diff --git a/files/en-us/web/xpath/reference/functions/translate/index.md b/files/en-us/web/xpath/reference/functions/translate/index.md index 704f0869e1927c1..42acd4d090bc18b 100644 --- a/files/en-us/web/xpath/reference/functions/translate/index.md +++ b/files/en-us/web/xpath/reference/functions/translate/index.md @@ -2,6 +2,7 @@ title: translate slug: Web/XPath/Reference/Functions/translate page-type: xpath-function +sidebar: "xsltsidebar" --- The `translate` function evaluates a string and a set of characters to translate and returns the translated string. diff --git a/files/en-us/web/xpath/reference/functions/true/index.md b/files/en-us/web/xpath/reference/functions/true/index.md index 57d2ef10390e82d..6ee5c9ff40c5b61 100644 --- a/files/en-us/web/xpath/reference/functions/true/index.md +++ b/files/en-us/web/xpath/reference/functions/true/index.md @@ -2,6 +2,7 @@ title: "true" slug: Web/XPath/Reference/Functions/true page-type: xpath-function +sidebar: "xsltsidebar" --- The `true` function returns a boolean value of true. diff --git a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md index 848243f8ea1fd4a..96d9d8420fc2769 100644 --- a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md +++ b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md @@ -2,6 +2,7 @@ title: unparsed-entity-url slug: Web/XPath/Reference/Functions/unparsed-entity-url page-type: xpath-function +sidebar: "xsltsidebar" --- The `unparsed-entity-url()` function returns the URI of the unparsed entity with the given name. This is non-XML data referenced in the DTD of the source document. diff --git a/files/en-us/web/xpath/reference/index.md b/files/en-us/web/xpath/reference/index.md index 7e2beb3d2b55939..6ff86c80f08d1f3 100644 --- a/files/en-us/web/xpath/reference/index.md +++ b/files/en-us/web/xpath/reference/index.md @@ -3,6 +3,7 @@ title: XPath reference short-title: Reference slug: Web/XPath/Reference page-type: landing-page +sidebar: "xsltsidebar" --- The following pages contain reference documentation for XPath. diff --git a/front-matter-config.json b/front-matter-config.json index f9dda9af2b8f04d..1435a61dc4d9022 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -524,8 +524,7 @@ "properties": { "page-type": { "enum": ["guide", "landing-page", "xpath-function", "reference"] - }, - "sidebar": true + } } }, "else": false From 90d0450fe2e7281bd3888abeb2417e43702ecdc0 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 30 Jan 2025 14:16:41 +0100 Subject: [PATCH 07/11] chore: use front matter for sidebar --- .lintstagedrc.js | 2 +- .../guides/comparison_with_css_selectors/index.md | 3 ++- files/en-us/web/xpath/guides/index.md | 3 ++- .../index.md | 3 ++- files/en-us/web/xpath/guides/snippets/index.md | 3 ++- files/en-us/web/xpath/index.md | 3 ++- files/en-us/web/xpath/reference/axes/index.md | 3 ++- .../web/xpath/reference/functions/boolean/index.md | 3 ++- .../web/xpath/reference/functions/ceiling/index.md | 3 ++- .../web/xpath/reference/functions/choose/index.md | 3 ++- .../web/xpath/reference/functions/concat/index.md | 3 ++- .../web/xpath/reference/functions/contains/index.md | 3 ++- .../web/xpath/reference/functions/count/index.md | 3 ++- .../web/xpath/reference/functions/current/index.md | 3 ++- .../web/xpath/reference/functions/document/index.md | 3 ++- .../reference/functions/element-available/index.md | 3 ++- .../web/xpath/reference/functions/false/index.md | 3 ++- .../web/xpath/reference/functions/floor/index.md | 3 ++- .../xpath/reference/functions/format-number/index.md | 3 ++- .../reference/functions/function-available/index.md | 3 ++- .../xpath/reference/functions/generate-id/index.md | 3 ++- files/en-us/web/xpath/reference/functions/id/index.md | 3 ++- files/en-us/web/xpath/reference/functions/index.md | 3 ++- .../en-us/web/xpath/reference/functions/key/index.md | 3 ++- .../en-us/web/xpath/reference/functions/lang/index.md | 3 ++- .../en-us/web/xpath/reference/functions/last/index.md | 3 ++- .../web/xpath/reference/functions/local-name/index.md | 3 ++- .../en-us/web/xpath/reference/functions/name/index.md | 3 ++- .../xpath/reference/functions/namespace-uri/index.md | 3 ++- .../reference/functions/normalize-space/index.md | 3 ++- .../en-us/web/xpath/reference/functions/not/index.md | 3 ++- .../web/xpath/reference/functions/number/index.md | 3 ++- .../web/xpath/reference/functions/position/index.md | 3 ++- .../web/xpath/reference/functions/round/index.md | 3 ++- .../xpath/reference/functions/starts-with/index.md | 3 ++- .../xpath/reference/functions/string-length/index.md | 3 ++- .../web/xpath/reference/functions/string/index.md | 3 ++- .../reference/functions/substring-after/index.md | 3 ++- .../reference/functions/substring-before/index.md | 3 ++- .../web/xpath/reference/functions/substring/index.md | 3 ++- .../en-us/web/xpath/reference/functions/sum/index.md | 3 ++- .../reference/functions/system-property/index.md | 3 ++- .../web/xpath/reference/functions/translate/index.md | 3 ++- .../en-us/web/xpath/reference/functions/true/index.md | 3 ++- .../reference/functions/unparsed-entity-url/index.md | 3 ++- files/en-us/web/xpath/reference/index.md | 3 ++- front-matter-config.json | 11 ++++++----- 47 files changed, 97 insertions(+), 51 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index b5cdcb8b0aa48bc..3d8de819544b351 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -6,7 +6,7 @@ export default { "!*.md": (files) => [`prettier --ignore-unknown --write ${files.join(" ")}`], "*.md": (files) => [ `markdownlint-cli2 --fix ${files.join(" ")}`, - `node scripts/front-matter_linter.js ${files.join(" ")}`, + `node scripts/front-matter_linter.js --fix true ${files.join(" ")}`, `node scripts/update-moved-file-links.js --check`, `prettier --write ${files.join(" ")}`, ], diff --git a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md index 1f5ff36a9c2d227..e622b9e175e699c 100644 --- a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md +++ b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md @@ -2,8 +2,9 @@ title: Comparison of CSS selectors and XPath short-title: CSS selectors and XPath slug: Web/XPath/Guides/Comparison_with_CSS_selectors +sidebar: + - xsltsidebar page-type: guide -sidebar: "xsltsidebar" --- This article seeks to document the difference between CSS selectors and XPath for web developers to be able to better choose the right tool for the right job. diff --git a/files/en-us/web/xpath/guides/index.md b/files/en-us/web/xpath/guides/index.md index ecae8dc18ec56c0..bf47f2ae524516c 100644 --- a/files/en-us/web/xpath/guides/index.md +++ b/files/en-us/web/xpath/guides/index.md @@ -2,8 +2,9 @@ title: XPath guides short-title: Guides slug: Web/XPath/Guides +sidebar: + - xsltsidebar page-type: landing-page -sidebar: "xsltsidebar" --- This page lists guides for XPath. diff --git a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md index 40ad63bb94ee55a..011a03c2776926a 100644 --- a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md +++ b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md @@ -2,8 +2,9 @@ title: Introduction to using XPath in JavaScript short-title: Using XPath in JavaScript slug: Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript +sidebar: + - xsltsidebar page-type: guide -sidebar: "xsltsidebar" --- This document describes the interface for using [XPath](/en-US/docs/Web/XPath) in JavaScript. diff --git a/files/en-us/web/xpath/guides/snippets/index.md b/files/en-us/web/xpath/guides/snippets/index.md index 7c98de6b58d05f4..e7d0ccb52c259a0 100644 --- a/files/en-us/web/xpath/guides/snippets/index.md +++ b/files/en-us/web/xpath/guides/snippets/index.md @@ -1,8 +1,9 @@ --- title: XPath snippets slug: Web/XPath/Guides/Snippets +sidebar: + - xsltsidebar page-type: guide -sidebar: "xsltsidebar" --- This article provides some XPath code snippets — simple examples of how to a few simple **utility functions** based on standard interfaces from the [DOM Level 3 XPath specification](https://www.w3.org/TR/DOM-Level-3-XPath/) that expose XPath functionality to JavaScript code. The snippets are functions you can use in the real world in your own code. diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index e7f544211b440db..1f0c96250a583eb 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -1,8 +1,9 @@ --- title: XPath slug: Web/XPath +sidebar: + - xsltsidebar page-type: landing-page -sidebar: "xsltsidebar" --- XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an [XML](/en-US/docs/Web/XML/XML_introduction) document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not. diff --git a/files/en-us/web/xpath/reference/axes/index.md b/files/en-us/web/xpath/reference/axes/index.md index da7ce1deac48eb0..4ed08427d73b864 100644 --- a/files/en-us/web/xpath/reference/axes/index.md +++ b/files/en-us/web/xpath/reference/axes/index.md @@ -1,8 +1,9 @@ --- title: Axes slug: Web/XPath/Reference/Axes +sidebar: + - xsltsidebar page-type: landing-page -sidebar: "xsltsidebar" --- There are thirteen different axes in the [XPath](/en-US/docs/Web/XPath) specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree. diff --git a/files/en-us/web/xpath/reference/functions/boolean/index.md b/files/en-us/web/xpath/reference/functions/boolean/index.md index 17a3f5780e8ce0d..da3b1668285be6e 100644 --- a/files/en-us/web/xpath/reference/functions/boolean/index.md +++ b/files/en-us/web/xpath/reference/functions/boolean/index.md @@ -1,8 +1,9 @@ --- title: boolean slug: Web/XPath/Reference/Functions/boolean +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `boolean` function evaluates an expression and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/ceiling/index.md b/files/en-us/web/xpath/reference/functions/ceiling/index.md index 1cefc943082b70f..46636d56e5476b1 100644 --- a/files/en-us/web/xpath/reference/functions/ceiling/index.md +++ b/files/en-us/web/xpath/reference/functions/ceiling/index.md @@ -1,8 +1,9 @@ --- title: ceiling slug: Web/XPath/Reference/Functions/ceiling +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `ceiling` function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/choose/index.md b/files/en-us/web/xpath/reference/functions/choose/index.md index 2becc1ff8249a80..7b625d25d4e7259 100644 --- a/files/en-us/web/xpath/reference/functions/choose/index.md +++ b/files/en-us/web/xpath/reference/functions/choose/index.md @@ -1,8 +1,9 @@ --- title: choose slug: Web/XPath/Reference/Functions/choose +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `choose` function returns one of the specified objects based on a boolean parameter. diff --git a/files/en-us/web/xpath/reference/functions/concat/index.md b/files/en-us/web/xpath/reference/functions/concat/index.md index 9763a20d660d960..1621c339fe760de 100644 --- a/files/en-us/web/xpath/reference/functions/concat/index.md +++ b/files/en-us/web/xpath/reference/functions/concat/index.md @@ -1,8 +1,9 @@ --- title: concat slug: Web/XPath/Reference/Functions/concat +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `concat` function concatenates two or more strings and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/contains/index.md b/files/en-us/web/xpath/reference/functions/contains/index.md index 35744cca6ad291f..b269167e941a35f 100644 --- a/files/en-us/web/xpath/reference/functions/contains/index.md +++ b/files/en-us/web/xpath/reference/functions/contains/index.md @@ -1,8 +1,9 @@ --- title: contains slug: Web/XPath/Reference/Functions/contains +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `contains` function determines whether the first argument string contains the second argument string and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/count/index.md b/files/en-us/web/xpath/reference/functions/count/index.md index f05f61dbee81a83..1766e457fd2ee70 100644 --- a/files/en-us/web/xpath/reference/functions/count/index.md +++ b/files/en-us/web/xpath/reference/functions/count/index.md @@ -1,8 +1,9 @@ --- title: count slug: Web/XPath/Reference/Functions/count +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `count` function counts the number of nodes in a node-set and returns an integer. diff --git a/files/en-us/web/xpath/reference/functions/current/index.md b/files/en-us/web/xpath/reference/functions/current/index.md index 93c239a44e7c812..481846ab9273a33 100644 --- a/files/en-us/web/xpath/reference/functions/current/index.md +++ b/files/en-us/web/xpath/reference/functions/current/index.md @@ -1,8 +1,9 @@ --- title: current slug: Web/XPath/Reference/Functions/current +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `current` function can be used to get the context node in an XSLT instruction. diff --git a/files/en-us/web/xpath/reference/functions/document/index.md b/files/en-us/web/xpath/reference/functions/document/index.md index 8ccf8bf984f5578..bdc10175070ebca 100644 --- a/files/en-us/web/xpath/reference/functions/document/index.md +++ b/files/en-us/web/xpath/reference/functions/document/index.md @@ -1,8 +1,9 @@ --- title: document slug: Web/XPath/Reference/Functions/document +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `document` finds a node-set in an external document, or multiple external documents, and returns the resulting node-set. diff --git a/files/en-us/web/xpath/reference/functions/element-available/index.md b/files/en-us/web/xpath/reference/functions/element-available/index.md index c887d058689eda9..5d8a1cc9cd22ea1 100644 --- a/files/en-us/web/xpath/reference/functions/element-available/index.md +++ b/files/en-us/web/xpath/reference/functions/element-available/index.md @@ -1,8 +1,9 @@ --- title: element-available slug: Web/XPath/Reference/Functions/element-available +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `element-available` function determines if an element is available and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/false/index.md b/files/en-us/web/xpath/reference/functions/false/index.md index e5046b130875278..f3e9d56e6835378 100644 --- a/files/en-us/web/xpath/reference/functions/false/index.md +++ b/files/en-us/web/xpath/reference/functions/false/index.md @@ -1,8 +1,9 @@ --- title: "false" slug: Web/XPath/Reference/Functions/false +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `false` function returns boolean false. diff --git a/files/en-us/web/xpath/reference/functions/floor/index.md b/files/en-us/web/xpath/reference/functions/floor/index.md index a4d13229c4e2ae6..1f8c55e1185277a 100644 --- a/files/en-us/web/xpath/reference/functions/floor/index.md +++ b/files/en-us/web/xpath/reference/functions/floor/index.md @@ -1,8 +1,9 @@ --- title: floor slug: Web/XPath/Reference/Functions/floor +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `floor` function evaluates a decimal number and returns the largest integer less than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/format-number/index.md b/files/en-us/web/xpath/reference/functions/format-number/index.md index 1c894c3d9f99b15..02dbd36109852e8 100644 --- a/files/en-us/web/xpath/reference/functions/format-number/index.md +++ b/files/en-us/web/xpath/reference/functions/format-number/index.md @@ -1,8 +1,9 @@ --- title: format-number slug: Web/XPath/Reference/Functions/format-number +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `format-number` function evaluates a number and returns a string representing the number in a given format. diff --git a/files/en-us/web/xpath/reference/functions/function-available/index.md b/files/en-us/web/xpath/reference/functions/function-available/index.md index 55934aa5402c8dc..e02c975363c7b6d 100644 --- a/files/en-us/web/xpath/reference/functions/function-available/index.md +++ b/files/en-us/web/xpath/reference/functions/function-available/index.md @@ -1,8 +1,9 @@ --- title: function-available slug: Web/XPath/Reference/Functions/function-available +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `function-available` function determines if a given function is available and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/generate-id/index.md b/files/en-us/web/xpath/reference/functions/generate-id/index.md index b129c3376dd6047..fcbf15c90ba484a 100644 --- a/files/en-us/web/xpath/reference/functions/generate-id/index.md +++ b/files/en-us/web/xpath/reference/functions/generate-id/index.md @@ -1,8 +1,9 @@ --- title: generate-id slug: Web/XPath/Reference/Functions/generate-id +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `generate-id` function generates a unique id for the first node in a given node-set and returns a string containing that id. diff --git a/files/en-us/web/xpath/reference/functions/id/index.md b/files/en-us/web/xpath/reference/functions/id/index.md index 3feb1266cbe09ee..cf077a585b58ec8 100644 --- a/files/en-us/web/xpath/reference/functions/id/index.md +++ b/files/en-us/web/xpath/reference/functions/id/index.md @@ -1,8 +1,9 @@ --- title: id slug: Web/XPath/Reference/Functions/id +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `id` function finds nodes matching the given ids and returns a node-set containing the identified nodes. diff --git a/files/en-us/web/xpath/reference/functions/index.md b/files/en-us/web/xpath/reference/functions/index.md index 86631789e0ae5a1..32c729990f0db0b 100644 --- a/files/en-us/web/xpath/reference/functions/index.md +++ b/files/en-us/web/xpath/reference/functions/index.md @@ -2,8 +2,9 @@ title: XPath functions short-title: Functions slug: Web/XPath/Reference/Functions +sidebar: + - xsltsidebar page-type: reference -sidebar: "xsltsidebar" --- The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. diff --git a/files/en-us/web/xpath/reference/functions/key/index.md b/files/en-us/web/xpath/reference/functions/key/index.md index 9d5811bd38d2420..ffdeb2709a1529c 100644 --- a/files/en-us/web/xpath/reference/functions/key/index.md +++ b/files/en-us/web/xpath/reference/functions/key/index.md @@ -1,8 +1,9 @@ --- title: key slug: Web/XPath/Reference/Functions/key +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `key` function returns a node-set of nodes that have the given value for the given key. diff --git a/files/en-us/web/xpath/reference/functions/lang/index.md b/files/en-us/web/xpath/reference/functions/lang/index.md index ff20ba39325cc22..6d9c95d4d30f8f7 100644 --- a/files/en-us/web/xpath/reference/functions/lang/index.md +++ b/files/en-us/web/xpath/reference/functions/lang/index.md @@ -1,8 +1,9 @@ --- title: lang slug: Web/XPath/Reference/Functions/lang +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `lang` function determines whether the context node matches the given language and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/last/index.md b/files/en-us/web/xpath/reference/functions/last/index.md index ef59805afb9acc6..b193ee5a4b72e42 100644 --- a/files/en-us/web/xpath/reference/functions/last/index.md +++ b/files/en-us/web/xpath/reference/functions/last/index.md @@ -1,8 +1,9 @@ --- title: last slug: Web/XPath/Reference/Functions/last +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `last` function returns a number equal to the context size from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/local-name/index.md b/files/en-us/web/xpath/reference/functions/local-name/index.md index b7e3be4209de049..1363c26f916cac4 100644 --- a/files/en-us/web/xpath/reference/functions/local-name/index.md +++ b/files/en-us/web/xpath/reference/functions/local-name/index.md @@ -1,8 +1,9 @@ --- title: local-name slug: Web/XPath/Reference/Functions/local-name +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `local-name` function returns a string representing the local name of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/name/index.md b/files/en-us/web/xpath/reference/functions/name/index.md index 4aabdafcc33abd8..4694bcf6b788401 100644 --- a/files/en-us/web/xpath/reference/functions/name/index.md +++ b/files/en-us/web/xpath/reference/functions/name/index.md @@ -1,8 +1,9 @@ --- title: name slug: Web/XPath/Reference/Functions/name +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `name` function returns a string representing the QName of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md index 93cb0db4a369d90..7e9e534cd8fe1d7 100644 --- a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md +++ b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md @@ -1,8 +1,9 @@ --- title: namespace-uri slug: Web/XPath/Reference/Functions/namespace-uri +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `namespace-uri` function returns a string representing the namespace URI of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/normalize-space/index.md b/files/en-us/web/xpath/reference/functions/normalize-space/index.md index dd99c8c77898ce2..d345d99209f5452 100644 --- a/files/en-us/web/xpath/reference/functions/normalize-space/index.md +++ b/files/en-us/web/xpath/reference/functions/normalize-space/index.md @@ -1,8 +1,9 @@ --- title: normalize-space slug: Web/XPath/Reference/Functions/normalize-space +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `normalize-space` function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/not/index.md b/files/en-us/web/xpath/reference/functions/not/index.md index bd322c6ce6c9298..263c0d03de41fe9 100644 --- a/files/en-us/web/xpath/reference/functions/not/index.md +++ b/files/en-us/web/xpath/reference/functions/not/index.md @@ -1,8 +1,9 @@ --- title: not slug: Web/XPath/Reference/Functions/not +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `not` function evaluates a boolean expression and returns the opposite value. diff --git a/files/en-us/web/xpath/reference/functions/number/index.md b/files/en-us/web/xpath/reference/functions/number/index.md index bcffec5ea66a829..35ba4b95be05a83 100644 --- a/files/en-us/web/xpath/reference/functions/number/index.md +++ b/files/en-us/web/xpath/reference/functions/number/index.md @@ -1,8 +1,9 @@ --- title: number slug: Web/XPath/Reference/Functions/number +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `number` function converts an object to a number and returns the number. diff --git a/files/en-us/web/xpath/reference/functions/position/index.md b/files/en-us/web/xpath/reference/functions/position/index.md index 2036660af57cf07..66a3f19c1ce791b 100644 --- a/files/en-us/web/xpath/reference/functions/position/index.md +++ b/files/en-us/web/xpath/reference/functions/position/index.md @@ -1,8 +1,9 @@ --- title: position slug: Web/XPath/Reference/Functions/position +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `position` function returns a number equal to the context position from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/round/index.md b/files/en-us/web/xpath/reference/functions/round/index.md index 9be7366f89efed8..7eec509057de149 100644 --- a/files/en-us/web/xpath/reference/functions/round/index.md +++ b/files/en-us/web/xpath/reference/functions/round/index.md @@ -1,8 +1,9 @@ --- title: round slug: Web/XPath/Reference/Functions/round +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `round` function returns a number that is the nearest integer to the given number. diff --git a/files/en-us/web/xpath/reference/functions/starts-with/index.md b/files/en-us/web/xpath/reference/functions/starts-with/index.md index 873e42c0bb73e4f..f959f3debeb5538 100644 --- a/files/en-us/web/xpath/reference/functions/starts-with/index.md +++ b/files/en-us/web/xpath/reference/functions/starts-with/index.md @@ -1,8 +1,9 @@ --- title: starts-with slug: Web/XPath/Reference/Functions/starts-with +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `starts-with` checks whether the first string starts with the second string and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/string-length/index.md b/files/en-us/web/xpath/reference/functions/string-length/index.md index f65bbbf160e79b1..6cd4a87a67122cc 100644 --- a/files/en-us/web/xpath/reference/functions/string-length/index.md +++ b/files/en-us/web/xpath/reference/functions/string-length/index.md @@ -1,8 +1,9 @@ --- title: string-length slug: Web/XPath/Reference/Functions/string-length +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `string-length` function returns a number equal to the number of characters in a given string. diff --git a/files/en-us/web/xpath/reference/functions/string/index.md b/files/en-us/web/xpath/reference/functions/string/index.md index de9cef33c6479da..2b8017cf15ab5e8 100644 --- a/files/en-us/web/xpath/reference/functions/string/index.md +++ b/files/en-us/web/xpath/reference/functions/string/index.md @@ -1,8 +1,9 @@ --- title: string slug: Web/XPath/Reference/Functions/string +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `string` function converts the given argument to a string. diff --git a/files/en-us/web/xpath/reference/functions/substring-after/index.md b/files/en-us/web/xpath/reference/functions/substring-after/index.md index 0a83a0bf3ac6216..41b440969bab32b 100644 --- a/files/en-us/web/xpath/reference/functions/substring-after/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-after/index.md @@ -1,8 +1,9 @@ --- title: substring-after slug: Web/XPath/Reference/Functions/substring-after +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `substring-after` function returns a string that is the rest of a given string after a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring-before/index.md b/files/en-us/web/xpath/reference/functions/substring-before/index.md index 3d6c3943b6a2f64..e92f98621b0a0ce 100644 --- a/files/en-us/web/xpath/reference/functions/substring-before/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-before/index.md @@ -1,8 +1,9 @@ --- title: substring-before slug: Web/XPath/Reference/Functions/substring-before +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `substring-before` function returns a string that is the part of a given string before a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring/index.md b/files/en-us/web/xpath/reference/functions/substring/index.md index 783e35eb39d30ed..bf4e173b5b3be1e 100644 --- a/files/en-us/web/xpath/reference/functions/substring/index.md +++ b/files/en-us/web/xpath/reference/functions/substring/index.md @@ -1,8 +1,9 @@ --- title: substring slug: Web/XPath/Reference/Functions/substring +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `substring` function returns a part of a given string. diff --git a/files/en-us/web/xpath/reference/functions/sum/index.md b/files/en-us/web/xpath/reference/functions/sum/index.md index ba00551fdda122c..fcb92b057b0b539 100644 --- a/files/en-us/web/xpath/reference/functions/sum/index.md +++ b/files/en-us/web/xpath/reference/functions/sum/index.md @@ -1,8 +1,9 @@ --- title: sum slug: Web/XPath/Reference/Functions/sum +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `sum` function returns a number that is the sum of the numeric values of each node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/system-property/index.md b/files/en-us/web/xpath/reference/functions/system-property/index.md index 7defd1b7f3aa4f3..c230882f660e6b5 100644 --- a/files/en-us/web/xpath/reference/functions/system-property/index.md +++ b/files/en-us/web/xpath/reference/functions/system-property/index.md @@ -1,8 +1,9 @@ --- title: system-property slug: Web/XPath/Reference/Functions/system-property +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `system-property` function returns an object representing the given system-property. diff --git a/files/en-us/web/xpath/reference/functions/translate/index.md b/files/en-us/web/xpath/reference/functions/translate/index.md index 42acd4d090bc18b..6f0a085c110356c 100644 --- a/files/en-us/web/xpath/reference/functions/translate/index.md +++ b/files/en-us/web/xpath/reference/functions/translate/index.md @@ -1,8 +1,9 @@ --- title: translate slug: Web/XPath/Reference/Functions/translate +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `translate` function evaluates a string and a set of characters to translate and returns the translated string. diff --git a/files/en-us/web/xpath/reference/functions/true/index.md b/files/en-us/web/xpath/reference/functions/true/index.md index 6ee5c9ff40c5b61..8b60fd2043485ae 100644 --- a/files/en-us/web/xpath/reference/functions/true/index.md +++ b/files/en-us/web/xpath/reference/functions/true/index.md @@ -1,8 +1,9 @@ --- title: "true" slug: Web/XPath/Reference/Functions/true +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `true` function returns a boolean value of true. diff --git a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md index 96d9d8420fc2769..2f4c37c6af4adf4 100644 --- a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md +++ b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md @@ -1,8 +1,9 @@ --- title: unparsed-entity-url slug: Web/XPath/Reference/Functions/unparsed-entity-url +sidebar: + - xsltsidebar page-type: xpath-function -sidebar: "xsltsidebar" --- The `unparsed-entity-url()` function returns the URI of the unparsed entity with the given name. This is non-XML data referenced in the DTD of the source document. diff --git a/files/en-us/web/xpath/reference/index.md b/files/en-us/web/xpath/reference/index.md index 6ff86c80f08d1f3..315f2a549106b1e 100644 --- a/files/en-us/web/xpath/reference/index.md +++ b/files/en-us/web/xpath/reference/index.md @@ -2,8 +2,9 @@ title: XPath reference short-title: Reference slug: Web/XPath/Reference +sidebar: + - xsltsidebar page-type: landing-page -sidebar: "xsltsidebar" --- The following pages contain reference documentation for XPath. diff --git a/front-matter-config.json b/front-matter-config.json index 1435a61dc4d9022..4d58f6e810bb647 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -23,16 +23,16 @@ "description": "URL path of the page", "type": "string" }, - "sidebar": { - "title": "sidebar", - "description": "A YAML sidebar defined in /files/en-us/sidebars", - "type": "string" - }, "page-type": { "title": "Page Type", "description": "Type of the page", "type": "string" }, + "sidebar": { + "title": "sidebar", + "description": "A sidebar defined as YAML in /files/en-us/sidebars", + "type": "array" + }, "status": { "title": "Status", "description": "Browser compatibility status", @@ -565,6 +565,7 @@ "title", "short-title", "slug", + "sidebar", "page-type", "status", "browser-compat", From 5c9032f1ab20df73d1c43bab448b3e38065d8cfe Mon Sep 17 00:00:00 2001 From: Dave Letorey Date: Thu, 30 Jan 2025 11:06:38 +0000 Subject: [PATCH 08/11] 37515 Firefox Nightly supports Temporal behind pref (#37863) * added experimental release note for Temporal API * added Temporal to FF135 release note in experimental features * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Brian Smith * Update files/en-us/mozilla/firefox/releases/135/index.md Co-authored-by: Brian Smith * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Brian Smith * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Brian Smith * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Brian Smith * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Brian Smith --------- Co-authored-by: Brian Smith --- .../firefox/experimental_features/index.md | 54 +++++++++++++++++++ .../mozilla/firefox/releases/135/index.md | 1 + 2 files changed, 55 insertions(+) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 94212de4cf5169c..425baacca1e4388 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -948,6 +948,60 @@ None. +### Temporal API + +The [Temporal object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) aims to simplify working with dates and times in various scenarios, with built-in time zone and calendar representations ([Firefox bug 1912511](https://bugzil.la/1912511)). +This includes: + +- A **duration** (difference between two time points): {{jsxref("Temporal.Duration")}} +- **Points in time**: + - As a unique instant in history: + - A timestamp: {{jsxref("Temporal.Instant")}} + - A date-time with a time zone: {{jsxref("Temporal.ZonedDateTime")}} + - **Time-zone-unaware date/time ("Plain")**: + - Date (year, month, day) + time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainDateTime")}} + - Date (year, month, day): {{jsxref("Temporal.PlainDate")}} + - Year, month: {{jsxref("Temporal.PlainYearMonth")}} + - Month, day: {{jsxref("Temporal.PlainMonthDay")}} + - Time (hour, minute, second, millisecond, nanosecond): {{jsxref("Temporal.PlainTime")}} +- **Now** (current time) as various class instances, or in a specific format: {{jsxref("Temporal.Now")}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion addedEnabled by default?
Nightly135No
Developer Edition
Beta
Release
Preference namejavascript.options.experimental.temporal
+ ## APIs ### Cookie Store API diff --git a/files/en-us/mozilla/firefox/releases/135/index.md b/files/en-us/mozilla/firefox/releases/135/index.md index 4c0f657c50210ad..8e0f215abe08ef0 100644 --- a/files/en-us/mozilla/firefox/releases/135/index.md +++ b/files/en-us/mozilla/firefox/releases/135/index.md @@ -96,6 +96,7 @@ This article provides information about the changes in Firefox 135 that affect d These features are newly shipped in Firefox 135 but are disabled by default. To experiment with them, search for the appropriate preference on the `about:config` page and set it to `true`. You can find more such features on the [Experimental features](/en-US/docs/Mozilla/Firefox/Experimental_features) page. +- **Temporal API** (Nightly release): javascript.options.experimental.temporal. The [Temporal object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) aims to simplify working with dates and times in various scenarios, with built-in time zone and calendar representations. ([Firefox bug 1912511](https://bugzil.la/1912511)). - **Prioritized Task Scheduling API**: dom.enable_web_task_scheduling. The [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) provides a standardized way to prioritize all tasks belonging to an application, whether they defined in a website developer's code, or in third party libraries and frameworks. This has temporarily been disabled in Nightly builds in order to avoid [breakage in-the-wild](https://bugzil.la/1937232). From a90769b8500f645c76bf1436bb21110139907e1d Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Thu, 30 Jan 2025 14:03:12 +0100 Subject: [PATCH 09/11] Add new listing-page generic type (#37881) --- .../page_structures/page_types/page_type_key/index.md | 11 ++++++----- front-matter-config.json | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md index d77997064b709d8..df6ce83fac98216 100644 --- a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md +++ b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md @@ -26,11 +26,12 @@ Each main area of the site — JavaScript, CSS, and so on — has a set of domai These page types are not specific to a particular MDN technology area: -- `guide`: a generic guide page with no specific structure. -- `landing-page`: a page that acts primarily as a navigation aid, listing links to other pages. -- `how-to`: a page that acts primarily as a goal-oriented how-to article. -- `tutorial`: a page that is the overview page of a learning-oriented article. -- `tutorial-chapter`: a page that is a part of a multipart tutorial. +- `guide`: a generic guide with no specific structure. +- `landing-page`: an overview of the topic, section introduction, and navigation to key areas. +- `listing-page`: a brief description of the section and a list of subpages within that section. +- `how-to`: a goal-oriented how-to article. +- `tutorial`: an overview of a learning-oriented article. +- `tutorial-chapter`: a part of a multipart tutorial. ## Domain-specific page types diff --git a/front-matter-config.json b/front-matter-config.json index 4d58f6e810bb647..299a29b5513b46c 100644 --- a/front-matter-config.json +++ b/front-matter-config.json @@ -505,6 +505,7 @@ "enum": [ "guide", "landing-page", + "listing-page", "how-to", "tutorial", "tutorial-chapter" From 918414f2c268afb6213cb1598ee95d78dded952a Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 31 Jan 2025 10:57:44 +0100 Subject: [PATCH 10/11] chore: run fm-linter --- .../web/xpath/guides/comparison_with_css_selectors/index.md | 2 +- files/en-us/web/xpath/guides/index.md | 2 +- .../guides/introduction_to_using_xpath_in_javascript/index.md | 2 +- files/en-us/web/xpath/guides/snippets/index.md | 2 +- files/en-us/web/xpath/index.md | 2 +- files/en-us/web/xpath/reference/axes/index.md | 2 +- files/en-us/web/xpath/reference/functions/boolean/index.md | 2 +- files/en-us/web/xpath/reference/functions/ceiling/index.md | 2 +- files/en-us/web/xpath/reference/functions/choose/index.md | 2 +- files/en-us/web/xpath/reference/functions/concat/index.md | 2 +- files/en-us/web/xpath/reference/functions/contains/index.md | 2 +- files/en-us/web/xpath/reference/functions/count/index.md | 2 +- files/en-us/web/xpath/reference/functions/current/index.md | 2 +- files/en-us/web/xpath/reference/functions/document/index.md | 2 +- .../web/xpath/reference/functions/element-available/index.md | 2 +- files/en-us/web/xpath/reference/functions/false/index.md | 2 +- files/en-us/web/xpath/reference/functions/floor/index.md | 2 +- .../en-us/web/xpath/reference/functions/format-number/index.md | 2 +- .../web/xpath/reference/functions/function-available/index.md | 2 +- files/en-us/web/xpath/reference/functions/generate-id/index.md | 2 +- files/en-us/web/xpath/reference/functions/id/index.md | 2 +- files/en-us/web/xpath/reference/functions/index.md | 2 +- files/en-us/web/xpath/reference/functions/key/index.md | 2 +- files/en-us/web/xpath/reference/functions/lang/index.md | 2 +- files/en-us/web/xpath/reference/functions/last/index.md | 2 +- files/en-us/web/xpath/reference/functions/local-name/index.md | 2 +- files/en-us/web/xpath/reference/functions/name/index.md | 2 +- .../en-us/web/xpath/reference/functions/namespace-uri/index.md | 2 +- .../web/xpath/reference/functions/normalize-space/index.md | 2 +- files/en-us/web/xpath/reference/functions/not/index.md | 2 +- files/en-us/web/xpath/reference/functions/number/index.md | 2 +- files/en-us/web/xpath/reference/functions/position/index.md | 2 +- files/en-us/web/xpath/reference/functions/round/index.md | 2 +- files/en-us/web/xpath/reference/functions/starts-with/index.md | 2 +- .../en-us/web/xpath/reference/functions/string-length/index.md | 2 +- files/en-us/web/xpath/reference/functions/string/index.md | 2 +- .../web/xpath/reference/functions/substring-after/index.md | 2 +- .../web/xpath/reference/functions/substring-before/index.md | 2 +- files/en-us/web/xpath/reference/functions/substring/index.md | 2 +- files/en-us/web/xpath/reference/functions/sum/index.md | 2 +- .../web/xpath/reference/functions/system-property/index.md | 2 +- files/en-us/web/xpath/reference/functions/translate/index.md | 2 +- files/en-us/web/xpath/reference/functions/true/index.md | 2 +- .../web/xpath/reference/functions/unparsed-entity-url/index.md | 2 +- files/en-us/web/xpath/reference/index.md | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md index e622b9e175e699c..723d1b845e44205 100644 --- a/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md +++ b/files/en-us/web/xpath/guides/comparison_with_css_selectors/index.md @@ -2,9 +2,9 @@ title: Comparison of CSS selectors and XPath short-title: CSS selectors and XPath slug: Web/XPath/Guides/Comparison_with_CSS_selectors +page-type: guide sidebar: - xsltsidebar -page-type: guide --- This article seeks to document the difference between CSS selectors and XPath for web developers to be able to better choose the right tool for the right job. diff --git a/files/en-us/web/xpath/guides/index.md b/files/en-us/web/xpath/guides/index.md index bf47f2ae524516c..0f64d3a348c729b 100644 --- a/files/en-us/web/xpath/guides/index.md +++ b/files/en-us/web/xpath/guides/index.md @@ -2,9 +2,9 @@ title: XPath guides short-title: Guides slug: Web/XPath/Guides +page-type: landing-page sidebar: - xsltsidebar -page-type: landing-page --- This page lists guides for XPath. diff --git a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md index 011a03c2776926a..5acdbc1090bdacb 100644 --- a/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md +++ b/files/en-us/web/xpath/guides/introduction_to_using_xpath_in_javascript/index.md @@ -2,9 +2,9 @@ title: Introduction to using XPath in JavaScript short-title: Using XPath in JavaScript slug: Web/XPath/Guides/Introduction_to_using_XPath_in_JavaScript +page-type: guide sidebar: - xsltsidebar -page-type: guide --- This document describes the interface for using [XPath](/en-US/docs/Web/XPath) in JavaScript. diff --git a/files/en-us/web/xpath/guides/snippets/index.md b/files/en-us/web/xpath/guides/snippets/index.md index e7d0ccb52c259a0..324106a09ab7bcb 100644 --- a/files/en-us/web/xpath/guides/snippets/index.md +++ b/files/en-us/web/xpath/guides/snippets/index.md @@ -1,9 +1,9 @@ --- title: XPath snippets slug: Web/XPath/Guides/Snippets +page-type: guide sidebar: - xsltsidebar -page-type: guide --- This article provides some XPath code snippets — simple examples of how to a few simple **utility functions** based on standard interfaces from the [DOM Level 3 XPath specification](https://www.w3.org/TR/DOM-Level-3-XPath/) that expose XPath functionality to JavaScript code. The snippets are functions you can use in the real world in your own code. diff --git a/files/en-us/web/xpath/index.md b/files/en-us/web/xpath/index.md index 1f0c96250a583eb..6c2feadbcbcea35 100644 --- a/files/en-us/web/xpath/index.md +++ b/files/en-us/web/xpath/index.md @@ -1,9 +1,9 @@ --- title: XPath slug: Web/XPath +page-type: landing-page sidebar: - xsltsidebar -page-type: landing-page --- XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an [XML](/en-US/docs/Web/XML/XML_introduction) document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not. diff --git a/files/en-us/web/xpath/reference/axes/index.md b/files/en-us/web/xpath/reference/axes/index.md index 4ed08427d73b864..5b429e68b186ea2 100644 --- a/files/en-us/web/xpath/reference/axes/index.md +++ b/files/en-us/web/xpath/reference/axes/index.md @@ -1,9 +1,9 @@ --- title: Axes slug: Web/XPath/Reference/Axes +page-type: landing-page sidebar: - xsltsidebar -page-type: landing-page --- There are thirteen different axes in the [XPath](/en-US/docs/Web/XPath) specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree. diff --git a/files/en-us/web/xpath/reference/functions/boolean/index.md b/files/en-us/web/xpath/reference/functions/boolean/index.md index da3b1668285be6e..70eeddd7c6eaca2 100644 --- a/files/en-us/web/xpath/reference/functions/boolean/index.md +++ b/files/en-us/web/xpath/reference/functions/boolean/index.md @@ -1,9 +1,9 @@ --- title: boolean slug: Web/XPath/Reference/Functions/boolean +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `boolean` function evaluates an expression and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/ceiling/index.md b/files/en-us/web/xpath/reference/functions/ceiling/index.md index 46636d56e5476b1..aaa237a4fa15eda 100644 --- a/files/en-us/web/xpath/reference/functions/ceiling/index.md +++ b/files/en-us/web/xpath/reference/functions/ceiling/index.md @@ -1,9 +1,9 @@ --- title: ceiling slug: Web/XPath/Reference/Functions/ceiling +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `ceiling` function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/choose/index.md b/files/en-us/web/xpath/reference/functions/choose/index.md index 7b625d25d4e7259..af12796a65bc808 100644 --- a/files/en-us/web/xpath/reference/functions/choose/index.md +++ b/files/en-us/web/xpath/reference/functions/choose/index.md @@ -1,9 +1,9 @@ --- title: choose slug: Web/XPath/Reference/Functions/choose +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `choose` function returns one of the specified objects based on a boolean parameter. diff --git a/files/en-us/web/xpath/reference/functions/concat/index.md b/files/en-us/web/xpath/reference/functions/concat/index.md index 1621c339fe760de..47710c6c4ddc51d 100644 --- a/files/en-us/web/xpath/reference/functions/concat/index.md +++ b/files/en-us/web/xpath/reference/functions/concat/index.md @@ -1,9 +1,9 @@ --- title: concat slug: Web/XPath/Reference/Functions/concat +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `concat` function concatenates two or more strings and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/contains/index.md b/files/en-us/web/xpath/reference/functions/contains/index.md index b269167e941a35f..d853c9f141a0248 100644 --- a/files/en-us/web/xpath/reference/functions/contains/index.md +++ b/files/en-us/web/xpath/reference/functions/contains/index.md @@ -1,9 +1,9 @@ --- title: contains slug: Web/XPath/Reference/Functions/contains +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `contains` function determines whether the first argument string contains the second argument string and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/count/index.md b/files/en-us/web/xpath/reference/functions/count/index.md index 1766e457fd2ee70..680db31e61377c2 100644 --- a/files/en-us/web/xpath/reference/functions/count/index.md +++ b/files/en-us/web/xpath/reference/functions/count/index.md @@ -1,9 +1,9 @@ --- title: count slug: Web/XPath/Reference/Functions/count +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `count` function counts the number of nodes in a node-set and returns an integer. diff --git a/files/en-us/web/xpath/reference/functions/current/index.md b/files/en-us/web/xpath/reference/functions/current/index.md index 481846ab9273a33..e5fa2b168996d4a 100644 --- a/files/en-us/web/xpath/reference/functions/current/index.md +++ b/files/en-us/web/xpath/reference/functions/current/index.md @@ -1,9 +1,9 @@ --- title: current slug: Web/XPath/Reference/Functions/current +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `current` function can be used to get the context node in an XSLT instruction. diff --git a/files/en-us/web/xpath/reference/functions/document/index.md b/files/en-us/web/xpath/reference/functions/document/index.md index bdc10175070ebca..b7f7c7dd0020152 100644 --- a/files/en-us/web/xpath/reference/functions/document/index.md +++ b/files/en-us/web/xpath/reference/functions/document/index.md @@ -1,9 +1,9 @@ --- title: document slug: Web/XPath/Reference/Functions/document +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `document` finds a node-set in an external document, or multiple external documents, and returns the resulting node-set. diff --git a/files/en-us/web/xpath/reference/functions/element-available/index.md b/files/en-us/web/xpath/reference/functions/element-available/index.md index 5d8a1cc9cd22ea1..e0318e89947e6c7 100644 --- a/files/en-us/web/xpath/reference/functions/element-available/index.md +++ b/files/en-us/web/xpath/reference/functions/element-available/index.md @@ -1,9 +1,9 @@ --- title: element-available slug: Web/XPath/Reference/Functions/element-available +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `element-available` function determines if an element is available and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/false/index.md b/files/en-us/web/xpath/reference/functions/false/index.md index f3e9d56e6835378..53d435aa83ac9a0 100644 --- a/files/en-us/web/xpath/reference/functions/false/index.md +++ b/files/en-us/web/xpath/reference/functions/false/index.md @@ -1,9 +1,9 @@ --- title: "false" slug: Web/XPath/Reference/Functions/false +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `false` function returns boolean false. diff --git a/files/en-us/web/xpath/reference/functions/floor/index.md b/files/en-us/web/xpath/reference/functions/floor/index.md index 1f8c55e1185277a..f8a206aa1f13411 100644 --- a/files/en-us/web/xpath/reference/functions/floor/index.md +++ b/files/en-us/web/xpath/reference/functions/floor/index.md @@ -1,9 +1,9 @@ --- title: floor slug: Web/XPath/Reference/Functions/floor +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `floor` function evaluates a decimal number and returns the largest integer less than or equal to the decimal number. diff --git a/files/en-us/web/xpath/reference/functions/format-number/index.md b/files/en-us/web/xpath/reference/functions/format-number/index.md index 02dbd36109852e8..a9b12f1f7b7c021 100644 --- a/files/en-us/web/xpath/reference/functions/format-number/index.md +++ b/files/en-us/web/xpath/reference/functions/format-number/index.md @@ -1,9 +1,9 @@ --- title: format-number slug: Web/XPath/Reference/Functions/format-number +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `format-number` function evaluates a number and returns a string representing the number in a given format. diff --git a/files/en-us/web/xpath/reference/functions/function-available/index.md b/files/en-us/web/xpath/reference/functions/function-available/index.md index e02c975363c7b6d..e0b623a502727d0 100644 --- a/files/en-us/web/xpath/reference/functions/function-available/index.md +++ b/files/en-us/web/xpath/reference/functions/function-available/index.md @@ -1,9 +1,9 @@ --- title: function-available slug: Web/XPath/Reference/Functions/function-available +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `function-available` function determines if a given function is available and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/generate-id/index.md b/files/en-us/web/xpath/reference/functions/generate-id/index.md index fcbf15c90ba484a..0ff7f5abbc41c04 100644 --- a/files/en-us/web/xpath/reference/functions/generate-id/index.md +++ b/files/en-us/web/xpath/reference/functions/generate-id/index.md @@ -1,9 +1,9 @@ --- title: generate-id slug: Web/XPath/Reference/Functions/generate-id +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `generate-id` function generates a unique id for the first node in a given node-set and returns a string containing that id. diff --git a/files/en-us/web/xpath/reference/functions/id/index.md b/files/en-us/web/xpath/reference/functions/id/index.md index cf077a585b58ec8..74d3739b50ffba1 100644 --- a/files/en-us/web/xpath/reference/functions/id/index.md +++ b/files/en-us/web/xpath/reference/functions/id/index.md @@ -1,9 +1,9 @@ --- title: id slug: Web/XPath/Reference/Functions/id +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `id` function finds nodes matching the given ids and returns a node-set containing the identified nodes. diff --git a/files/en-us/web/xpath/reference/functions/index.md b/files/en-us/web/xpath/reference/functions/index.md index 32c729990f0db0b..cdb702695cf776d 100644 --- a/files/en-us/web/xpath/reference/functions/index.md +++ b/files/en-us/web/xpath/reference/functions/index.md @@ -2,9 +2,9 @@ title: XPath functions short-title: Functions slug: Web/XPath/Reference/Functions +page-type: listing-page sidebar: - xsltsidebar -page-type: reference --- The following is an annotated list of core [XPath](/en-US/docs/Web/XPath) functions and [XSLT](/en-US/docs/Web/XSLT)-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the [For Further Reading](/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT) page. diff --git a/files/en-us/web/xpath/reference/functions/key/index.md b/files/en-us/web/xpath/reference/functions/key/index.md index ffdeb2709a1529c..4664eff0d2cba1c 100644 --- a/files/en-us/web/xpath/reference/functions/key/index.md +++ b/files/en-us/web/xpath/reference/functions/key/index.md @@ -1,9 +1,9 @@ --- title: key slug: Web/XPath/Reference/Functions/key +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `key` function returns a node-set of nodes that have the given value for the given key. diff --git a/files/en-us/web/xpath/reference/functions/lang/index.md b/files/en-us/web/xpath/reference/functions/lang/index.md index 6d9c95d4d30f8f7..b4055dee25b9871 100644 --- a/files/en-us/web/xpath/reference/functions/lang/index.md +++ b/files/en-us/web/xpath/reference/functions/lang/index.md @@ -1,9 +1,9 @@ --- title: lang slug: Web/XPath/Reference/Functions/lang +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `lang` function determines whether the context node matches the given language and returns boolean true or false. diff --git a/files/en-us/web/xpath/reference/functions/last/index.md b/files/en-us/web/xpath/reference/functions/last/index.md index b193ee5a4b72e42..f6786c55fbbc8f0 100644 --- a/files/en-us/web/xpath/reference/functions/last/index.md +++ b/files/en-us/web/xpath/reference/functions/last/index.md @@ -1,9 +1,9 @@ --- title: last slug: Web/XPath/Reference/Functions/last +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `last` function returns a number equal to the context size from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/local-name/index.md b/files/en-us/web/xpath/reference/functions/local-name/index.md index 1363c26f916cac4..8e245e0f935e4cd 100644 --- a/files/en-us/web/xpath/reference/functions/local-name/index.md +++ b/files/en-us/web/xpath/reference/functions/local-name/index.md @@ -1,9 +1,9 @@ --- title: local-name slug: Web/XPath/Reference/Functions/local-name +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `local-name` function returns a string representing the local name of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/name/index.md b/files/en-us/web/xpath/reference/functions/name/index.md index 4694bcf6b788401..f5eddd6faa447ee 100644 --- a/files/en-us/web/xpath/reference/functions/name/index.md +++ b/files/en-us/web/xpath/reference/functions/name/index.md @@ -1,9 +1,9 @@ --- title: name slug: Web/XPath/Reference/Functions/name +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `name` function returns a string representing the QName of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md index 7e9e534cd8fe1d7..2775520971652ed 100644 --- a/files/en-us/web/xpath/reference/functions/namespace-uri/index.md +++ b/files/en-us/web/xpath/reference/functions/namespace-uri/index.md @@ -1,9 +1,9 @@ --- title: namespace-uri slug: Web/XPath/Reference/Functions/namespace-uri +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `namespace-uri` function returns a string representing the namespace URI of the first node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/normalize-space/index.md b/files/en-us/web/xpath/reference/functions/normalize-space/index.md index d345d99209f5452..f5fe0960dce2c8d 100644 --- a/files/en-us/web/xpath/reference/functions/normalize-space/index.md +++ b/files/en-us/web/xpath/reference/functions/normalize-space/index.md @@ -1,9 +1,9 @@ --- title: normalize-space slug: Web/XPath/Reference/Functions/normalize-space +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `normalize-space` function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string. diff --git a/files/en-us/web/xpath/reference/functions/not/index.md b/files/en-us/web/xpath/reference/functions/not/index.md index 263c0d03de41fe9..ce28e10c7d55c37 100644 --- a/files/en-us/web/xpath/reference/functions/not/index.md +++ b/files/en-us/web/xpath/reference/functions/not/index.md @@ -1,9 +1,9 @@ --- title: not slug: Web/XPath/Reference/Functions/not +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `not` function evaluates a boolean expression and returns the opposite value. diff --git a/files/en-us/web/xpath/reference/functions/number/index.md b/files/en-us/web/xpath/reference/functions/number/index.md index 35ba4b95be05a83..76cc547542dfbb6 100644 --- a/files/en-us/web/xpath/reference/functions/number/index.md +++ b/files/en-us/web/xpath/reference/functions/number/index.md @@ -1,9 +1,9 @@ --- title: number slug: Web/XPath/Reference/Functions/number +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `number` function converts an object to a number and returns the number. diff --git a/files/en-us/web/xpath/reference/functions/position/index.md b/files/en-us/web/xpath/reference/functions/position/index.md index 66a3f19c1ce791b..079ba3310c79caa 100644 --- a/files/en-us/web/xpath/reference/functions/position/index.md +++ b/files/en-us/web/xpath/reference/functions/position/index.md @@ -1,9 +1,9 @@ --- title: position slug: Web/XPath/Reference/Functions/position +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `position` function returns a number equal to the context position from the expression evaluation context. diff --git a/files/en-us/web/xpath/reference/functions/round/index.md b/files/en-us/web/xpath/reference/functions/round/index.md index 7eec509057de149..c899b1844d040bb 100644 --- a/files/en-us/web/xpath/reference/functions/round/index.md +++ b/files/en-us/web/xpath/reference/functions/round/index.md @@ -1,9 +1,9 @@ --- title: round slug: Web/XPath/Reference/Functions/round +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `round` function returns a number that is the nearest integer to the given number. diff --git a/files/en-us/web/xpath/reference/functions/starts-with/index.md b/files/en-us/web/xpath/reference/functions/starts-with/index.md index f959f3debeb5538..ec7f370d67fbdb2 100644 --- a/files/en-us/web/xpath/reference/functions/starts-with/index.md +++ b/files/en-us/web/xpath/reference/functions/starts-with/index.md @@ -1,9 +1,9 @@ --- title: starts-with slug: Web/XPath/Reference/Functions/starts-with +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `starts-with` checks whether the first string starts with the second string and returns true or false. diff --git a/files/en-us/web/xpath/reference/functions/string-length/index.md b/files/en-us/web/xpath/reference/functions/string-length/index.md index 6cd4a87a67122cc..fd2732583a6be9d 100644 --- a/files/en-us/web/xpath/reference/functions/string-length/index.md +++ b/files/en-us/web/xpath/reference/functions/string-length/index.md @@ -1,9 +1,9 @@ --- title: string-length slug: Web/XPath/Reference/Functions/string-length +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `string-length` function returns a number equal to the number of characters in a given string. diff --git a/files/en-us/web/xpath/reference/functions/string/index.md b/files/en-us/web/xpath/reference/functions/string/index.md index 2b8017cf15ab5e8..4c5edab428a92df 100644 --- a/files/en-us/web/xpath/reference/functions/string/index.md +++ b/files/en-us/web/xpath/reference/functions/string/index.md @@ -1,9 +1,9 @@ --- title: string slug: Web/XPath/Reference/Functions/string +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `string` function converts the given argument to a string. diff --git a/files/en-us/web/xpath/reference/functions/substring-after/index.md b/files/en-us/web/xpath/reference/functions/substring-after/index.md index 41b440969bab32b..a97ffc8f640d607 100644 --- a/files/en-us/web/xpath/reference/functions/substring-after/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-after/index.md @@ -1,9 +1,9 @@ --- title: substring-after slug: Web/XPath/Reference/Functions/substring-after +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `substring-after` function returns a string that is the rest of a given string after a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring-before/index.md b/files/en-us/web/xpath/reference/functions/substring-before/index.md index e92f98621b0a0ce..335b79fea5d028a 100644 --- a/files/en-us/web/xpath/reference/functions/substring-before/index.md +++ b/files/en-us/web/xpath/reference/functions/substring-before/index.md @@ -1,9 +1,9 @@ --- title: substring-before slug: Web/XPath/Reference/Functions/substring-before +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `substring-before` function returns a string that is the part of a given string before a given substring. diff --git a/files/en-us/web/xpath/reference/functions/substring/index.md b/files/en-us/web/xpath/reference/functions/substring/index.md index bf4e173b5b3be1e..efd02ff219d98de 100644 --- a/files/en-us/web/xpath/reference/functions/substring/index.md +++ b/files/en-us/web/xpath/reference/functions/substring/index.md @@ -1,9 +1,9 @@ --- title: substring slug: Web/XPath/Reference/Functions/substring +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `substring` function returns a part of a given string. diff --git a/files/en-us/web/xpath/reference/functions/sum/index.md b/files/en-us/web/xpath/reference/functions/sum/index.md index fcb92b057b0b539..8d30f5c08efccda 100644 --- a/files/en-us/web/xpath/reference/functions/sum/index.md +++ b/files/en-us/web/xpath/reference/functions/sum/index.md @@ -1,9 +1,9 @@ --- title: sum slug: Web/XPath/Reference/Functions/sum +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `sum` function returns a number that is the sum of the numeric values of each node in a given node-set. diff --git a/files/en-us/web/xpath/reference/functions/system-property/index.md b/files/en-us/web/xpath/reference/functions/system-property/index.md index c230882f660e6b5..9bb09cb5b46393e 100644 --- a/files/en-us/web/xpath/reference/functions/system-property/index.md +++ b/files/en-us/web/xpath/reference/functions/system-property/index.md @@ -1,9 +1,9 @@ --- title: system-property slug: Web/XPath/Reference/Functions/system-property +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `system-property` function returns an object representing the given system-property. diff --git a/files/en-us/web/xpath/reference/functions/translate/index.md b/files/en-us/web/xpath/reference/functions/translate/index.md index 6f0a085c110356c..a2e072b2a69d77e 100644 --- a/files/en-us/web/xpath/reference/functions/translate/index.md +++ b/files/en-us/web/xpath/reference/functions/translate/index.md @@ -1,9 +1,9 @@ --- title: translate slug: Web/XPath/Reference/Functions/translate +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `translate` function evaluates a string and a set of characters to translate and returns the translated string. diff --git a/files/en-us/web/xpath/reference/functions/true/index.md b/files/en-us/web/xpath/reference/functions/true/index.md index 8b60fd2043485ae..5889ee4fb16f460 100644 --- a/files/en-us/web/xpath/reference/functions/true/index.md +++ b/files/en-us/web/xpath/reference/functions/true/index.md @@ -1,9 +1,9 @@ --- title: "true" slug: Web/XPath/Reference/Functions/true +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `true` function returns a boolean value of true. diff --git a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md index 2f4c37c6af4adf4..66857c60e7eda6e 100644 --- a/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md +++ b/files/en-us/web/xpath/reference/functions/unparsed-entity-url/index.md @@ -1,9 +1,9 @@ --- title: unparsed-entity-url slug: Web/XPath/Reference/Functions/unparsed-entity-url +page-type: xpath-function sidebar: - xsltsidebar -page-type: xpath-function --- The `unparsed-entity-url()` function returns the URI of the unparsed entity with the given name. This is non-XML data referenced in the DTD of the source document. diff --git a/files/en-us/web/xpath/reference/index.md b/files/en-us/web/xpath/reference/index.md index 315f2a549106b1e..979726b047ad62f 100644 --- a/files/en-us/web/xpath/reference/index.md +++ b/files/en-us/web/xpath/reference/index.md @@ -2,9 +2,9 @@ title: XPath reference short-title: Reference slug: Web/XPath/Reference +page-type: landing-page sidebar: - xsltsidebar -page-type: landing-page --- The following pages contain reference documentation for XPath. From 6b42086352d8dc93330a653b6acd1ff1fc5e7cd5 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 31 Jan 2025 12:11:52 +0100 Subject: [PATCH 11/11] chore: revert sidebar changes --- files/sidebars/xsltsidebar.yaml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/files/sidebars/xsltsidebar.yaml b/files/sidebars/xsltsidebar.yaml index b27ac0873853518..62b41daf8e05e23 100644 --- a/files/sidebars/xsltsidebar.yaml +++ b/files/sidebars/xsltsidebar.yaml @@ -14,18 +14,8 @@ sidebar: - type: listSubPages path: /Web/EXSLT - type: section - link: /Web/XPath + link: /Web/XPath/Functions - type: listSubPages - path: /Web/XPath/Guides - title: Guides - includeParent: true - - title: Reference - link: /Web/XPath/Reference - - children: - - type: listSubPages - path: /Web/XPath/Reference/Functions - title: Functions - details: closed - includeParent: true - code: true - - /Web/XPath/Reference/Axes + path: /Web/XPath/Functions + - type: section + link: /Web/XPath/Axes