#5436 closed defect (fixed)
Can't compile master, getting docbook error on address standardizer
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.4.0 |
Component: | build | Version: | 3.3.x |
Keywords: | Cc: |
Description (last modified by )
make[1]: Entering directory '/projects/postgis/postgis-git/doc' tag=tag_address_standardizer_required; \ /projects/xsltproc/xmllint --xpath "/config/tags/para[@role='$tag']/node()" xsl-config.xml > address_standardizer_required.tag.tmp && \ mv address_standardizer_required.tag.tmp address_standardizer_required.tag XPath error : Invalid expression C:/ming64gcc81/msys/config/tags/para[@role='tag_address_standardizer_required']/node()
Change History (11)
follow-up: 2 comment:1 by , 16 months ago
Description: | modified (diff) |
---|
comment:3 by , 16 months ago
does inverting the quotes work ?
xmllint --xpath '/config/tags/para[@role="tag_Z_support"]' doc/xsl-config.xml
comment:4 by , 16 months ago
With [d81ed384088daf42186c035b09d63128d67171f3/git] that code is gone and was replaced with direct use of xsltproc
comment:5 by , 16 months ago
Same problem with xsltproc:
/projects/xsltproc/xsltproc --stringparam xpath "/config/tags/para[@role='$tag']" -o address_standardizer_required.tag xsl/node_by_xpath.xsl xsl-config.xml XPath error : Invalid expression C:/ming64gcc81/msys/config/tags/para[@role='tag_address_standardizer_required'] ^ dyn:evaluate() : unable to evaluate expression 'C:/ming64gcc81/msys/config/tags/para[@role='tag_address_standardizer_required']'
See https://winnie.postgis.net/job/PostGIS_EDB_Regress_winnie/16866/console
How '/config/' became 'C:/ming64gcc81/msys/config' I don't understand
comment:6 by , 16 months ago
comment:8 by , 16 months ago
If path conversion disabilitation doesn't work nicely one possible alternative could be adding a space before the slash in the xpath, like xpath " /config/tags/..."
comment:10 by , 16 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Seems to be fixed with the narrower skip of path replacement: https://winnie.postgis.net/job/PostGIS_EDB_Regress_winnie/16870/console
What version of xmllint do you have ?
This works for me, from the top source dir with libxml version 20913 (xmllint --version):
It returns:
Maybe we can implement what we need (extracting a tag by an XPath expression) via xsltproc, given we are already using that for other things ?