This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4962 - [Ser]: Empty tag representation
Summary: [Ser]: Empty tag representation
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Serialization 1.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows XP
: P2 enhancement
Target Milestone: ---
Assignee: Scott Boag
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-20 08:14 UTC by Michael Kay
Modified: 2007-11-15 17:46 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2007-08-20 08:14:06 UTC
Transferred from email sent by devi.webmaster@gmail.com to public-qt-commments on 9 Aug 2007.

I have found in my work that it is sometimes helpful to produce XML
output that is not always parsed by a real XML parser. Specifically, it would
be helpful if I could have an XSLT processing instruction which would 
represent empty tags as <tag></tag> instead of <tag />. I do not
believe such an instruction currently exists in any XSLT
specifications and thought you might consider it for future versions.

-------------------------------------------
Daniel Brumbaugh Keeney
Devi Web Development
Devi.WebMaster@gMail.com
Comment 1 Henry Zongaro 2007-10-25 17:10:30 UTC
Thank you for your suggestion.

The XSL Working Group discussed your suggestion at its 25 October 2007 teleconference and noted that the description of the xml output method in the Serialization Recommendation permits a conforming serializer to represent empty tags in either of the ways you mention.  As such, a conforming serializer can already provide an implementation-specific option to the user to select which style of empty tag is desired.

For this reason, the working group has decided not to add such a feature or option as a requirement for a future revision of either the XSLT or Serialization recommendations.