Description Usage Arguments Value Examples
this function translates a CSS path in an xpath query. It is used by
cssApply
and you generally won't have to use it directly.
Nevertheless, it may be useful for debug if cssApply
does
unexpected things.
1 | cssToXpath(cssPath, prefix = "//")
|
cssPath |
Character. A CSS path |
prefix |
Character string appended at the beggining of the xpath query. Valid options are "/", "//", "./" and ".//" |
A character string representing an xpath query.
1 2 | cssToXpath(".character>.name")
cssToXpath("#character1 .name")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.