Subject: Re: [xsl] Multiple/conditional import problem From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 26 May 2011 14:19:26 +0100 |
Therefore in general I cannot manually include the references in default.xsl. Unless I pre-process it when a new specific stylesheet arrives...
<xsl:variable name="custom"> <xsl:copy-of select="collection(....)"/> </xsl:variable> <xsl:key name="custom" match="c" use="@x"/>
<xsl:template match="property"> <dt style="color:{ (key($custom,concat(.':color'),$custom),'green')[1]}" > <xsl:value-of select="."/> </dt>
will come out as <dt style="color:green">foo</dt>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Multiple/conditional impo, Martynas Jusevicius | Thread | Re: [xsl] Multiple/conditional impo, David Carlisle |
Re: [xsl] Multiple/conditional impo, Martynas Jusevicius | Date | Re: [xsl] Multiple/conditional impo, David Carlisle |
Month |