View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Yanick Champoux > XML-XSS > XML::XSS::Comment

Download:
XML-XSS-0.3.5.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v0.3.5   Source  

NAME ^

XML::XSS::Comment - XML::XSS comment stylesheet rule

VERSION ^

version 0.3.5

SYNOPSIS ^

    use XML::XSS;

    my $xss = XML::XSS->new;

    my $cmt_style = $xss->comment;

    $cmt_style->set_filter( sub { s/^/#/gm; $_ } );

    print $xss->render( '<doc><!-- foo -->yadah yadah</doc>' );

DESCRIPTION ^

A XML::XSS rule that matches against the comment nodes of a document to be rendered.

RENDERING ATTRIBUTES ^

For a document, the displayed attributes follow the template:

    pre
    [text]
    post

process, pre, showtag, rename, post

Same attribute behaviors as in XML::XSS::Element.

replace, filter

Same attribute behaviors as in XML::XSS::Text.

AUTHOR ^

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2017, 2013, 2011, 2010 by Yanick Champoux.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: