XSL/XSLT (558レス)
XSL/XSLT http://medaka.5ch.io/test/read.cgi/php/999654569/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
529: nobodyさん [sage] 2009/02/13(金) 15:31:04 ID:??? >>528 ループの中で何番目か調べるのはposition() <xsl:for-each select="/parent/child"> <xsl:value-of select="position()" />番目のノードです </xsl:for-each> ただし最初が0でなく1なので要注意 http://medaka.5ch.io/test/read.cgi/php/999654569/529
530: nobodyさん [] 2009/02/13(金) 16:09:55 ID:X83R2PAW >>529 ありがとうございます。 ループに関しては思ったとおりのことができました。 XSLTでは、再代入できる変数のようなものを使うことは不可能ですか? ループ以外でも、XSLT内で計算するために、蓄積的に数値を足していける変数を使いたいのですが。 http://medaka.5ch.io/test/read.cgi/php/999654569/530
531: nobodyさん [sage] 2009/02/13(金) 18:12:20 ID:??? そういうのはcall-templateのパラメータを使う http://medaka.5ch.io/test/read.cgi/php/999654569/531
532: nobodyさん [] 2009/02/18(水) 16:06:36 ID:/wQ0UVxh XSL:FOの構文で、HTMLで言うところの<hr>に相当するタグってありますか? http://medaka.5ch.io/test/read.cgi/php/999654569/532
533: nobodyさん [sage] 2009/04/17(金) 04:58:20 ID:??? 自宅サーバ用に XSLT サーブレット作ったんで良かったら使ってください。 sourceforge.jp でソース公開してます。 http://www.koiroha.org/kwt/xsl/index.xhtml http://medaka.5ch.io/test/read.cgi/php/999654569/533
534: nobodyさん [] 2010/01/11(月) 13:37:58 ID:x+0DsgF/ 保守 http://medaka.5ch.io/test/read.cgi/php/999654569/534
535: nobodyさん [age] 2010/01/14(木) 11:50:46 ID:??? 良スレ上げ (∩´∀`)∩ http://medaka.5ch.io/test/read.cgi/php/999654569/535
536: nobodyさん [] 2010/08/26(木) 10:38:32 ID:CJC7O04v <良スレ:age /> 既に前レスから半年、ここ、まだ誰かいるかなぁ XSLTで、例えば元データにaltタグが無ければ変換をエラーにするといったことは出来るのでしょうか? 簡易html-lintとして使えると嬉しいっす http://medaka.5ch.io/test/read.cgi/php/999654569/536
537: nobodyさん [sage] 2010/08/26(木) 13:46:34 ID:??? そういうのはXMLバリデータの仕事なんじゃ http://medaka.5ch.io/test/read.cgi/php/999654569/537
538: nobodyさん [sage] 2012/02/29(水) 07:12:13.10 ID:??? 質問です。 ?のような構造のXMLがあり、 ?に従うデータが?のような形できます。 ?において、Aは親で、BはAの子、 CはBの子となっており、?のような形に変換したいです。 このときxsltではどのようにかけばよろしいでしょうか? ???のイメージは次レスで書きます。 http://medaka.5ch.io/test/read.cgi/php/999654569/538
539: nobodyさん [age] 2012/02/29(水) 07:12:37.26 ID:??? -----------?---------- <choice> <element type="A"> <element type="B"> <element type="C"> <choice> -----------?----------- <A> <B> <C> <C> <B> <B> <C> -----------?----------- <A> <B> <C></C> <C></C> </B> <B></B> <B> <C></C> </B> </A> http://medaka.5ch.io/test/read.cgi/php/999654569/539
540: nobodyさん [sage] 2012/03/04(日) 02:16:44.31 ID:??? いまいち何がやりたいんだかよく分からないけど XMLじゃないデータ (2) をXMLであるデータ (3) に変換したいってこと? だったらそれはXSLTの仕事ではない http://medaka.5ch.io/test/read.cgi/php/999654569/540
541: nobodyさん [] 2012/09/13(木) 16:58:26.02 ID:2LiGXsgg xmlのツリーに、いくつものbookDescriptionがあります。 <table> <bookDescription> <bookCode> <price>100<price> </bookCode> <title>X</title> 〜〜〜 </bookDescription> </table> な感じで、bookDescriptionをpriceでascendingで表示したいと思います。 xsltで<xsl:sort select="bookCode/price" order="ascending"/>を入れるとエラーが出でしまいます。 http://medaka.5ch.io/test/read.cgi/php/999654569/541
542: nobodyさん [] 2012/09/13(木) 16:59:36.50 ID:2LiGXsgg <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <xsl:apply-templates /> </html> </xsl:template> <xsl:template match="table"> <body> <h2>Test</h2> <xsl:apply-templates/> </body> </xsl:template> <xsl:template match="bookDescription"> <!--<xsl:sort select="bookCode/price" order="ascending"/>--> </xsl:template> <xsl:template match="bookDescription"> <table border="1"> <tr> <td><xsl:value-of select="bookCode"/></td> <td><xsl:value-of select="title"/></td> </tr> </table> <br /> </xsl:template> </xsl:stylesheet> どうすればいいのでしょうか? http://medaka.5ch.io/test/read.cgi/php/999654569/542
543: nobodyさん [sage] 2012/09/14(金) 01:56:17.60 ID:??? にーとがひまつぶしに実験したので間違えてる可能性大ですが こう書くとエラー無くそれらしく表示されました <xsl:template match="table"> <body> <h2>Test</h2> <xsl:apply-templates> <xsl:sort select="bookCode/price" order="ascending"/> </xsl:apply-templates> </body> </xsl:template> http://medaka.5ch.io/test/read.cgi/php/999654569/543
544: nobodyさん [] 2012/09/14(金) 06:24:33.02 ID:B4mrueCy >>543 無事できました。 ありがとうございます。 http://medaka.5ch.io/test/read.cgi/php/999654569/544
545: nobodyさん [sage] 2014/01/15(水) 12:22:25.95 ID:??? XSL/XSLT http://medaka.5ch.io/test/read.cgi/php/999654569/545
546: nobodyさん [sage] 2014/01/22(水) 10:21:56.60 ID:??? XSL http://medaka.5ch.io/test/read.cgi/php/999654569/546
547: nobodyさん [] 2014/06/29(日) 13:39:21.42 ID:dCDFM+DD ◎2chスレッド勢いランキングサイトリスト◎ ★+ニュース板 ・ 2NN (推薦) ・ 2chTimes ★+ニュース板新着 ・ 2NN新着 ・ Headline BBY ・ unker Headline ★+ニュース板その他 ・ Desktop2ch ・ 記者別一覧 ★全板 ・ 全板縦断勢いランキング (推薦) ・ スレッドランキング総合ランキング ・ ログ速 ★全板実況込み ・ 2勢 (推薦) ・ READ2CH ・ i-ikioi ※ 要タイトル名検索 ※ 2chブラウザ併用推奨 http://medaka.5ch.io/test/read.cgi/php/999654569/547
548: nobodyさん [sage] 2014/07/31(木) 09:58:51.14 ID:??? ぬるぽ http://medaka.5ch.io/test/read.cgi/php/999654569/548
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 10 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.006s