|
NAMEhxselect - extract elements or attributes that match a (CSS) selectorSYNOPSIShxselect [ -i ] [ -c ] [ -l language ] [ -s separator ] selectorsDESCRIPTIONhxselect reads a well-formed XML document and outputs all elements and attributes that match one of the CSS selectors that are given as an argument. For example
hxselect ol li:first-child selects the first li (list item in XHTML) in an ol (ordered list). If there are multiple selectors, they must be separated by commas. For example,
hxselect p + ul, blockquote ol selects all ul elements that follow a p and all ol elements that are descendants of a blockquote element. The command operates on the standard input. hxselect assumes that class selectors (".foo") refer to an attribute called "class" and that ID selectors ("#foo") refer to an attribute called "id". The experimental attribute node selector '::attr(name)' is supported and selects the attribute of that name. Comments and processing instructions are ignored, i.e., they are read but never written. OPTIONSThe following options are supported:
OPERANDSThe following operand is supported:
BUGSCase-insensitive selectors (option -i) currently only works for ASCII characters ("a" matches "A"), not for other characters ("ä" does not match "Ä").SEE ALSOasc2xml(1), xml2asc(1), hxnormalize(1), hxremove(1), UTF-8 (RFC 2279)
Visit the GSP FreeBSD Man Page Interface. |