xsl-list
[Top] [All Lists]

Re: [xsl] finding position() in xpath 1.0

2007-03-19 07:04:25
Frank Marent wrote:


results error 'Axis in pattern must be child or attribute'?


Ah, now you're changing the original inquiry ;)
This is a match pattern, which does not work the same a select pattern. But I now understand why you did not want the variables in there.

However, why not reverse the logic? I.e., something like:

<xsl:apply-template select="davids-or-my-xpath-here"  mode="special" />
....
<xsl:template match="CELL" mode="special" >
  ...do whatever you need to do ...
<xsl:template>

where you use modes to distinguish between 'normal' CELLs and this special type of CELL.

-- Abel

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--