This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: forms that span other elements
- From: Oleg Tkachenko <olegt at multiconn dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 22 Apr 2002 13:55:56 +0200
- Subject: Re: [xsl] forms that span other elements
- Organization: Multiconn International
- References: <000301c1e9d1$8ae896e0$e9aa1681@jackasskid>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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