Resolved another conflict

This commit is contained in:
2023-04-19 13:27:06 +02:00
parent 5c39b7cfe0
commit 2f0541fe3d
2 changed files with 335 additions and 297 deletions

View File

@@ -440,12 +440,11 @@ body {
.content {
padding: 0px 15px 0px 15px ;
text-align: justify;
text-align: left;
overflow: hidden;
transition: max-height .2s ease-out;
max-height: 0px;
border-left: #c0c2c3 2px solid;
}
.collapsibleMini::before{

View File

@@ -52,9 +52,8 @@
onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea>
<br><br>
<label for="transformArea"><b>Insert your XPath:</b></label>
<textarea id="transformArea" name="transformArea"
class="bordered-field vertically-resizeable max-width" rows="4"
onblur="setDefaultContent(this, 'Insert XPath expression here');"
<textarea id="transformArea" name="transformArea" class="bordered-field vertically-resizeable max-width"
rows="4" onblur="setDefaultContent(this, 'Insert XPath expression here');"
onfocus="clearDefaultContent(this, 'Insert XPath expression here');"></textarea>
<br>
<button id="requestButton" class="max-width block-label action-button active"
@@ -63,20 +62,36 @@
<br><br>
<label for="resultArea"><b>Transform result:<span id="procinfo"></span></b></label>
<textarea disabled id="resultArea" name="resultArea"
class="textarea-300 bordered-field vertically-resizeable max-width" style="margin-bottom: 50px;" rows="10" cols="100"></textarea>
class="textarea-300 bordered-field vertically-resizeable max-width" style="margin-bottom: 50px;"
rows="10" cols="100"></textarea>
</div>
</div>
<div class="tooltip tooltip-window rwd-hideable">
<h2>What is XPath?</h2>
<p>XPath is a query language used for selecting nodes from XML and processing them.<br>
It may perform operations on strings, numbers and boolean values.<br></p>
<p>
XPath is a query language used for selecting nodes from XML and processing them.<br>
It may perform operations on strings, numbers and boolean values.<br>
</p>
<p>
<h2>Semantics legend:</h2>
<p>
"+" - 1 or more elements
</p>
<p>
"*" - 0 or more elements
</p>
<p>
"?" - optional element
</p>
</p>
<span id="collapsible-lists">
<div class="collapsible">
<span>
<button class="section-button collapseTrigger" style="border: none">XPath 1.0 vs 2.0 vs 3.0 vs
3.1</button>
<button class="section-button collapseTrigger" style="border: none">
XPath 1.0 vs 2.0 vs 3.0 vs 3.1
</button>
</span>
<div class="content">
<p><b>XPath 2.0 introduced many new features XQuery-cośtam:</b><br>
@@ -348,7 +363,16 @@
<a href="#" onClick="return false;"
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:lang()</code></a>
<div class="content">
The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang returns false. If there is such an attribute, then lang returns true if the attribute value is equal to the argument ignoring case, or if there is some suffix starting with - such that the attribute value is equal to the argument ignoring that suffix of the attribute value and ignoring case. <br>
The lang function returns true or false depending on whether the language of the context
node as specified by xml:lang attributes is the same as or is a sublanguage of the
language specified by the argument string. The language of the context node is
determined by the value of the xml:lang attribute on the context node, or, if the
context node has no xml:lang attribute, by the value of the xml:lang attribute on the
nearest ancestor of the context node that has an xml:lang attribute. If there is no such
attribute, then lang returns false. If there is such an attribute, then lang returns
true if the attribute value is equal to the argument ignoring case, or if there is some
suffix starting with - such that the attribute value is equal to the argument ignoring
that suffix of the attribute value and ignoring case. <br>
<b>Arguments:</b>
<table class="table-doc">
<tr>
@@ -906,7 +930,6 @@
</div>
</div>
<div class="collapsible">
<span>
<button class="section-button collapseTrigger" style="border: none">Numeric</button>
@@ -919,10 +942,16 @@
<div class="content">
The number function converts its argument to a number as follows:
<ul>
<li>a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN</li>
<li>a string that consists of optional whitespace followed by an optional minus sign
followed by a Number followed by whitespace is converted to the IEEE 754 number
that is nearest (according to the IEEE 754 round-to-nearest rule) to the
mathematical value represented by the string; any other string is converted to
NaN</li>
<li>boolean true is converted to 1; boolean false is converted to 0</li>
<li>a node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument</li>
<li>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</li>
<li>a node-set is first converted to a string as if by a call to the string function
and then converted in the same way as a string argument</li>
<li>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</li>
</ul>
<b>Arguments:</b>
@@ -956,7 +985,8 @@
<a href="#" onClick="return false;"
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:sum()</code></a>
<div class="content">
The sum function returns the sum, for each node in the argument node-set, of the result of converting the string-values of the node to a number.<br>
The sum function returns the sum, for each node in the argument node-set, of the result
of converting the string-values of the node to a number.<br>
<b>Arguments:</b>
<table class="table-doc">
@@ -985,7 +1015,8 @@
<a href="#" onClick="return false;"
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:floor()</code></a>
<div class="content">
The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer.<br>
The floor function returns the largest (closest to positive infinity) number that is not
greater than the argument and that is an integer.<br>
<b>Arguments:</b>
<table class="table-doc">
@@ -1022,7 +1053,8 @@
<a href="#" onClick="return false;"
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:ceiling()</code></a>
<div class="content">
The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.<br>
The ceiling function returns the smallest (closest to negative infinity) number that is
not less than the argument and that is an integer.<br>
<b>Arguments:</b>
<table class="table-doc">
@@ -1060,10 +1092,18 @@
<a href="#" onClick="return false;"
class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:round()</code></a>
<div class="content">
The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is closest to positive infinity is returned. If the argument is NaN, then NaN is returned. If the argument is positive infinity, then positive infinity is returned. If the argument is negative infinity, then negative infinity is returned. If the argument is positive zero, then positive zero is returned. If the argument is negative zero, then negative zero is returned. If the argument is less than zero, but greater than or equal to -0.5, then negative zero is returned.
The round function returns the number that is closest to the argument and that is an
integer. If there are two such numbers, then the one that is closest to positive
infinity is returned. If the argument is NaN, then NaN is returned. If the argument is
positive infinity, then positive infinity is returned. If the argument is negative
infinity, then negative infinity is returned. If the argument is positive zero, then
positive zero is returned. If the argument is negative zero, then negative zero is
returned. If the argument is less than zero, but greater than or equal to -0.5, then
negative zero is returned.
<h4>NOTE</h4>
For these last two cases, the result of calling the round function is not the same as the result of adding 0.5 and then calling the floor function.<br>
For these last two cases, the result of calling the round function is not the same as
the result of adding 0.5 and then calling the floor function.<br>
<b>Arguments:</b>
<table class="table-doc">
@@ -1099,7 +1139,6 @@
</div>
</div>
</span>
<span name="collapse20">
<div class="collapsible">