http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/xml2js/node_modules/sax/LICENSE-W3C.html ---------------------------------------------------------------------- diff --git a/blackberry10/node_modules/xml2js/node_modules/sax/LICENSE-W3C.html b/blackberry10/node_modules/xml2js/node_modules/sax/LICENSE-W3C.html deleted file mode 100644 index a611e3f..0000000 --- a/blackberry10/node_modules/xml2js/node_modules/sax/LICENSE-W3C.html +++ /dev/null @@ -1,188 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="generator" content="HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org" /><title>W3C Software Notice and License</title><link rel="stylesheet" href="/2008/site/css/minimum" type="text/css" media="handheld, all" /><style type="text/css" media="print, screen and (min-width: 481px)" xml:space="preserve"> - @import url("/2008/site/css/advanced"); -</style><link href="/2008/site/css/minimum" rel="stylesheet" type="text/css" media="handheld, only screen and (max-device-width: 480px)" /><meta name="viewport" content="width=device-width" /><link rel="stylesheet" href="/2008/site/css/print" type="text/css" media="print" /><link rel="shortcut icon" href="/2008/site/images/favicon.ico" type="image/x-icon" /></head><body id="www-w3-org" class="w3c_public"><div id="w3c_container"> - - - - <div id="w3c_mast"> - <h1 class="logo"> - <a tabindex="2" accesskey="1" href="/"><img src="/2008/site/images/logo-w3c-mobile-lg" width="90" height="53" alt="W3C" /></a> - <span class="alt-logo">W3C</span> - </h1> - - <div id="w3c_nav"> - - - - <form action="/Help/search" method="get" enctype="application/x-www-form-urlencoded"><div class="w3c_sec_nav"><!-- --></div><ul class="main_nav"><li class="first-item"> - <a href="/standards/">Standards</a> - </li><li> - <a href="/participate/">Participate</a> - </li><li> - <a href="/Consortium/membership">Membership</a> - </li><li class="last-item"> - <a href="/Consortium/">About W3C</a> - </li><li class="search-item"> - <div id="search-form"> - <input tabindex="3" class="text" name="q" value="" title="Search" type="text" /> - <button id="search-submit" name="search-submit" type="submit"><img class="submit" src="/2008/site/images/search-button" alt="Search" width="21" height="17" /></button> - </div> - </li></ul></form> - </div> - - </div> - - - <div id="w3c_main"> - <div id="w3c_logo_shadow" class="w3c_leftCol"> - <img height="32" alt="" src="/2008/site/images/logo-shadow" /> - </div> - - <div class="w3c_leftCol"><h2 class="offscreen">Site Navigation</h2> - <h3 class="category"><span class="ribbon"><a href="/Consortium/Legal/ipr-notice.html" title="Up to Policies and Legal Information">Policies and Legal Information <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3> - <ul class="theme"> - <li><a href="/Consortium/Legal/2008/04-testsuite-copyright.html">Licenses for W3C Test Suites</a></li> - <li><a href="/2004/10/27-testcases.html">Policies for Contribution of Test Cases to W3C</a></li> - <li><a href="/Consortium/Legal/IPR-FAQ-20000620.html">Intellectual Rights FAQ</a></li> - <li><a href="/Consortium/Legal/privacy-statement-20000612.html">W3C Privacy Statements</a></li> - <li><a href="/Consortium/Legal/2002/copyright-documents-20021231.html">W3C Document License</a></li> - <li><a href="/Consortium/Legal/2002/trademarks-20021231.html">W3C Trademarks and Generic Terms</a></li> - <li><a href="/Consortium/Legal/2002/trademark-license-20021231.html">W3C® Trademark and Service Mark License</a></li> - <li><a class="current">W3C Software Notice and License</a></li> - <li><a href="/Consortium/Legal/2002/collaborators-agreement-20021231.html">W3C Invited Expert and Collaborators Agreement</a></li> - <li><a href="/Consortium/Persistence.html">W3C URI Persistence Policy</a></li> - <li><a href="/1999/10/21-mirroring-policy.html">Mirroring the W3C Site</a></li> - <li><a href="/Consortium/Legal/2006/08-copyright-translations.html">Translations of the Copyright Notice</a></li> - </ul> - <br /></div> - <div class="w3c_mainCol"> - <div id="w3c_crumbs"> - <div id="w3c_crumbs_frame"> - <ul class="bct"> <!-- .bct / Breadcrumbs --> - <li class="skip"><a tabindex="1" accesskey="2" title="Skip to content (e.g., when browsing via audio)" href="#w3c_content_body">Skip</a></li> - <li><a href="/">W3C</a> <span class="cr">»</span> </li> - <li><a href="/Consortium/">About W3C</a> <span class="cr">»</span> </li> - <li><a href="/Consortium/facts.html">Facts About W3C</a> <span class="cr">»</span> </li> - <li><a href="/Consortium/Legal/ipr-notice.html">Policies and Legal Information</a> <span class="cr">»</span> </li> - <li class="current">W3C Software Notice and License</li> - </ul> - </div> - </div> - <h1 class="title">W3C Software Notice and License</h1> - <div id="w3c_content_body"> - <div class="line"> - <p class="intro tPadding">This work (and included software, documentation such as READMEs, or other -related items) is being provided by the copyright holders under the following -license.</p> -<h2>License</h2> - - <p class="tPadding"> -By obtaining, using and/or copying this work, you (the licensee) -agree that you have read, understood, and will comply with the following -terms and conditions.</p> - - <p>Permission to copy, modify, and distribute this software and its -documentation, with or without modification, for any purpose and without -fee or royalty is hereby granted, provided that you include the following on -ALL copies of the software and documentation or portions thereof, including -modifications:</p> - - <ul class="show_items"><li>The full text of this NOTICE in a location viewable to users of the - redistributed or derivative work.</li><li>Any pre-existing intellectual property disclaimers, notices, or terms - and conditions. If none exist, the <a href="copyright-software-short-notice-20021231.html">W3C Software Short - Notice</a> should be included (hypertext is preferred, text is permitted) - within the body of any redistributed or derivative code.</li><li>Notice of any changes or modifications to the files, including the date - changes were made. (We recommend you provide URIs to the location from - which the code is derived.)</li></ul> - -<h2>Disclaimers</h2> - - <p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS -MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR -PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE -ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p> - - <p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR -DOCUMENTATION.</p> - - <p>The name and trademarks of copyright holders may NOT be used in -advertising or publicity pertaining to the software without specific, written -prior permission. Title to copyright in this software and any associated -documentation will at all times remain with copyright holders.</p> - - <h2>Notes</h2> - - <p>This version: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</p> - - <p>This formulation of W3C's notice and license became active on December 31 -2002. This version removes the copyright ownership notice such that this -license can be used with materials other than those owned by the W3C, -reflects that ERCIM is now a host of the W3C, includes references to this -specific dated version of the license, and removes the ambiguous grant of -"use". Otherwise, this version is the same as the <a href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous -version</a> and is written so as to preserve the <a href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free -Software Foundation's assessment of GPL compatibility</a> and <a href="http://www.opensource.org/licenses/W3C.php">OSI's certification</a> -under the <a href="http://www.opensource.org/docs/definition.php">Open Source -Definition</a>.</p> - </div> - </div> - </div> - </div> - - - - </div><div id="w3c_footer"> - <div id="w3c_footer-inner"> - <h2 class="offscreen">Footer Navigation</h2> - <div class="w3c_footer-nav"> - <h3>Navigation</h3> - <ul class="footer_top_nav"><li> - <a href="/">Home</a> - </li><li> - <a href="/standards/">Standards</a> - </li><li> - <a href="/participate/">Participate</a> - </li><li> - <a href="/Consortium/membership">Membership</a> - </li><li class="last-item"> - <a href="/Consortium/">About W3C</a> - </li></ul> - </div> - <div class="w3c_footer-nav"> - <h3>Contact W3C</h3> - <ul class="footer_bottom_nav"><li> - <a href="/Consortium/contact">Contact</a> - </li><li> - <a accesskey="0" href="/Help/">Help and FAQ</a> - </li><li> - <a href="/Consortium/sponsor/">Sponsor / Donate</a> - </li><li> - <a href="/Consortium/siteindex">Site Map</a> - </li><li> - <address id="w3c_signature"> - <a href="http://lists.w3.org/Archives/Public/site-comments/">Feedback</a></address> - </li></ul> - </div> - <div class="w3c_footer-nav"> - <h3>W3C Updates</h3> - <ul class="footer_follow_nav"><li> - <a href="http://twitter.com/W3C" title="Follow W3C on Twitter"> - <img src="/2008/site/images/twitter-bird" alt="Twitter" width="78" height="83" class="social-icon" /> - </a> - <a href="http://identi.ca/w3c" title="See W3C on Identica"> - <img src="/2008/site/images/identica-logo" alt="Identica" width="91" height="83" class="social-icon" /> - </a> - </li></ul> - </div> - <p class="copyright">Copyright © 2012 W3C <sup>®</sup> (<a href="http://www.csail.mit.edu/"> - <acronym title="Massachusetts Institute of Technology">MIT</acronym> - </a>, <a href="http://www.ercim.org/"> - <acronym title="European Research Consortium for Informatics and Mathematics"> ERCIM</acronym> - </a>, <a href="http://www.keio.ac.jp/">Keio</a>) <a href="/Consortium/Legal/ipr-notice">Usage policies apply</a>.</p> - </div> - </div><!-- Generated from data/scripts.php, ../../smarty/{scripts.tpl} --><!-- At the bottom for performance reasons --><div id="w3c_scripts"> - <script type="text/javascript" src="/2008/site/js/main" xml:space="preserve"><!-- --></script> - </div></body></html>
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/xml2js/node_modules/sax/README.md ---------------------------------------------------------------------- diff --git a/blackberry10/node_modules/xml2js/node_modules/sax/README.md b/blackberry10/node_modules/xml2js/node_modules/sax/README.md deleted file mode 100644 index c965242..0000000 --- a/blackberry10/node_modules/xml2js/node_modules/sax/README.md +++ /dev/null @@ -1,216 +0,0 @@ -# sax js - -A sax-style parser for XML and HTML. - -Designed with [node](http://nodejs.org/) in mind, but should work fine in -the browser or other CommonJS implementations. - -## What This Is - -* A very simple tool to parse through an XML string. -* A stepping stone to a streaming HTML parser. -* A handy way to deal with RSS and other mostly-ok-but-kinda-broken XML - docs. - -## What This Is (probably) Not - -* An HTML Parser - That's a fine goal, but this isn't it. It's just - XML. -* A DOM Builder - You can use it to build an object model out of XML, - but it doesn't do that out of the box. -* XSLT - No DOM = no querying. -* 100% Compliant with (some other SAX implementation) - Most SAX - implementations are in Java and do a lot more than this does. -* An XML Validator - It does a little validation when in strict mode, but - not much. -* A Schema-Aware XSD Thing - Schemas are an exercise in fetishistic - masochism. -* A DTD-aware Thing - Fetching DTDs is a much bigger job. - -## Regarding `<!DOCTYPE`s and `<!ENTITY`s - -The parser will handle the basic XML entities in text nodes and attribute -values: `& < > ' "`. It's possible to define additional -entities in XML by putting them in the DTD. This parser doesn't do anything -with that. If you want to listen to the `ondoctype` event, and then fetch -the doctypes, and read the entities and add them to `parser.ENTITIES`, then -be my guest. - -Unknown entities will fail in strict mode, and in loose mode, will pass -through unmolested. - -## Usage - - var sax = require("./lib/sax"), - strict = true, // set to false for html-mode - parser = sax.parser(strict); - - parser.onerror = function (e) { - // an error happened. - }; - parser.ontext = function (t) { - // got some text. t is the string of text. - }; - parser.onopentag = function (node) { - // opened a tag. node has "name" and "attributes" - }; - parser.onattribute = function (attr) { - // an attribute. attr has "name" and "value" - }; - parser.onend = function () { - // parser stream is done, and ready to have more stuff written to it. - }; - - parser.write('<xml>Hello, <who name="world">world</who>!</xml>').close(); - - // stream usage - // takes the same options as the parser - var saxStream = require("sax").createStream(strict, options) - saxStream.on("error", function (e) { - // unhandled errors will throw, since this is a proper node - // event emitter. - console.error("error!", e) - // clear the error - this._parser.error = null - this._parser.resume() - }) - saxStream.on("opentag", function (node) { - // same object as above - }) - // pipe is supported, and it's readable/writable - // same chunks coming in also go out. - fs.createReadStream("file.xml") - .pipe(saxStream) - .pipe(fs.createWriteStream("file-copy.xml")) - - - -## Arguments - -Pass the following arguments to the parser function. All are optional. - -`strict` - Boolean. Whether or not to be a jerk. Default: `false`. - -`opt` - Object bag of settings regarding string formatting. All default to `false`. - -Settings supported: - -* `trim` - Boolean. Whether or not to trim text and comment nodes. -* `normalize` - Boolean. If true, then turn any whitespace into a single - space. -* `lowercase` - Boolean. If true, then lowercase tag names and attribute names - in loose mode, rather than uppercasing them. -* `xmlns` - Boolean. If true, then namespaces are supported. -* `position` - Boolean. If false, then don't track line/col/position. - -## Methods - -`write` - Write bytes onto the stream. You don't have to do this all at -once. You can keep writing as much as you want. - -`close` - Close the stream. Once closed, no more data may be written until -it is done processing the buffer, which is signaled by the `end` event. - -`resume` - To gracefully handle errors, assign a listener to the `error` -event. Then, when the error is taken care of, you can call `resume` to -continue parsing. Otherwise, the parser will not continue while in an error -state. - -## Members - -At all times, the parser object will have the following members: - -`line`, `column`, `position` - Indications of the position in the XML -document where the parser currently is looking. - -`startTagPosition` - Indicates the position where the current tag starts. - -`closed` - Boolean indicating whether or not the parser can be written to. -If it's `true`, then wait for the `ready` event to write again. - -`strict` - Boolean indicating whether or not the parser is a jerk. - -`opt` - Any options passed into the constructor. - -`tag` - The current tag being dealt with. - -And a bunch of other stuff that you probably shouldn't touch. - -## Events - -All events emit with a single argument. To listen to an event, assign a -function to `on<eventname>`. Functions get executed in the this-context of -the parser object. The list of supported events are also in the exported -`EVENTS` array. - -When using the stream interface, assign handlers using the EventEmitter -`on` function in the normal fashion. - -`error` - Indication that something bad happened. The error will be hanging -out on `parser.error`, and must be deleted before parsing can continue. By -listening to this event, you can keep an eye on that kind of stuff. Note: -this happens *much* more in strict mode. Argument: instance of `Error`. - -`text` - Text node. Argument: string of text. - -`doctype` - The `<!DOCTYPE` declaration. Argument: doctype string. - -`processinginstruction` - Stuff like `<?xml foo="blerg" ?>`. Argument: -object with `name` and `body` members. Attributes are not parsed, as -processing instructions have implementation dependent semantics. - -`sgmldeclaration` - Random SGML declarations. Stuff like `<!ENTITY p>` -would trigger this kind of event. This is a weird thing to support, so it -might go away at some point. SAX isn't intended to be used to parse SGML, -after all. - -`opentag` - An opening tag. Argument: object with `name` and `attributes`. -In non-strict mode, tag names are uppercased, unless the `lowercase` -option is set. If the `xmlns` option is set, then it will contain -namespace binding information on the `ns` member, and will have a -`local`, `prefix`, and `uri` member. - -`closetag` - A closing tag. In loose mode, tags are auto-closed if their -parent closes. In strict mode, well-formedness is enforced. Note that -self-closing tags will have `closeTag` emitted immediately after `openTag`. -Argument: tag name. - -`attribute` - An attribute node. Argument: object with `name` and `value`. -In non-strict mode, attribute names are uppercased, unless the `lowercase` -option is set. If the `xmlns` option is set, it will also contains namespace -information. - -`comment` - A comment node. Argument: the string of the comment. - -`opencdata` - The opening tag of a `<![CDATA[` block. - -`cdata` - The text of a `<![CDATA[` block. Since `<![CDATA[` blocks can get -quite large, this event may fire multiple times for a single block, if it -is broken up into multiple `write()`s. Argument: the string of random -character data. - -`closecdata` - The closing tag (`]]>`) of a `<![CDATA[` block. - -`opennamespace` - If the `xmlns` option is set, then this event will -signal the start of a new namespace binding. - -`closenamespace` - If the `xmlns` option is set, then this event will -signal the end of a namespace binding. - -`end` - Indication that the closed stream has ended. - -`ready` - Indication that the stream has reset, and is ready to be written -to. - -`noscript` - In non-strict mode, `<script>` tags trigger a `"script"` -event, and their contents are not checked for special xml characters. -If you pass `noscript: true`, then this behavior is suppressed. - -## Reporting Problems - -It's best to write a failing test if you find an issue. I will always -accept pull requests with failing tests if they demonstrate intended -behavior, but it is very hard to figure out what issue you're describing -without a test. Writing a test is also the best way for you yourself -to figure out if you really understand the issue you think you have with -sax-js. http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/xml2js/node_modules/sax/component.json ---------------------------------------------------------------------- diff --git a/blackberry10/node_modules/xml2js/node_modules/sax/component.json b/blackberry10/node_modules/xml2js/node_modules/sax/component.json deleted file mode 100644 index 96b5d73..0000000 --- a/blackberry10/node_modules/xml2js/node_modules/sax/component.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "sax", - "description": "An evented streaming XML parser in JavaScript", - "author": "Isaac Z. Schlueter <[email protected]> (http://blog.izs.me/)", - "version": "0.5.2", - "main": "lib/sax.js", - "license": "BSD", - "scripts": [ - "lib/sax.js" - ], - "repository": "git://github.com/isaacs/sax-js.git" -}
