Re: [xsl] Re: WML input problem

Subject: Re: [xsl] Re: WML input problem
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 16 Jul 2002 09:50:28 +0200
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