XSL/XSLT (558レス)
XSL/XSLT http://medaka.5ch.io/test/read.cgi/php/999654569/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
469: nobodyさん [] 2006/07/14(金) 21:29:08 ID:MY15XHq0 &は&だったかな。?だったかもしれない。 =はそのままでよかった気がする。 ttp://www.ne.jp/asahi/minazuki/bakera/html/reference/charref http://medaka.5ch.io/test/read.cgi/php/999654569/469
470: nobodyさん [sage] 2006/07/14(金) 21:30:47 ID:??? すまん、参照がともに変換されてしまったorz 示したURLのページをもとにがんばってくれ。 http://medaka.5ch.io/test/read.cgi/php/999654569/470
471: nobodyさん [] 2006/07/14(金) 23:47:41 ID:BpYZj7V/ >>470 ありがとうございます http://medaka.5ch.io/test/read.cgi/php/999654569/471
472: nobodyさん [age] 2006/07/22(土) 10:37:07 ID:??? xml文章の中から、ユーザー側から入力した条件を元に、 検索して結果を表示するようなことは、xslのみで実現するのは可能でしょうか? postができなそうなのでやっぱり不可能でしょうか? http://medaka.5ch.io/test/read.cgi/php/999654569/472
473: nobodyさん [sage] 2006/07/23(日) 00:28:31 ID:??? xslのみ の意味がわからない http://medaka.5ch.io/test/read.cgi/php/999654569/473
474: nobodyさん [sage] 2006/07/23(日) 00:29:42 ID:??? >>472 CGIでやるなら、いまのところCGIからXSLTプロセッサを呼び出すしかない。 http://medaka.5ch.io/test/read.cgi/php/999654569/474
475: 472 [sage] 2006/07/23(日) 09:47:44 ID:??? >>474 やっぱそうなりますよね。 xml文章中の特定の語句を検索して表示するような、 スクリプトが紹介されていたので、 postができれば検索システムも作れるそうだなと思った次第です。 >>473 xslって簡易プログラミング言語みたいなものだと思っていたので、 変な言い方だったらすみません。 http://medaka.5ch.io/test/read.cgi/php/999654569/475
476: nobodyさん [] 2006/07/24(月) 14:48:21 ID:uSZzoH8+ 文字列をエンコードする関数って どんなのがありますか? http://medaka.5ch.io/test/read.cgi/php/999654569/476
477: nobodyさん [sage] 2006/07/25(火) 01:05:04 ID:??? postされたデータを使ってXSLTを作り変換すれば? xsl:if の test 部分をpostされたデータにすれば出来そうな気がする http://medaka.5ch.io/test/read.cgi/php/999654569/477
478: nobodyさん [] 2006/08/02(水) 19:55:15 ID:qF5sPr3L document関数でurlを指定するとき、xsl:variable nameはつかえないんでしょうか? <xsl:variable name="●●">○○.xml</xsl:variable> <xsl:for-each select="document($●●)/▲▲/■■"> </xsl:for-each> こんな感じで入力すると、$●●に○○.xmlが入らずに $●●のままなんですが・・・ http://medaka.5ch.io/test/read.cgi/php/999654569/478
479: nobodyさん [] 2006/08/02(水) 20:13:17 ID:qF5sPr3L >>478 すいません自己解決しました。 http://medaka.5ch.io/test/read.cgi/php/999654569/479
480: nobodyさん [sage] 2006/08/06(日) 02:13:08 ID:??? >>479 自己解決したら、解決法かけや http://medaka.5ch.io/test/read.cgi/php/999654569/480
481: nobodyさん [sage] 2006/08/17(木) 06:59:21 ID:??? すみません、XML で特定の条件に一致する要素だけにちょっとした変更を 加えたいのですが、それ以外の要素を無変換で出す処理はどう書けば良いの でしょうか? 例えば XML 中の password という要素の内容をマスクする場合: <xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template match="*"> <xsl:choose> <xsl:when test="name(.)='password'"> <password>****</password> </xsl:when> <xsl:otherwise> <xsl:element name="(ここはどうすれば?)"> <xsl:for-each select="@*"> <xsl:attribute name="(ここはどうすれば?)"><xsl:value-of select="." /></xsl:attribute> </xsl:for-each> <xsl:apply-templates select="node()" /> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:template> http://medaka.5ch.io/test/read.cgi/php/999654569/481
482: nobodyさん [sage] 2006/08/17(木) 15:51:08 ID:??? <xsl:template match="password"> <password>****</password> </xsl:template> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> ただし、password要素が空でないネームスペースに属しているならば、予めxmlns:foo="http://..."としておいて、match="foo:password"としなければならない。 xmlns="http://..."としておいてmatch="password"としてもだめ。 http://medaka.5ch.io/test/read.cgi/php/999654569/482
483: nobodyさん [sage] 2006/08/18(金) 18:36:22 ID:??? >>482 お、出来た! W3C の <xsl:copy> のところに書いてありますね。意味が分からんかったのでスルーしてましたが。 http://medaka.5ch.io/test/read.cgi/php/999654569/483
484: nobodyさん [sage] 2006/08/26(土) 03:28:19 ID:??? すみません、文字列の一括置換は XSL でどうやったら良いんでしょうか。 XML から JavaScript の文字列リテラルに変換するときにエスケープする必要があるのですが。 <foo>say "good morning"</foo> ↓ var msg = "say \"good morning\""; http://medaka.5ch.io/test/read.cgi/php/999654569/484
485: nobodyさん [sage] 2006/09/27(水) 01:19:07 ID:??? XSLT内で外部のJavaScriptファイルを読む宣言をするとIEでホワイトアウトするのですが。 諸事情により内部に直接JavaScriptを書きたくなくて。。 どうしたらよいのでしょうか? http://medaka.5ch.io/test/read.cgi/php/999654569/485
486: nobodyさん [sage] 2006/09/27(水) 02:25:20 ID:??? document関数はXMLしか読み込めないよ。Javascirptを読もうとするとエラーになるので多分それでホワイトアウトしてる。 <script src="(スクリプトのURL)"/> みたいな要素を出力した方がよいかと。 #エスパーレベル低いので外してるかな? http://medaka.5ch.io/test/read.cgi/php/999654569/486
487: 485 [sage] 2006/09/27(水) 09:27:24 ID:??? 分かりにくい書き方してすんません。 で、ご指摘の方法でやっていたんですがうまくいきません。 むしろJavaScriptソースを直接書けば動きます。 Firefoxならどっちでもちゃんと動くんですけど。。 もう少し詳しく状況を説明しておくと ・JavaでXSL変換を行っている ・変換後データはStringとして吐き出される ・それをそのままサーブレットのPrintWriterを使って表示 してます。 http://medaka.5ch.io/test/read.cgi/php/999654569/487
488: nobodyさん [sage] 2006/09/29(金) 01:06:23 ID:??? >487 <script src="(スクリプトのURL)"/> でリンクしたJSファイルと PrintWriterが吐くページのエンコーディングが合ってないとかか? http://medaka.5ch.io/test/read.cgi/php/999654569/488
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 70 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.008s