This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: WML input problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]