Разбор курсов валют (проблема с ID)

server

Новичок
Разбор курсов валют (проблема с ID)

Не могу понять как выделить курсы валют долара и евро с РБК, использую XSL в такой форме:
Код:
 <?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="windows-1251"/>

<xsl:template match="/">
<div style="width:100%; ">
    <xsl:apply-templates/>
	</div>
</xsl:template> 

<xsl:template match="ValCurs">
   
    <div align="center" style=" background-color: #333399; font-size:18px; font-family: Gautami; color:#FF9900;">Курсы валют</div>
	<div style="font-size: 12px; /* Размер шрифта */
 font-weight: bold; /* Жирное начертание */
 margin: 0px; /* Убираем отступы */
 color: #fc6; /* Цвет текста */ 
 background: #0080c0; /* Цвет фона */
 padding: 10px; /* Поля вокруг */ ; ">
		<div style="float:left;height:auto;auto; width:auto;padding:2px; ">Код </div>
       <div style=" float:left;height:auto;auto; width:auto;padding:2px; ">(Межд. обозн.)</div>
       <div style=" float:left;height:auto;auto; width:auto;padding:2px; ">Кол-во и название валюты</div>
       <div style=" float:right;height:auto;auto; width:auto;padding:2px; ">Руб.</div><br/>
   </div>
   
        <xsl:apply-templates select="Valute"/>

</xsl:template> 

<xsl:template match="Valute">

<div style=" float: left; /* Обтекание справа */
 border: 1px solid #333;

 padding: 5px; /* Поля вокруг текста */
 margin: 10px 10px 2px 5px; font-size:12px; ">

        <div style="float:left;height:auto; width:auto;padding-left:10px;"><b><xsl:value-of select="NumCode"/></b></div>
        <div style="float:left;height:auto; width:auto;padding-left:10px;">(<xsl:value-of select="CharCode"/>)</div>
        <div style="float:left;height:auto; width:auto;padding-left:10px;"><xsl:value-of select="Nominal"/></div>
		<div style="float:left;height:auto; width:auto;padding-left:10px;"><xsl:value-of select="Name"/> стоит</div>
        <div style="float:right;height:auto; width:auto;padding-left:10px;"><xsl:value-of select="Value"/> руб.</div>
		</div> 
</xsl:template> 

</xsl:stylesheet>
<xsl:apply-templates select="Valute"/> вот это как понимаю надо изменять, либо ставить Valute[@ID['R01239']] or Valute[@ID['R01235']] в select , либо просто эту конструкцию ставить в <xsl:if test="@ID['R01239'] or @ID['R01235']" > ... </xsl:if> , но не так не так что-то не выбирает, сам xml к кот-му применяю этот шаблон по адресу http://www.cbr.ru/scripts/XML_daily.asp? , помогите разобраться пожалуйста...

-~{}~ 18.02.07 08:41:

ну я прям неодуплидзе вечером, извините что потревожил... надо в конструкции <xsl:apply-templates select="Valute"/> изменить на <xsl:apply-templates select="Valute[@ID='R01235']|Valute[@ID='R01239']"/> и ещё здесь <xsl:template match="Valute[@ID='R01235']|Valute[@ID='R01239']"> ... больше не буду))))
 
Сверху