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: forms that span other elements


Jacob P. Glenn wrote:

> <xsl:template match="form">	 <!-- Form template to convert XHTML
> forms to WML input elements -->
>        <xsl:apply-templates select="input" >
>             <!-- Capture the link value for later use -->
>             <xsl:with-param name='href' select='@action'/>
>        </xsl:apply-templates>
Here you are applying templates to child::input elements only, that is 
what abbreviated XPath expression "input" selects. If you are interested 
in all input elements descendants of the form element, use 
"descendants::input" instead or ".//input" for short.

<xsl:apply-templates select="descendants::input" >
	<xsl:with-param name='href' select='@action'/>
</xsl:apply-templates>


-- 
Oleg Tkachenko
Multiconn International, Israel


 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]