[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|