Corrected CSS ends-with example
This was supposed to use the "$=" operator and not the "=" operator.
This commit is contained in:
parent
f5425b07e0
commit
5f037c76cc
|
@ -364,7 +364,7 @@ numbers="1 2 3" />` but _not_ the element `<foo numbers="2 3 1" />`.
|
||||||
The corresponding XPath expression is quite complex due to a lack of a
|
The corresponding XPath expression is quite complex due to a lack of a
|
||||||
`ends-with` function in XPath. Instead one has to resort to using the
|
`ends-with` function in XPath. Instead one has to resort to using the
|
||||||
`substring()` function. As such the corresponding XPath expression for
|
`substring()` function. As such the corresponding XPath expression for
|
||||||
`foo[bar="baz"]` is as following:
|
`foo[bar$="baz"]` is as following:
|
||||||
|
|
||||||
foo[substring(@bar, string-length(@bar) - string-length("baz") + 1, string-length("baz")) = "baz"]
|
foo[substring(@bar, string-length(@bar) - string-length("baz") + 1, string-length("baz")) = "baz"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue