Re: [xsl] forms that span other elements

Subject: Re: [xsl] forms that span other elements
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Mon, 22 Apr 2002 13:55:56 +0200
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



Current Thread