[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 13:18:01 +0200
wml input
ashu t wrote:

Add the following empty template:

<xsl:template match="text()

This template matches on text-nodes,


[preceding-sibling::node()[1][self::input]

whose immediately preceding-sibling node is a input element


[not(normalize-space())]]"/>

and this input element may not have a text node. This last predicate is for the writing of <input>text</input><br/> instead of writing <input/>text<br/>. If there is a text in <input/> you will not ignore the next text after the <input/>.
If you refer to the strict.dtd of HTML 4.0, you can remove the last predicate.


But maybe you have to add a further predicate to differ between "normal" input (type="text"), where you want to have the text follwoing the <input/> and radios or checkboxes, where you don't want the text because of your <option/>s.

Regards,

Joerg

thanks a lot Joerg for your help and patience.
i have added that template and it has solved the problem finally. but i hope you would not mind if i say that i have just copied and pasted the template in my stylesheet.i did not get the exact working of template
though you have written


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


but all i got is that it is template match for text() then in predicate there are some more conditions which i did not get corectly just got that [not{normalise-space())]would prevent the white spaces.
we have to consider any text following <input> but what does it mean *input-element without a text node.*


if you don't mind could you please explain me the exact working that will definitely very very informative and beneficial for me.
ashu

--


System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


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.