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

XSLT Error: Unsupported AST node subscript/superscript for DITA publishing to markdown_github format #18

Closed
ritti opened this Issue Jul 13, 2018 · 1 comment

Comments

Projects
2 participants
@ritti

ritti commented Jul 13, 2018

I have a dita file that contains superscripts and subscript
(see https://www.oxygenxml.com/dita/1.3/specs/langRef/base/sub.html )

GitHub Flavored Markdown supports the tags <sub> and <sup>.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<dita>
  <topic id="id_40a72787efc94c2a8bb6e60f8cac2b2c">
	<title>Test</title>
	<shortdesc>Test element <i>sub</i> and <i>sup</i></shortdesc>
	<body>
		<p>
		This is some testsub<sub>1</sub> and testsup<sup>2</sup>.
		</p>
	</body>
  </topic>
</dita>

When I transform with DITA-OT 3.1 the dita file with Option --format=markdown_github
I get an xslt error in the logfile:

     [xslt] ERROR: Unsupported AST node subscript
     [xslt] ERROR: Unsupported AST node superscript

Result looks like:

Result begin:

Test

Test element sub and sup

This is some testsub1 and testsup2.

Result end

Expected output should look like:

Expected begin:

Test

Test element sub and sup

This is some testsub1 and testsup2.

Expected end:

Is it possible that this also can be supported?

jelovirt added a commit that referenced this issue Jul 19, 2018

@jelovirt jelovirt added this to To do in 2.0.6 via automation Jul 19, 2018

@jelovirt jelovirt moved this from To do to In progress in 2.0.6 Jul 19, 2018

@jelovirt jelovirt moved this from In progress to Done in 2.0.6 Jul 19, 2018

@jelovirt jelovirt modified the milestones: 2.0.5, 2.0.6 Jul 19, 2018

@jelovirt jelovirt closed this Jul 19, 2018

@ritti

This comment has been minimized.

Show comment
Hide comment
@ritti

ritti Sep 24, 2018

After retesting with DITA-OT 3.1.2 the error

[xslt] ERROR: Unsupported AST node subscript

[xslt] ERROR: Unsupported AST node superscript
does not appear any more, but the result is still the same:

# Test {#id_40a72787efc94c2a8bb6e60f8cac2b2c}

Test element *sub* and *sup*

This is some testsub1 and testsup2.

Please reopen the issue-

ritti commented Sep 24, 2018

After retesting with DITA-OT 3.1.2 the error

[xslt] ERROR: Unsupported AST node subscript

[xslt] ERROR: Unsupported AST node superscript
does not appear any more, but the result is still the same:

# Test {#id_40a72787efc94c2a8bb6e60f8cac2b2c}

Test element *sub* and *sup*

This is some testsub1 and testsup2.

Please reopen the issue-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment