🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #436

Re: Dlaczego nie dziala - position()

#436
From: Andrzej Dmoch
Date: Thu, 05 Oct 2000 16:13
58 lines
2119 bytes
1. Bo uzywasz starego MSXSL, ktory jest do kitu. Sciagnij nowa wersje z msdn
lub generuj plik statycznie jakims procesorem wsadowym (polecam XT lub
SAXON).
2. Bardziej elegancko byloby uzyc xsl:number.

AnD

andrzej kowalik <andrzej@pnet.pl> wrote in message
news:e9dptso4bjcrg07if4nhbhl4jql95f92uf@4ax.com...
> Czesc
> Moze ktos mi podpowie dlaczego w ponizszym przykladzie nie dziala
> funkcja "position()" .
>
> =====  XML ======
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="test.xsl"?>
>
> <ATOM>
> <NAME>Hydrogen</NAME>
> </ATOM>
>
>
> ===== XSL =======
>
> <?xml version="1.0"?>
> <xsl:stylesheet  xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>    <xsl:template match="text()">
> <xsl:value-of select="."/>
>    </xsl:template>
>   <xsl:template match="/">
>     <HTML>
>       <BODY>
>         <xsl:apply-templates select="ATOM"/>
>       </BODY>
>     </HTML>
>   </xsl:template>
>
>   <xsl:template match="ATOM">
>     <P>
>       <xsl:value-of select="position()"/>.
>       <xsl:value-of select="NAME"/>
>     </P>
>   </xsl:template>
>
> </xsl:stylesheet>
>
> ===============
>
> wyswietla blad :
>
> Unknown method. -->position()<--
>
> IE 5.0 za najnowszym parserem.
>
> Andrzej
>
Technical Details
Message-ID: <8ri5rm$s02$1@h1.uw.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!not-for-mail
References: <e9dptso4bjcrg07if4nhbhl4jql95f92uf@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!not-for-mail
From: "Andrzej Dmoch" <and@step.pl>
Newsgroups: pl.comp.xml
Subject: Re: Dlaczego nie dziala -  position()
Date: Thu, 5 Oct 2000 17:13:24 +0100
Organization: A poorly-installed InterNetNews reader
Lines: 60
Message-ID: <8ri5rm$s02$1@h1.uw.edu.pl>
References: <e9dptso4bjcrg07if4nhbhl4jql95f92uf@4ax.com>
NNTP-Posting-Host: ala.pwn.com.pl
X-Trace: h1.uw.edu.pl 970758838 28674 195.116.83.236 (5 Oct 2000 15:13:58 GMT)
X-Complaints-To: usenet@h1.uw.edu.pl
NNTP-Posting-Date: 5 Oct 2000 15:13:58 GMT
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit