New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lxml-xpath2-functions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lxml-xpath2-functions

Set of Xpath 2.0 functions which you can register in lxml

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

=========== WS Recorder

Changelog

  • 0.0.4:

    • Added a new function for lowering text (Mathieu Leduc-Hamel).
  • 0.0.3:

    • Defined default prefix 'xp2f'.
  • 0.0.2:

    • Changed default namespace.
  • 0.0.1:

    • Added function: string-join.

Support

  • Environments: Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4, PyPy

Description

Set of Xpath2 functions which you can register in lxml. User register all or chosen functions and use them in own xpaths. Xpaths are accessible under default namespace: http://kjw.pt/xpath2-functions or empty namespace if needed.

Usage

Example::

from lxml import etree
import xpath2_functions

# registering all available functions in default namespace
xpath2_functions.register_functions(etree)

# registering chosen functions in the empty namespace
xpath2_functions.register_functions(etree, ns=None, functions=['string-join'])

Functions

  • string-join (arg1 as xs:string, arg2 as xs:string) - returns an arg1 created by concatenating the members of the $arg1 sequence using $arg2 as a separator. If the value of $arg2 is the zero-length string, then the members of $arg1 are concatenated without a separator.
  • lower-case (arg1 as xs:string) - returns an arg1 converted to lower-cased string.

Contributors

  • Kamil Kujawinski
  • Mathieu Leduc-Hamel (xpath functions: lower-case)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc