Opened 5 months ago

Closed 5 months ago

#70304 closed defect (fixed)

xlstproc @1.1.40: fails to process --path

Reported by: mouse07410 (Mouse) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libxslt

Description

MacOS Sonoma 14.5. Screen log should tell the complete story:

$ xsltproc --path "/Users/ur20980/src/OpenSC/doc/tools/..:/opt/local/share/xsl/docbook-xsl-nons/manpages" --xinclude -o dtrust-tool.1 man.xsl < dtrust-tool.1.ed.xml 
I/O error : failed to load "docbook.xsl": No such file or directory
I/O error : failed to load "/Users/ur20980/src/OpenSC/doc/tools/../docbook.xsl": No such file or directory
compilation error: file man.xsl line 3 element import
xsl:import : unable to load docbook.xsl
$ xsltproc --path "/opt/local/share/xsl/docbook-xsl-nons/manpages/" --xinclude -o dtrust-tool.1 man.xsl < dtrust-tool.1.ed.xml 
I/O error : failed to load "docbook.xsl": No such file or directory
compilation error: file man.xsl line 3 element import
xsl:import : unable to load docbook.xsl
$ ll /opt/local/share/xsl/docbook-xsl-nons/manpages/docbook.xsl
-rw-r--r--  1 root  wheel  15182 Dec  9  2016 /opt/local/share/xsl/docbook-xsl-nons/manpages/docbook.xsl
$ 

Change History (4)

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

I cannot follow your reproduction recipe because:

zsh: no such file or directory: dtrust-tool.1.ed.xml

and:

zsh: command not found: ll

comment:2 Changed 5 months ago by mouse07410 (Mouse)

OK, a (more) complete reproducer, assuming you're in OpenSC/doc/tools/ directory, aka, you cloned https://github.com/OpenSC/Opensc.git:

$ pwd
/Users/ur20980/src/OpenSC/doc/tools
$ cp ../man.xsl .
$ 
$ sed -e 's|@pkgdatadir[@]|/Library/OpenSC/share/opensc|g' < dtrust-tool.1.xml > dtrust-tool.1.ed.xml
$ less dtrust-tool.1.ed.xml
$ xsltproc --path "/opt/local/share/xsl/docbook-xsl-nons/manpages/" -o dtrust-tool.1 man.xsl < dtrust-tool.1.ed.xml 
I/O error : failed to load "docbook.xsl": No such file or directory
compilation error: file man.xsl line 3 element import
xsl:import : unable to load docbook.xsl
$ 

comment:3 Changed 5 months ago by mouse07410 (Mouse)

libxslt-1.1.41_0 appears to fix this problem, thank you.

comment:4 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Summary: xlstproc fails to process --pathxlstproc @1.1.40: fails to process --path
Note: See TracTickets for help on using tickets.