主权项 |
1. A method for extending a selector application programming interface (API), the method comprising:
receiving, with a web content management server, a cascading style sheet (CSS) selector expressions comprising a plurality of expression components; determining, with the web content management server, whether an equivalent XML path language (XPath) expression can be generated for each of the expression components; and transforming, with the web content management server, each of the expression components for which an equivalent XPath expression cannot be generated into a transformed expression comprising at least one XPath expression and an extension function. |