cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans-Guenter Stein <Hans-Guenter.St...@siteos.de>
Subject Re: dynamic include
Date Thu, 03 Aug 2000 17:48:17 GMT
the problem is that xsl:include needs to be an immediate child of
xsl:stylesheet whereas xsl:if may only be used in templates!

sudhi wrote:

> Hi,
> I dont know whether this works really or not (i mean syntax errors)....
> ......
> <xsl:if test="//article">
>   <xsl:include href="articleTemplate.inc"/>
> </xsl:if>
> ....
> HTH
> Sudhi
>
> Hans-Guenter Stein wrote:
> >
> > could anyone help me with this:
> >
> > In my xsl-files I want to include a stylesheet only if the xml contains
> > a corresponding element:
> >
> > main.xsl:
> > ...
> > if (my xml contains an <article>-tag) <xsl:include
> > href="articleTemplate.inc"/>
> > ...
> >
> > HowTo???
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message