xsl-list
[Top] [All Lists]

Re: attributes in and out

2003-09-29 05:46:31
for your xml

<xsl:for-each select="//INSTANCE[(_at_)name='audio' or @name='video']>
    .................................
</xsl:for-each>
 I think, syntax may be a little off mind you.



PA Sport RnD

Andrew Curry
Software Developer

Telephone: 01430 455545
Website:        http://www.pa.press.net

PA News Limited:
Bridgegate, Howden, East Yorkshire, DN14 7AE

Registered Office:
PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered in
England No. 3891053


----- Original Message ----- 
From: "clemens schrenk" <clemens(_dot_)schrenk(_at_)gmx(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, September 29, 2003 1:37 PM
Subject: Re: [xsl] attributes in and out


thanks for that tip - it doesn't work so far, but i think that problem is
specific to my stylesheet - i think it leads to the right solution....



Am 29.09.2003 13:58 Uhr schrieb 
"andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net" unter
<andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net>:

<xsl:for-each select="instance[(_at_)attribute = 'audio' or @attributie =
'video']>

should do it i think

PA Sport RnD

Andrew Curry
Software Developer

Telephone: 01430 455545
Website:        http://www.pa.press.net

PA News Limited:
Bridgegate, Howden, East Yorkshire, DN14 7AE

Registered Office:
PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered
in
England No. 3891053


----- Original Message -----
From: "clemens schrenk" <clemens(_dot_)schrenk(_at_)gmx(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, September 29, 2003 12:57 PM
Subject: Re: [xsl] attributes in and out


well, there is just one question remaining, and currently i can not
think
of
any solution -

how can i restrict this loop to <INSTANCE> elements with the attribute
values "audio" and "video" only ?

e.g.: <INSTANCE name="audio">




Am 29.09.2003 13:43 Uhr schrieb 
"andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net" unter
<andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net>:

No problem

PA Sport RnD

Andrew Curry
Software Developer

Telephone: 01430 455545
Website:        http://www.pa.press.net

PA News Limited:
Bridgegate, Howden, East Yorkshire, DN14 7AE

Registered Office:
PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered
in
England No. 3891053


----- Original Message -----
From: "clemens schrenk" <clemens(_dot_)schrenk(_at_)gmx(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, September 29, 2003 12:42 PM
Subject: Re: [xsl] attributes in and out


thanks, it works perfectly....



Am 29.09.2003 13:22 Uhr schrieb 
"andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net" unter
<andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net>:

loop through the attributes using an xpath expression to get the
value
of
the parent instance.

i.e.

<xsl:for-each select="Your attribute path">
.......Your code to write your item identifier element....
your title would be <xsl:value-of select="parent::INSTANCE/@name"/>

I think that would work....




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



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



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



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



<Prev in Thread] Current Thread [Next in Thread>