Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libxml-filter-detectws-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libxml-filter-detectws-perl  ]

套件: libxml-filter-detectws-perl (0.01-7)

Perl module for detecting ignorable whitespace

The XML::Filter::DetectWS module is a PerlSAX filter that detects which character data contains ignorable whitespace and optionally filters it.

The XML spec defines ignorable whitespace as the character data found in elements that were defined in an <!ELEMENT> declaration with a model of 'EMPTY' or 'Children' (Children is the rule that does not contain '#PCDATA').

In addition, XML::Filter::DetectWS allows the user to define other whitespace to be ignorable. The ignorable whitespace is passed to the PerlSAX Handler with the ignorable_whitespace handler, provided that the Handler implements this method. Otherwise it is passed to the characters handler. If the SkipIgnorableWS is set, the ignorable whitespace is simply discarded. XML::Filter::DetectWS also takes xml:space attributes into account.

CDATA sections are passed in the standard PerlSAX way (i.e. with surrounding start_cdata and end_cdata events), unless the Handler does not implement these methods. In that case, the CDATA section is simply passed to the characters method.

其他與 libxml-filter-detectws-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libxml-filter-saxt-perl
    Perl module for replicating events to several event handlers
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libxml-filter-detectws-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 12.7 kB76 kB [文件列表]