[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Empty object

Subject: Re: Empty object
From: scott gabelhart <swgabel@xxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 20:30:58 -0500
empty space character
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: 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.