New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node_xslt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node_xslt

A simple XSLT package for node.js

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-77.42%
Maintainers
1
Weekly downloads
 
Created
Source

node_xslt

xslt = require('node_xslt')

stylesheet = xslt.readXsltString(string);
// readXsltString
// Arguments: string containing XSLT
// Returns: stylesheet object

stylesheet = xslt.readXsltFile(filename);
// readXsltFile
// Arguments: filename to file containing XSLT
// Returns: stylesheet object

document = xslt.readXmlString(string);
// readXmlString
// Arguments: string containing XML
// Returns: document object

document = xslt.readXmlFile(filename);
// readXmlFile
// Arguments: filename to file containing XML
// Returns: document object

htmlDocument = xslt.readHtmlString(string);
// readHtmlString
// Arguments: string containing HTML
// Returns: document object

htmlDocument = xslt.readHtmlFile(string);
// readHtmlFile
// Arguments: filename to file containing HTML
// Returns: document object

transformedString = xslt.transform(stylesheet, document, parameters);
// transform
// Arguments:
//  * stylesheet: stylesheet object
//  * document: document object
//  * parameters: an array of parameters to be passed to the stylesheet. length must be multiple of 2.
//        Example: ['param1Name', 'param1Value', 'param2Name', 'param2Value']

Requirements

  • libxml2 (libxml2-dev package for Debian-based distros)
  • libxslt (libxslt-dev package for Debian-based distros)
  • libexslt (libxslt-dev package for Debian-based distros)
  • xml2-config (Needs to be on PATH)

Installation

npm

npm install node_xslt

source

In the root directory, run `node-gyp rebuild` to generate
./build/Release/node_xslt.node

FAQs

Package last updated on 30 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc