Giter Site home page Giter Site logo

dita4publishers / org.dita4publishers.html2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 99 KB

Extension to the base HTML transform type. Does numbering across the publication, back-of-the-box index, dynamic ToC

License: Apache License 2.0

CSS 15.85% JavaScript 43.15% HTML 0.71% XSLT 40.28%

org.dita4publishers.html2's Issues

keydef.xml not generated, transformation fails (OT 2.3.1)

Trying to run the html2 transformation on OT 2.3.1. It fails with this error:

[adjust-copy-to]  + [DEBUG] saving topicToCopyToMap to file "file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/maps_administration/topicToCopyToMap.xml"...
[adjust-copy-to]  + [INFO] Copy-to Adjustments:
[adjust-copy-to]  + [INFO]   No adjustments made.
[adjust-copy-to]  + [INFO] makeJobFiles: Generating copyToChangesJob file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/copyToChangesJob.xml
[adjust-copy-to]  + [INFO] makeJobFiles: Generating updatedJob file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/updatedJob.xml
[adjust-copy-to]  + [INFO] updateKeydefXml: Generating updatedKeydef.xml file: file:/C:/Users/ben/AppData/Local/Temp/temp20160713143418485/updatedKeydefs.xml...
[adjust-copy-to]  + [INFO] Writing updated map document...
[adjust-copy-to]  + [INFO] Done.
Error: Warning: Could not find file C:\Users\ben\AppData\Local\Temp\temp20160713143418485\keydef.xml to copy.

The stock xhtml transtype completes without error.

XSLT fails with undeclared parameter failure

     [xslt] /Applications/oxygen/frameworks/dita/DITA-OT/xsl/common/dita-utilities.xsl:8:80: Warning! Stylesheet module plugin:org.dita.base:xsl/common/dita-utilities.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
     [xslt] /Applications/oxygen/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.html2/xsl/map2html2DynamicToc.xsl:223:69: Fatal Error! Parameter parentId is not declared in the called template
     [xslt] /Applications/oxygen/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.html2/xsl/map2html2DynamicToc.xsl:235:69: Fatal Error! Parameter parentId is not declared in the called template
     [xslt] /Applications/oxygen/frameworks/dita/DITA-OT/plugins/net.sourceforge.dita4publishers.html2/xsl/map2html2DynamicToc.xsl:249:69: Fatal Error! Parameter parentId is not declared in the called template
     [xslt] Failed to process null

map level chunking not producing the html output using 'org.dita4publishers.html2' plugin

I am using chunk="content" in topichead tag like below, to generate merged topic html file using DITA OT Plugin org.dita4publishers.html2 plugin then its generating Chunk363995000.html output

My ditamap file

<map>
<title>Directory</title>
<topichead chunk="to-content">
<topicmeta class="- map/topicmeta "><navtitle>Details</navtitle></topicmeta>
<topicref class="- map/topicref " href="dita1.xml"/>
	<topicref class="- map/topicref " href="dita2.xml"/>
	<topicref class="- map/topicref " href="dita3.xml"/></topichead>
</map>

If I have used chunk="to-content" in root element 'map' without 'topichead' as mentioned below its not generating merged topic html file using DITA OT Plugin org.dita4publishers.html2 plugin

<map chunk="to-content">
<title>Directory</title>
<topicref class="- map/topicref " href="dita1.xml"/>
	<topicref class="- map/topicref " href="dita2.xml"/>
	<topicref class="- map/topicref " href="dita3.xml"/>
</map>

Please give me any suggestions to overcome 'map' level chunking in html2 plugin

Thanks in Advance.

Factor out requirement for math plugins

HTML2 currently requires the math and math-d plugins. It shouldn't require those. Need to factor out and parameterize anything that creates a dependency on the D4P math plugins.

Output file URL creation does not take @copy-to into account

When copy-to processing is applied in preprocessing, the @href values on topicrefs are not updated to reflect the @copy-to. Rather, the @copy-to value is retained on the topicref, in addition to the @href value.

This means that determination of result file URLs must use @copy-to if it's specified in preference to @href.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.