Re: [xsl] Getting expanded empty tag format

Subject: Re: [xsl] Getting expanded empty tag format
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 Nov 2005 18:18:44 GMT
> Is there a way, in XSL (I'm currently using Saxon), to use the long
> format for an empty tag. So rather than:

If it's XHTML and you are using saxon8 then you can use xslt2's xhtml
output method.

Otherwise just make sure the element is non empty, eg add a space.

> It's just that an XForms processor I'm using is fine with the latter
> but doesn't like the former.

Er that would be broken behaviour as the XML spec places a clear
requiremnt on parsers to treat these the same way, so another solution
would be to report the bug and see if the XForms processor can be fixed.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread