Git Product home page Git Product logo

dita-ot-css-pdf's Introduction

Oxygen XML Web Author Monitoring plugin

This plugin is used to provide monitoring information from a running Web Author instance.

Web Author collects various metrics about its runtime behavior. It can be configure to report these metrics in a number of ways.

In the browser

To access the information you should access one of the following URLs Note that you have to be logged in the Administration Page when visiting these URLs.

  • http://host:port/oxygen-xml-web-author/plugins-dispatcher/monitoring/threads - to get thread dumps of all threads
  • http://host:port/oxygen-xml-web-author/plugins-dispatcher/monitoring/metrics - to get various metrics about Web Author

In the server logs

By default, the monitoring information is written in JSON format in the server logs every minute. You can use various tools to parse this information and present a graphical dashboard.

To a Graphite server

You have to set the GRAPHITE_SERVER environment variable in order for Web Author to send monitoring information to this server.

To AWS CloudWatch

You have to set the following environment variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION
  • https_proxy - in cases you use one

By extending this plugin you can send the collected metrics also to other metrics servers.

Custom configuration

The name of the logger used by this plugin to log the above information is NO_LAYOUT_LOGGER.METRICS

WebAuthor default configuration defines a logger named NO_LAYOUT_LOGGER. This logger has a console appender with no layout, so any child logger (with a naming scheme NO_LAYOUT_LOGGER.<LOGGER_NAME>) will log only the messages to stdout.

To override this default configuration, a NO_LAYOUT_LOGGER.METRICS logger must be defined explicitly in WebAuthor logging configuration.

Copyright and License

Copyright 2018 Syncro Soft SRL.

This project is licensed under Apache License 2.0

dita-ot-css-pdf's People

Contributors

bogdangoreci avatar dan-caprioara avatar florinavram avatar raducoravu avatar stefanvasile avatar tofi86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dita-ot-css-pdf's Issues

Generating a single-page HTML?

I know that dita-css creates somewhere and somehow a single-page HTML as input for an external
CSS Paged Media converter. Is it possible to get hold of this file as part of the conversion process?

Spanned table rows do not seem to work

I have a DITA table with spanned rows using @morerows like the sample below. The spanned rows are not respected in the PDF (attached). In searching through the CSS code I can't find "morerows" so I assume it's not implemented. How can I fix this?

Thanks,
Mark

table.pdf

<concept id="table-test" xml:lang="en">
  <title>Table test</title>
  <shortdesc>The following chart is a quick overview. </shortdesc>
  <conbody>
    <table outputclass="type2">
      <tgroup cols="3">
        <colspec colname="1" />
        <colspec colname="2" />
        <colspec colname="3" />
        <thead>
          <row>
            <entry colname="1" nameend="1" namest="1">First Column</entry>
            <entry>Second Column</entry>
            <entry>Third Column</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry morerows="1">You need other help </entry>
            <entry>Hospital stay </entry>
            <entry>Text</entry>
          </row>
          <row>
            <entry>Doctor or surgeon care </entry>
            <entry>Text</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </conbody>
</concept>

even-odd table row colors don't work with spanned rows

I'm using Antenna House. I'm creating even-odd alternate-colored table rows by using ordinary nth-child CSS like this:

*[class~="topic/row"]:nth-child(even){ background: #DDEEFF; }

This works in the PDF. And row and columns spans work because of the fix in issue #10.

But when I combine table spans with even-odd CSS table row colors, the rows are rendered wrong. The colored row goes all the way across the row, without respecting the spanned rows. See dita-test.pdf.

dita-test.pdf

But Antenna House does this correctly with HTML/CSS to PDF. See html-test.pdf.

html-test.pdf

Any ideas?

I'm wondering if all this would be easier if I were using CSS on HTML instead of DITA XML.

Thanks,
Mark

Documents about this plugin

Hello,
I can use this plugin now. But if I want to modify it, do we have some documents as instructions? Such as, change cover page or header.
Thanks a lot.

Does not work with a single DITA-Topic

Trying to genereat a single Topic, not a MapI get the following Error:

merged2pdf:

BUILD FAILED
C:\Program Files\Oxygen XML Editor 16\frameworks\dita\DITA-OT\build.xml:53: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Editor 16\frameworks\dita\DITA-OT\plugins\com.sartorius-intec.pdf.prince\build.xml:60: input file C:\Users\hp\Desktop\temp\pdf-prince\stage1a.xml does not exist

Is the Transformation meant to work with single DITA-Topic Files?

Plugin seems to require Saxon-PE

Using DITA-OT v3.1 or v3.2.1, attempting to process a book fails in pdf-css.xslt-pipeline-post-process with these messages:

     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/review/review-utils.xsl:32:54: Warning! saxon:assign is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/review/review-utils.xsl:57:54: Warning! saxon:assign is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/review/review-utils.xsl:81:52: Warning! saxon:assign is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/review/review-utils.xsl:145:96: Warning! saxon:assign is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/review/review-utils.xsl:148:86: Warning! saxon:assign is not recognized as a Saxon instruction. Saxon extensions require Saxon-PE or higher
     [xslt] /Users/larry/bin/dita-ot-3.1/plugins/com.oxygenxml.pdf.css/xsl/merged2merged/merged-images.xsl:27:0: Fatal Error! Cannot find a 1-argument function named {java:ImageInfo}getImageSize(). Reflexive calls to Java methods are not available under Saxon-HE

Is there a workaround for this?

Option for turning off the TOC?

I don't see a parameter for turning off the table of contents page. Do you have a suggestion for the simplest way to turn it off?

Thanks,
Mark

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.