Re: [xsl] Empty object

Subject: Re: [xsl] Empty object
From: scott gabelhart <swgabel@xxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 20:30:58 -0500
Michael Kay wrote:

You're going to have to explain yourself better.

What's the input?

What's the desired output?

What do you mean by "empty"?

What on earth has SAX got to do with it?

Michael Kay



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of scott gabelhart
Sent: 25 January 2004 19:26
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Empty object



What is the best method for transforming empty objects that will parse sucessfully with SAX?


Example my current output contains
<tr><td>{blank , space...etc}</td></tr>

Thanks in advance.

- Scott

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list





XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Michael,

my mistake SAX has nothing to do with my problem...rather Xalan.

My input xml file contains empty elements that I need to carry the corresponding attribute values for each of these empty elements.

Of course when my transform complete I am stuck with XHTML that contains my favorite NONbreaking Space character.
Need to have my XHTML output to contain


<td style="bla" ..etc> {space currently is occupied by the NONbreaking Space character}. Need to replace when the actual element is empty the {NONbreaking Space character with a valid space holding character} Attempting to include the string <xsl:text disable-output-escaping="yes">&amp;amp;nbsp;</xsl:text> without much luck at the moment.

What is a best practice method for first determining if a element is empty; then replace that NONbreaking Space character with a character that will parse properly with Xalan?

Thanks in advance.

- Scott

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread