SXPath ã® S å¼è¡¨ç¾ãããããããªãã£ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããã -- lequeï¼2007/02/11 01:26:05 PSTï¼ sxpath æç¶ã sxpath æç¶ãã®å®ç¾©ã¯ä»¥ä¸ã®ããã«ãªã£ã¦ããã ;; $Id: sxpath.scm,v 1.1 2003/07/22 11:22:11 shirok Exp $ ... (define (sxpath path . ns-binding) (let loop (...) (cond ((null? path) ; parsing is finished (lambda (node . root-var-binding) ...)) ...))) æç¶ãã®ç´åã®ã³ã¡ã³ãã«ã¯çç¥è¨æ³ã®å±éã«ã¼ã«ãæ¸ãã¦ããï¼GaucheRefj:sxpath åç §ï¼ã ãã㧠path 㯠SXPath ã®ãã¹è¡¨ç¾ãns-binding ã¯
neat sxmlããJavaScriptã§ãã£ã¦ã¿ããã¨ããã with({__noSuchMethod__:function(){}}){ x(); // ReferenceError: x is not defined } ããã¾ããããªãã£ãã®ã§ãè¦ãç®ãæ±ãã function sxml2dom(list) { var tagName = list[0], childs = list.slice(1); var elem = document.createElement(tagName); for (var i = 0;i < childs.length;i++) { for (var j = 0;j < childs[i].length;j++) { var child = childs[i][j]; if (child[0][0] == "$"){ var str = chi
(html (head (title "sxml")) (body (@ (bgcolor "blue") (text "white")) (center (b "Hello.")))) <html> <head><title>sxml</title></head> <body bgcolor="blue" text="white"> <center><b> Hello.</b></center> </body> </html> 左㮠SXML ãå¤æãã㨠å³ã® XML ã«ãªãã¨ãããã¨ã§ã. è¦ç´ 㯠list ã® car, å 容㯠cdr, å±æ§ã¯ @ ã«ç¶ã cdr, ã¨ããæãã§ã. éãã¿ã°ãç¡ãåã ã, ã³ã¼ãéãåæ¸ã§ãã¾ãã. SXML ãã XML ãçæããã³ã¼ãã Oleg ããã® site ã«ããã¾ããã©, çµæ§ããããè¤ éãªãã¨ãã£ã¦ããä¸ã«, åç´ã«å¤æ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}