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

Re: Re: WML input problem

Subject: Re: Re: WML input problem
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 16 Jul 2002 09:50:28 +0200
e. paul dickinson
ashu t wrote:
> thanks Joerg
> i have written the stylesheet as you suggested but it is still producing
> the doubled output.
> i think we should give some condition in the template match="form" that
> aply-templates to all but the text following <input>but how??????


Add the following empty template:


<xsl:template match="text()[preceding-sibling::node()[1] [self::input][not(normalize-space())]]"/>

You can remove select="*" from the form-templates. This would only work, if the input-elements and their text are childs of the form-element. But they are child of <p> or <div> in your example. And ignoring the text-node of a <p> is more or less senseless.

The above template ignores all text-nodes which are immediate following-siblings of an input-element without a text node.

I hope this solves all your problems - finally ;-)

Joerg


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.