count(/div/aside/following-sibling::text())
<!-- Название характеристики -->
//div[@class="options-group"]/table/tbody/tr[2]/td[1]/div[@class="dots"]/span/text()
<!-- Значение характеристики -->
//div[@class="options-group"]/table/tbody/tr[2]/td[2]/text()
<!-- Где позиция характеристики -->
//div[@class="options-group"]/table/tbody/tr[2]
<!-- A позиции названия характеристики и значения характеристики -->
td[1] и td[2]
(doc / "//div[@class="productlist"]//a[@class="product-name"]").each do |row|
product_link = (row / "./@href")
puts product_link
(doc / "//div[@class="productlist"]//a[@class="product-name"]").each do |row|
product_link = (row / "@href")
puts product_link
(doc / "//div[@class="productlist"]//a[@class="product-name"]/@href").each do |row|
product_link = row
puts product_link
/ns2:purchaseNotice/ns2:body/ns2:item/*[local-name()='guid']/namespace-uri()
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:purchaseNotice xmlns="http://zakupki.gov.ru/223fz/types/1" xmlns:ns2="http://zakupki.gov.ru/223fz/disagreementProtocol/1">
<header>
<guid>173fc8b5-8b5c-4532-b278-73edb6d78ded</guid>
<createDateTime>2017-01-10T15:26:21</createDateTime>
</header>
<ns2:body>
<ns2:item>
<guid>297b9dc0-0d9a-1ee6-b5e5-493f84169d03</guid>
<ns2:purchaseNoticeData>
<ns2:guid>297b9dc0-0d9a-1ee6-b5e5-493f84169d03</ns2:guid>
<ns2:createDateTime>2017-01-10T22:08:18</ns2:createDateTime>
<ns2:urlOOS>https://zakupki.gov.ru/223/purchase/private/purchase/notice-info/details.html?noticeInfoId=5587918</ns2:urlOOS>
</ns2:purchaseNoticeData>
</ns2:item>
</ns2:body>
</ns2:purchaseNotice>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:defaultnamespace="http://zakupki.gov.ru/223fz/types/1"
xmlns:ns2="http://zakupki.gov.ru/223fz/disagreementProtocol/1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="/ns2:purchaseNotice/ns2:body/ns2:item/defaultnamespace:guid/text()"/>
</xsl:template>
</xsl:stylesheet>