This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Following axis


I get the desired "test1test2 - test2test3 - test3test4 - test4test5 - test5 -"
Which processor do you use?

Cheers,
Johannes


>Hi,
>
>could somebody explain me the following, please:
>
>If I have the following xml-file:
>
><input.stream>
>    <chunk>
>      <token>
>        <form normalized="test1" />
>      </token>
>   </chunk>
>   <chunk>
>      <token>
>        <form normalized="test2" />
>      </token>
>      <token>
>        <form normalized="test3" />
>      </token>
>    </chunk>
>    <chunk>
>      <token>
>         <form normalized="test4" />
>      </token>
>         <chunk>
>            <token>
>                <form normalized="test5" />
>            </token>
>          </chunk>
>     </chunk>
></input.stream>
>
>
>and the following xsl stylesheet:
>
><xsl:template match="token">
>     <xsl:value-of select="form/@normalized"/>
>     <xsl:value-of select="following::token[1]/form/@normalized"/>
>      <xsl:text> - </xsl:text>
></xsl:template>
>
>
>Why do I get the following output:
>
>test1test4 - test2test3 - test3 - test4test5 - test5 -
>
>
>but not:
>
>test1test2 - test2test3 - test3test4 - test4test5 - test5 -
>
>
>
>Thanks very much for your help.
>Cheers,
>Sabine



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]