Skip Menu |
 

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 38627
Status: rejected
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: jtbraun [...] CPAN.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.32
Fixed in: (no value)



Subject: Add support for html-like tags (<TAGNAME atts="foo" />) outside of html
Download (untitled) / with headers
text/plain 469b
Choosing empty_tags => 'html' only outputs html-style empty tags (closed with ' />') when the GI for the tag is a recognized HTML tag that is allowed to be empty. Can a new empty_tag style be added that outputs html-like tag endings regardless of the GI of the tag? Using: Xml::twig 3.32 Perl: This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 5 registered patches, see perl -V for more detail) windows32 HOSTNAME 2.6.0 6001 i686-pc Intel unknown MinGW
Download (untitled) / with headers
text/plain 923b
On Wed Aug 20 16:59:00 2008, jtbraun wrote: Show quoted text
> Choosing empty_tags => 'html' only outputs html-style empty tags (closed > with ' />') when the GI for the tag is a recognized HTML tag that is > allowed to be empty. > > Can a new empty_tag style be added that outputs html-like tag endings > regardless of the GI of the tag? > > Using: > Xml::twig 3.32 > Perl: This is perl, v5.10.0 built for MSWin32-x86-multi-thread > (with 5 registered patches, see perl -V for more detail) > windows32 HOSTNAME 2.6.0 6001 i686-pc Intel unknown MinGW
Is there any specific reason for this? Usually HTML-style empty tags are only used so that old browsers display properly tags like br and hr. If you have a tool that needs that style for other tags, I suspect it is not really an XML tool. Some post-processing of the XML output by XML::Twig might be just as easy, and would not impact other users. Does this make sense? __ mirod
Subject: Re: [rt.cpan.org #38627] Add support for html-like tags (<TAGNAME atts="foo" />) outside of html
Date: Mon, 25 Aug 2008 11:25:33 -0700 (Pacific Daylight Time)
To: MIROD via RT <bug-XML-Twig [...] rt.cpan.org>
From: "Jeremy T. Braun" <jtbraun [...] speakeasy.net>
Download (untitled) / with headers
text/plain 1.4k
Some Microsoft XML tools generate empty tags like this (Windows CE's Platform Builder, which probably uses MSXML, but who knows). Diffing files generated by XML::Twig and by these other tools is painful unless the tags close the same way. There isn't a technical reason for it, 'normal' tags work just fine. However, you're correct that it wouldn't be too hard to add a space into each closing tag after generating the output, it would just be easier to have XML::Twig do it directly when outputting the tag. If you feel that adding this negatively impacts other users, I can work around it. On Mon, 25 Aug 2008, MIROD via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=38627 > > > On Wed Aug 20 16:59:00 2008, jtbraun wrote:
>> Choosing empty_tags => 'html' only outputs html-style empty tags (closed >> with ' />') when the GI for the tag is a recognized HTML tag that is >> allowed to be empty. >> >> Can a new empty_tag style be added that outputs html-like tag endings >> regardless of the GI of the tag?
> > Is there any specific reason for this? > > Usually HTML-style empty tags are only used so that old browsers display > properly tags like br and hr. > > If you have a tool that needs that style for other tags, I suspect it is > not really an XML tool. Some post-processing of the XML output by > XML::Twig might be just as easy, and would not impact other users. > > Does this make sense? > > __ > mirod >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.