RE: [xsl] Getting expanded empty tag format

Subject: RE: [xsl] Getting expanded empty tag format
From: "Nathan Young -X \(natyoung - Artizen at Cisco\)" <natyoung@xxxxxxxxx>
Date: Thu, 17 Nov 2005 09:59:35 -0800
Hi Gary.

I know it's kind of a hack, but could you put a space, non-breaking
space or <wbr/> element inside the <p>?  If you're primarily concerned
with how the browser interprests the XML there's usually something you
can do to force the tag not to be minimized without effecting how it
displays.

--->N

> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
> Sent: Tuesday, November 15, 2005 10:38 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] Getting expanded empty tag format
>
> If the XForms processor is expecting the XHTML conventions to
> be followed,
> then you can use xsl:output method="xhtml". Otherwise no,
> there's no way of
> controlling this aspect of the serialization (other than
> writing your own
> serializer, which you could do by subclassing the relevant
> parts of the
> Saxon serializer).
>
> Michael Kay
> http://www.saxonica.com/
>
> > -----Original Message-----
> > From: Gary Stewart [mailto:the.stewarg@xxxxxxxxx]
> > Sent: 15 November 2005 17:07
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] Getting expanded empty tag format
> >
> > Is there a way, in XSL (I'm currently using Saxon), to use the long
> > format for an empty tag. So rather than:
> >
> > <p/>
> >
> > get:
> >
> > <p></p>
> >
> > It's just that an XForms processor I'm using is fine with the latter
> > but doesn't like the former.
> >
> > Thanks!
> >
> > Gary

Current Thread