| 
 
Subject: Re: [xsl] suppressing only the last PI From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 03 Jan 2007 21:21:10 +0100  | 
However, the following instruction occurs prior to the content and should suppress only the last PI, but is suppressing all processing instructions named TL_XSL and whose value beings with 'PageEnd_' and not just the last one:
<xsl:apply-templates
select="node()[not(self::processing-instruction('TL_XSL')[starts-with(.,
'PageEnd_')][position()=last()])]"/>
Can anyone tell what is wrong with it and why it is not just suppressing
the last one?
node()[self::processing-instruction('TL_XSL')
[starts-with(.,'PageEnd_')]][position()!=last()]node()
  [not
     (
        self::processing-instruction('TL_XSL')
        [starts-with(., 'PageEnd_')]
        [position()=last()]
     )
  ]1) node()[[starts-with(., 'PageEnd_')] 2) [position()=last()]]
node()
  [self::processing-instruction('TL_XSL')]
  [starts-with(., 'PageEnd_')]
  [not(position()=last())]Cheers, -- Abel Braaksma http://www.nuntia.nl
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] suppressing only the last PI, Emily.Garrett | Thread | Re: [xsl] suppressing only the last, egarrett | 
| Re: [xsl] Processing inner elements, Abel Braaksma | Date | [xsl] String literals with both sin, Elliotte Harold | 
| Month |