Article View: pl.comp.xml
Article #511Re: Pytanie o XPath
From: Dariusz Wojtas
Date: Thu, 19 Oct 2000 11:26
Date: Thu, 19 Oct 2000 11:26
25 lines
1525 bytes
1525 bytes
Znalazlem odpowiedz :-)
<xsl:value-of select="substring(//body, 0, 100)"/>
Wytnie pierwsze 100 znakow.
Ale teraz nie wiem jak sprawdzic dlugosc tego ciagu.
Powinno dzialac cos takiego :
<xsl:value-of select="string-length(//body"/>
lub takiego
<xsl:variable name="zmienna">
<xsl:value-of select="string(//body)"/>
</xsl:variable>
<xsl:value-of select="string-length($zmienna)"/>
Ale zaden z tych przykladow mi nie dziala.
W drugim przypadku wartosc w zmiennej jest, bo jesli ja probuje
wypisac, to sie to udaje, ale jak sprawdzic dlugosc?
Moze komus uda sie rozwiazac problem?
Dariusz Wojtas
Technical Details
Message-ID:
<q9nuOfM4A+aASjMpfZshwUybSOBu@4ax.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!not-for-mailReferences:
<Pc=uOb9JVg3zgrPjEKqNeKfx0J=Y@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!not-for-mail From: Dariusz Wojtas <dwojtas@premiera.pl> Newsgroups: pl.comp.xml Subject: Re: Pytanie o XPath Date: Thu, 19 Oct 2000 13:26:46 +0200 Organization: http://news.icm.edu.pl/ Lines: 25 Message-ID: <q9nuOfM4A+aASjMpfZshwUybSOBu@4ax.com> References: <Pc=uOb9JVg3zgrPjEKqNeKfx0J=Y@4ax.com> NNTP-Posting-Host: gw.premiera.pl Mime-Version: 1.0 X-Trace: sunsite.icm.edu.pl 971954870 19226 213.25.156.9 (19 Oct 2000 11:27:50 GMT) X-Complaints-To: abuse@icm.edu.pl NNTP-Posting-Date: Thu, 19 Oct 2000 11:27:50 +0000 (UTC) X-Newsreader: Forte Agent 1.6/32.525 X-Notice1: This post has been postprocessed on the news.icm.edu.pl server. X-Notice2: Subject line has been filtered and any Odp: strings removed. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit