[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xpath - check for no content
As far as I understand your problem, the normalize-space() test provided by
Ken is your solution. You want to test whether there is *no text* in your
element, where *no text* means for you *no non-whitespace text*. The simple
test on text() fails, because there are whitespaces. Trim them by
normalize-space() and you'll see whether there is *non-whitespace text*
contained or not. There will be no difference to handle the break.
Regards, Joerg sascha wrote: I have to transform this into xsl:fo ! so, i do really NEED the additional break here! background is- i am tranforming a Lotus Notes XML Export into a PDF Dokument. Some linbreaks and Paragraphs don't "get through" my templates at the moment. I am trying to figure out what's wrong or try to find a workaround, so that the output looks like the Notes document. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|