■62008 / ) |
Re[7]: xml-xsl-sapx(asp.net)について |
□投稿者/ pppi (6回)-(2011/09/15(Thu) 12:54:24)
|
2011/09/15(Thu) 12:59:55 編集(投稿者)
> YahooTransfer.xsl は若干変更が必要だと思います。 > > urn:yahoo:jp:srch -> urn:yahoo:jp:auc:sellingList > > yahoo:Url -> yahoo:ItemUrl
だめですxslを変更かけましたがエラーが出ます 指定したノードをこのノードの有効な子ノードとして挿入できません。指定されたノードの種類が正しくありません。 1、URLを出品リストに置き換え必須項目sellerIDを追加下記 http://auctions.yahooapis.jp/AuctionWebService/V2/sellingList?appid=<アプリケーションID>&sellerID=出品者ID
2、http://www.atmarkit.co.jp/fdotnet/dotnettips/477aspxmldatasrc/aspxmldatasrc.html を元に下記変更(xsl)
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:yahoo="urn:yahoo:jp:auc:sellingList" version="1.0"> <xsl:template match="/yahoo:ResultSet"> <ResultSet> <xsl:for-each select="yahoo:Result"> <Result> <xsl:attribute name="Title"> <xsl:value-of select="yahoo:Title" /> </xsl:attribute> <xsl:attribute name="Url"> <xsl:value-of select="yahoo:ItemUrl" /> </xsl:attribute> </Result> </xsl:for-each> </ResultSet> </xsl:template> </xsl:stylesheet>
何度もやり直してますがうまくいきません
|
|