🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #9384

Re: XSL jak dostać nazwe atrybutu -nie jego wartość ?

#9384
From: NotBear
Date: Wed, 11 Jul 2007 08:32
29 lines
1500 bytes
Uziel wrote:
> <data a0="1" b0="2" c0="3" a1="costam" b1="inne" c1="aasd" /data>
> <inne aa0="2" bb0="1" aa1="12" bb1="12123" /inne>

Rozumiem, ze brak "dziobkow" to literowka?


> - jak dostac liste wszystkich nazw argumentow?

W kontekscie danego elementu:
<xsl:apply-templates select="@*"/>		

I pozniej:
<xsl:template match="@*">
   <xsl:value-of select="name()"/>
</xsl:template>

> - Jak dostać listę wszystkich wartosci argumentów danego noda nie znając 
> nazw argumentow  ?

<xsl:apply-templates select="@*"/>		

<xsl:template match="@*">
   <xsl:value-of select="."/>
</xsl:template>


-- 
NotBear
Technical Details
Message-ID: <f724kk$qf6$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <f71ga0$n4m$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: NotBear <paulcom.HATESPAM@interia.pl>
Newsgroups: pl.comp.xml
Subject: Re: XSL jak dostać nazwe atrybutu -nie jego
 wartość ?
Date: Wed, 11 Jul 2007 10:32:34 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 31
Message-ID: <f724kk$qf6$1@inews.gazeta.pl>
References: <f71ga0$n4m$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: wr2.contium.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1184142804 27110 89.174.104.61 (11 Jul 2007 08:33:24 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 11 Jul 2007 08:33:24 +0000 (UTC)
X-User: notbear
In-Reply-To: <f71ga0$n4m$1@nemesis.news.tpi.pl>
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit