[erlang-questions] xsltproc - erl_doc runtime error: Variable 'stylesheet' has not been declared.
borja.carbo@REDACTED
borja.carbo@REDACTED
Sat Dec 5 09:43:27 CET 2015
Hi
You are completly right,
Not just stylesheet, but also winprefix, pdfname and logo seems to be
compulsory.
I have discovered some interdependences with regards to values for the
directory variables.
With the modifications (appended below) I managed to generate the
documentation.
Is there anyway the same do not happen to other Erlang users?
Thanks and Best Regards / Borja
laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$ xsltproc
--noout \
> --stringparam outdir
> /home/laptop/MyProjects/InErlang/lib/basura-1.0.0/doc/ \
> --stringparam topdocdir /usr/local/lib/erlang/doc\
> --stringparam pdfdir . \
> --xinclude \
> --stringparam stylesheet ../lib/erl_docgen-0.4/priv/css/otp_doc.css \
> --stringparam winprefix Erlang \
> --stringparam logo ../lib/erl_docgen-0.4/priv/images/erlang-logo.png \
> --stringparam pdfname pdfname \
> --stringparam docgen /usr/local/lib/erlang/lib/erl_docgen-0.4 \
> --stringparam gendate "December 5 2011" \
> --stringparam appname application_example \
> --stringparam appver 1.0.0 \
> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd \
> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd_html_entities \
> /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl \
> application_example.xml
laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$
S'està citant Kenneth Lundin <kenneth@REDACTED>:
> Hi,
>
> Look in https://github.com/erlang/otp/blob/maint/make/otp_release_targets.mk
> for an example of how to call xsltproc. The variable stylesheet is supposed
> to be given as a stringparam to the call of xslt.
>
> /Kenneth
> Den 4 dec 2015 16:30 skrev <borja.carbo@REDACTED>:
>
>>
>> Trying to follow the examples from the erl_doc documentation I have found
>> the error from the title and I reproduce here.
>>
>>
>> laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$ xsltproc
>> --noout \
>>
>>> --stringparam outdir . \
>>> --stringparam topdocdir . \
>>> --stringparam pdfdir . \
>>> --xinclude \
>>> --stringparam docgen /usr/local/lib/erlang/lib/erl_docgen-0.4 \
>>> --stringparam gendate "December 5 2011" \
>>> --stringparam appname application_example \
>>> --stringparam appver 1.0.0 \
>>> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd \
>>> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd_html_entities \
>>> /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl \
>>> application_example.xml
>>>
>> runtime error: file
>> /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl line 582
>> element choose
>> Variable 'stylesheet' has not been declared.
>> laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$
>>
>>
>> The file I used is just a simple modification of the example in the same
>> documentation. Attached and named "application_example.xml". file placed in
>> the same directory from where the command is executed.
>>
>> The command generated a small file (attached and named
>> "Application_Example_app.html") although meaningless.
>>
>> Is this a bug or simple I missed something?
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
More information about the erlang-questions
mailing list