context: 	var buildPath = function(query){		var xpath = "";		var qparts = query.split(" ");		while(qparts.length){			var tqp = qparts.shift();			var prefix;			if(tqp == ">"){				prefix = "/";				tqp = qparts.shift();			}else{				prefix = "//";			}			// get the tag name (if any)			var tagName = getTagName(tqp);			xpath += prefix + tagName;						// check to see if it's got an id. Needs to come first in xpath.			var id = getId(tqp);			if(id.length){				xpath += "[@id='"+id+"']";			}			var cn = getClassName(tqp);			// check the class name component			if(cn.length){				var padding = " ";				if(cn.charAt(cn.length-1) == "*"){					padding = ""; cn = cn.substr(0, cn.length-1);				}				xpath += 					"[contains(concat(' ',@class,' '), ' "+					cn + padding + "')]";			}			handleAttrs(xPathAttrs, tqp, 				function(condition){						return "[@"+condition+"]";				},				function(matcher){					xpath += matcher;				}			);			// FIXME: need to implement pseudo-class checks!!		};		// dojo.debug(xpath);		return xpath;	};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/3a27716bb69c392c29bf44e43bd828baf0fe3daf/query.js/clean/_base/query.js