cssToXpath: Translate a css path to an xpath.

Description Usage Arguments Value Examples

View source: R/cssToXpath.R

Description

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.

Usage

1
cssToXpath(cssPath, prefix = "//")

Arguments

cssPath

Character. A CSS path

prefix

Character string appended at the beggining of the xpath query. Valid options are "/", "//", "./" and ".//"

Value

A character string representing an xpath query.

Examples

1
2
cssToXpath(".character>.name")
cssToXpath("#character1 .name")

cuche27/CSS documentation built on Oct. 20, 2019, 1:09 a.m.