npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dtdanalyzer

v0.5.1

Published

A tool for analyzing and manipulating DTDs

Downloads

5

Readme

#DtdAnalyzer

DtdAnalyzer provides a set of tools:

  • dtdanalyzer - creates an XML representation (using elements and attributes) of an XML DTD
  • dtddocumentor - generates pretty HTML documentation, including annotations (if present) from specially-formatted comments of the DTD
  • dtdflatten - flattens a multi-file DTD into one big file. See also the Perl script script/dtdflatten.pl.
  • dtdcompare - compares two DTDs and generate a report of differences
  • dtd2xml2json - generates XSLT to convert instance documents into JSON format.
  • dtdschematron - generates a schematron file from the DTD, including extra schematron rules (if present) from specially-formatted comments of the DTD
  • scaffold.xsl - generates XSLT scaffolding that can be used as a starting point for writing a transform from one schema to another

Home page and documentation

The home page for this project is at http://dtd.nlm.nih.gov/ncbi/dtdanalyzer.

Detailed documentation is available on the GitHub wiki.

##Quick start

  • Download the latest release, either as a zip file: DtdAnalyzer-0.5.zip; or as a gzipped tar: DtdAnalyzer-0.5.tar.gz.

    Note: Do not use the "Zip" download button on the main GitHub page! That button downloads the source files, not the pre-built packages. They are different!

  • Unzip that file on your machine.

  • Open up a Windows command or a bash shell window. Add the path to the package root to your PATH environment variable.

    On Windows:

    set PATH=%PATH%;-path-to-dtdanalyzer-package-

    On Mac OS X or Unix:

    export PATH=$PATH:-path-to-dtdanalyzer-package-
  • Note for Mac OS X: This software depends on a utility called greadlink, which might not be installed on your system. To see whether or not it is, enter which greadlink at a terminal prompt. If it is not installed, then the easiest way to get it is with Homebrew. Install Homebrew, if necessary, and then enter brew install coreutils.

  • Try the following command (which analyzes the Journal Archiving and Interchange flavor of the NLM/NISO Journal Article Tag Suite, and writes the output to a file):

    dtdanalyzer http://jats.nlm.nih.gov/archiving/1.0/JATS-archivearticle1.dtd out.daz.xml
  • Check that you have sensible results in the output file, out.daz.xml.

  • As another example, the next command produces HTML documentation for that DTD. It should run for a little while and then announce that it's done, and that the documentation is in the doc subdirectory. (Enter all on one line).

    dtddocumentor http://jats.nlm.nih.gov/archiving/1.0/JATS-archivearticle1.dtd
      --exclude mml: --exclude-except mml:math
  • Open the doc/index.html file in a browser, and check that it looks good.

  • Run --help with any of the tools for more complete usage information, or continue by visiting the documentation pages on the GitHub wiki.

##Discussion forum / mailing list

This software is in beta stage.

Join the DtdAnalyzer Google group for discussions.

File bug reports at the GitHub issues page.

##Public domain

This work is in the public domain and may be reproduced, published or otherwise used without permission of the National Library of Medicine (NLM).

Although all reasonable efforts have been taken to ensure the accuracy and reliability of the software and data, the NLM and the U.S. Government do not and cannot warrant the performance or results that may be obtained by using this software or data. The NLM and the U.S. Government disclaim all warranties, express or implied, including warranties of performance, merchantability or fitness for any particular purpose.