On Apr 4, 4:37 am, Martin Honnen <mahotr...@yaho o.dewrote:
Lee wrote:
>
Add
xmlns:ap="urn:y ahoo:aprods"
on the xsl:stylesheet element, then use the prefix 'ap' in your XPath
expressions e.g.
>
>
<xsl:for-each select="ap:Prod uctSearch/ap:Products/ap:Product">
>
>
<xsl:value-of select="ap:Cata log/ap:PriceForm">
>
>
<xsl:value-of select="ap:Cata log/ap:PriceTo"/>
>
--
>
Martin Honnen
http://JavaScript.FAQTs.com/
<ProductSearc h xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:yaho o:aprods" xsi:schemaLocat ion="urn:yahoo: aprods
http://api.shopping.ya hoo.com/shoppingservice/v2/aproductsearch. xsd">
............... ...
</ProductSearch>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
xmlns="urn:yaho o:aprods" xsi:schemaLocat ion="urn:yahoo: aprods
http://api.shopping.ya hoo.com/shoppingservice/v2/aproductsearch. xsd">
............... ...
</ProductSearch>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
Add
xmlns:ap="urn:y ahoo:aprods"
on the xsl:stylesheet element, then use the prefix 'ap' in your XPath
expressions e.g.
>
<xsl:for-each select="Product Search/
Products/Product">
Products/Product">
<xsl:for-each select="ap:Prod uctSearch/ap:Products/ap:Product">
>
<xsl:value-of
select="Catalog/PriceFrom"/>
select="Catalog/PriceFrom"/>
<xsl:value-of select="ap:Cata log/ap:PriceForm">
>
<xsl:value-of
select="Catalog/PriceTo"/>
select="Catalog/PriceTo"/>
<xsl:value-of select="ap:Cata log/ap:PriceTo"/>
>
--
>
Martin Honnen
http://JavaScript.FAQTs.com/
Leave a comment: