|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: configuring a conditional
On May 23, 2005, at 10:38 AM, David Carlisle wrote:
Aside: I've still not worked out HOW to deal with this first/subsequent OK, I tried to implement this in my rather complicated code, but am stuck. <xsl:param name="cite-ref" as="element()*"/>
<xsl:message>
<xsl:if test="$cite-ref is key('refs',@linkend)[1]">FIRST</xsl:if>
</xsl:message>The message is result is always blank. Since I don't have really any template for db:citation/db:biblioref, I instead pass the cite-ref parameter from the db:citation template where its value is this variable: <!-- earlier the cite-ref variable was defined as just element(), but for some reason this yielded an empty-sequence error in one case --> <xsl:variable name="cite-ref" as="element()*"> <xsl:sequence select="$citation/db:biblioref[@linkend=$id]"/> </xsl:variable> Bruce
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








