module PrototypeProcessor
smx.Prototype. PrototypeProcessor
This processor will parse and process all
Details:
- To Do:
-
- Try other good looking CSS parsers, like CSSParser or CSSOM.
- Implement an alternative selector engine for XSLT Patterns.
Methods
processXMLDocument(xml, options)
- async
- inner
Processes the given XMLDocument
Parameters
-
xml
{XMLDocument}
-
options
{Object}
-
[max_iterations=1]
{Integer}
:Maximum number of prototype blocks to process at once.
-
[propagate=true]
{Boolean}
:If true the processed data will be propagated to matching XML nodes.
-
callback
{function}
:Callback function executed on processing complete.
-
processXMLNode(xmlNode) → {Object|String|Array.<Object>}
- inner
Processes the given XMLNode
Parameters
-
xmlNode
{XMLNode}
Returns
-
{Object}
:data
-
{String}
:data.id
-
{Array.<Object>}
:data.rules