![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: xsl:Include e xsl:call-template [Thread Next] Re: xsl:Include e xsl:call-templateTo: NULL Date: 11/6/2006 7:32:00 AM Thank you Martin. I'll do a lot of "when" for this problem. Example: <xsl:choose> <xsl:when test="$Avv='ADV1'"><xsl:call-template name="ADV1"/></xsl:when> <xsl:when test="$Avv='ADV2'"><xsl:call-template name="ADV2"/></xsl:when> <xsl:when test="$Avv='ADV3'"><xsl:call-template name="ADV3"/></xsl:when> <xsl:when test="$Avv='ADV4'"><xsl:call-template name="ADV4"/></xsl:when> <xsl:when test="$Avv='ADV5'"><xsl:call-template name="ADV5"/></xsl:when> <xsl:when test="$Avv='ADV6'"><xsl:call-template name="ADV6"/></xsl:when> <xsl:when test="$Avv='ADV7'"><xsl:call-template name="ADV7"/></xsl:when> [...] </xsl:choose> ...in an only single XSL file. Bye Emanuele Martin Honnen ha scritto: > lele1979 wrote: > > > for the "include" is OK ... but for a template? > > > > How do you do for a template? > > > > I can't write: > > -------- > > <xsl:call-template name="<xsl:value-of select="Object/Object1"/>"/> > > The name attribute value of xsl:call-template is also static, it has to > be a Qname, see <http://www.w3.org/TR/xslt#named-templates>. There is no > XPath expression allowed in there. > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
