From petal-list at 2xlp.com Thu May 3 18:51:09 2007 From: petal-list at 2xlp.com (Jonathan Vanasco) Date: Thu May 3 18:51:32 2007 Subject: [Petal] omit-tag -- Petal DOCUMENTATION inconsistency with TAL spec Message-ID: <8EC32EBF-232F-4A9F-B765-57443163121F@2xlp.com> I just learned this on another TAL list... regarding omit-tag, the TAL spec states If the expression evaluates to a true value, *** or there is no expression *** ie: no conditional/statement is interpreted as true whereas the Petal implementation states: If you want to ALWAYS remove a tag, you can use omit-tag="string:1" The petal behavior should be If you want to ALWAYS remove a tag, you should use omit-tag="" It looks as if this was implemented in v1.06 -- but the docs were never updated to reflect the correct behavior. From rabbit at rabbit.us Wed May 23 15:32:20 2007 From: rabbit at rabbit.us (Peter Rabbitson) Date: Wed May 23 15:32:35 2007 Subject: [Petal] Petal alters XML as if it is XHTML Message-ID: <46545074.70903@rabbit.us> Hi, I might be doing something wrong, but when explicitly feeding XML and outputting XML, the result has all self closing tags (e.g.
) split into two tags (e.g.

). How can I stop this from happening? Here is a simple test script: ============================================================== use warnings; use strict; use File::Spec::Functions qw/splitpath/; use File::Temp (); use Petal; print "====\n$Petal::VERSION\n====\n\n"; my $fh = File::Temp->new or die "$@\n"; print $fh <<'EOD' Test Page

Paragraph with a
break

EOD ; my $petal = Petal->new ( base_dir => (splitpath ($fh->filename))[1], file => (splitpath ($fh->filename))[2], input => 'XML', output => 'XML', ); print $petal->process(); ============================================================= and here is the output I get: ============================================================= ==== 2.19 ==== Test Page

Paragraph with a

break

============================================================= Thanks! Peter