Subject: Re: [xsl] Warning: The attribute axis starting at an attribute node will never select anything From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 31 Oct 2011 13:09:58 +0000 |
The following line: <xsl:attribute name="title" select="concat(if (ancestor::Set/@domain eq 'cr') then ........
The code executes the "if/then/else as I expected but produces the warning: "The attribute axis starting at an attribute node will never select anything"
What is the proper way to test the value of "ancestor::Set/@domain" that avoid this warning? Thanks, Mark
<xsl:template match="@foo"> .... <xsl:value-of select="@bar"/>
<xsl:template match="@foo"> .... <xsl:value-of select="../@bar"/>
-- google plus: https:/profiles.google.com/d.p.carlisle
________________________________________________________________________ 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 -> |
---|---|---|
[xsl] Warning: The attribute axis s, Mark | Thread | Re: [xsl] Warning: The attribute ax, Mark |
Re: [xsl] Using XSLT to build an in, Mark | Date | Re: [xsl] Warning: The attribute ax, Mark |
Month |