This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: WML input problem
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 16 Jul 2002 09:50:28 +0200
- Subject: Re: [xsl] Re: WML input problem
- References: <20020716052617.30492.qmail@mailweb34.rediffmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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