You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DC file contains XSLTPARAM="--param show.edit.link=1".
We use a command that defines the same parameter again: daps -d DC-RA-Ampere-SES --force -vv html --stringparam='show.edit.link=1'
xsltproc complains about the parameter having been defined already and refuses to cooperate:
runtime error
Global parameter show.edit.link already defined
runtime error
Global parameter show.edit.link already defined
Writing /data/gits/sbp/build/RA-Ampere-SES/html/RA-Ampere-SES/index.html for article
no result for /data/gits/sbp/build/.profiled/noprofile/RA-Ampere-SES.xml
make: *** [/usr/share/daps/make/html.mk:271: /data/gits/sbp/build/RA-Ampere-SES/html/RA-Ampere-SES/index.html] Error 9
Expected behavior
The (last defined) parameter from the command line should gain precedence and overwrite the other(s). Build should succeed.
We set the same parameter again within the Docserv2 environment and
xsltproc does not like parameters defined twice and thus fails to
build.
Reported as DAPS issue: openSUSE/daps#589
Congratulations to Meike who is our new MVP of bug-finding,
uncovering two issues in a day by adding a single parameter to DC
files. 🎉
Problem description
XSLTPARAM="--param show.edit.link=1"
.daps -d DC-RA-Ampere-SES --force -vv html --stringparam='show.edit.link=1'
xsltproc complains about the parameter having been defined already and refuses to cooperate:
Expected behavior
The (last defined) parameter from the command line should gain precedence and overwrite the other(s). Build should succeed.
References
The text was updated successfully, but these errors were encountered: