diff options
author | Frank Sachsenheim <funkyfuture@users.noreply.github.com> | 2021-10-17 19:27:47 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-11-01 10:48:23 +0100 |
commit | 3f77f6f04f7e0c086625c2ab674dfcfb709c0448 (patch) | |
tree | d08ceff585c59b0a0b1f1543c5dc6584280891c4 /doc | |
parent | 9d2be1fabd7a1a5157762e0f19bcfb30c84d399a (diff) | |
download | python-lxml-3f77f6f04f7e0c086625c2ab674dfcfb709c0448.tar.gz |
Updates FAQ.txt with a detail regarding XPath (GH-329)
XPath 2.0 supports default namespaces, and the statement in the FAQ was hence not completely true.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/FAQ.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/FAQ.txt b/doc/FAQ.txt index ce2595eb..48f69a6a 100644 --- a/doc/FAQ.txt +++ b/doc/FAQ.txt @@ -1239,8 +1239,8 @@ Element. Its children will then inherit this prefix for serialization. How can I specify a default namespace for XPath expressions? ------------------------------------------------------------ -You can't. In XPath, there is no such thing as a default namespace. Just use -an arbitrary prefix and let the namespace dictionary of the XPath evaluators +You can't. In XPath 1.0, there is no such thing as a default namespace. Just +use an arbitrary prefix and let the namespace dictionary of the XPath evaluators map it to your namespace. See also the question above. |