Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure are not resolved properly #60

Open
blefort opened this issue Nov 2, 2015 · 4 comments
Open

Figure are not resolved properly #60

blefort opened this issue Nov 2, 2015 · 4 comments

Comments

@blefort
Copy link
Contributor

blefort commented Nov 2, 2015

When referencing a figure with a xref, only the label Figure appear in the reference.

@blefort blefort added the bug label Nov 2, 2015
@blefort
Copy link
Contributor Author

blefort commented Nov 2, 2015

@drmacro Could you give me a pointer ?, I am not sure how the figure is resolved in the D4P architecture.

Thank you

B.

@drmacro
Copy link
Member

drmacro commented Nov 2, 2015

The link text creation is done during preprocessing, so not a D4P issue.

The relevant template appears to be this one:

  <xsl:template match="*" mode="topicpull:getlinktext_within-topic_fig">

in topicpullImpl.xsl

The HTML5 transform should be producing the same link text as the normal XHTML transform as far as I can tell.

@blefort-uo
Copy link
Contributor

Thank you very much Eliot !

I am not sure what is happening but I will find it.

Cheers

@blefort
Copy link
Contributor Author

blefort commented Nov 4, 2015

There is an optional ant parameter that could be pass args.figurelink.style , according to the doc:
"Specifies how cross references to figures are styled in output. The allowed values are NUMBER and TITLE. Specifying NUMBER results in "Figure 5"; specifying TITLE results in the title of the figure. Corresponds to the XSLT parameter FIGURELINK."
see: http://www.dita-ot.org/1.8/readme/ant-parameters-all-transformation-types.html

@blefort blefort added enhancement and removed bug labels Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants