XML-Sablotron
view release on metacpan or search on metacpan
XML::Sablotron::DOM::parseStylesheet($sit, $uri);
=over 4
=item $sit
The situation to be used.
=item $uri
The URI of the stylesheet to be parsed.
=back
=head2 parseStylesheetBuffer
This function parses the stylesheet given by the literal data.
XML::Sablotron::DOM::parseStylesheetBuffer($sit, $data);
=over 4
=item $sit
The situation to be used.
=item $data
The string containing the stylesheet to be parsed.
=back
=head1 XML::Sablotron::DOM::Node
This package is used to represent the Sablotron internal
representation of the node. It is the common ancestor of all other
types.
=head2 equals
Check if the to perl representations of the node represent the same
node in the DOM document. Not in DOM spec.
B<Synopsis:>
$node1->equals($node2);
=over 4
=item $node2
The node to be compared to.
=back
=head2 getNodeName
For ELEMENT_NODE and ATTRIBUTE_NODE returns the name of the node. For
other node types return as follows:
TEXT_NODE => "#text", CDATA_SECTION_NODE => "#cdata-section",
COMMENT_NODE => "#comment", DOCUMENT_NODE => "#document",
PROCESSING_INSTRUCTION_NODE => target of this node
Not in DOM spec.
B<Synopsis:>
$node->getNodeName([$situa]);
=over 4
=item $situa
The situation to be used (optional).
=back
=head2 setNodeName
Sets the name of the node. Not in DOM spec.
B<Exceptions:>
=over 4
=item NO_MODIFICATION_ALLOWED_ERR
for TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE and DOCUMENT_NODE
for ATTRIBUTE_NODE:if attempt to set name of attribute, which defines
namespace used by coresponding element or by another attribute of
coresponding element
=item NAMESPACE_ERR
for ELEMENT_NODE:if unknown prefix is used to set name
for ATTRIBUTE_NODE:if attempt to change non-namespace attribute to
namespace attribute a vice versa
=back
B<Synopsis:>
$node->setNodeName($name [, $situa]);
=over 4
=item $name
The new node name.
=item $situa
The situation to be used (optional).
=back
=head2 nodeName
Gets or sets the name of the node.
( run in 2.260 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )