3 class XHTMLCompiler_DOMFilter_AbsolutePath
extends XHTMLCompiler_DOMFilter
6 protected $name = 'AbsolutePath';
7 protected $xcAttr = array('absolute');
9 public function process(DOMDocument
$dom, $page) {
11 $xc = XHTMLCompiler
::getInstance();
12 $absolute_prefix = $xc->getConf('web_path') . '/';
13 $nodes = $this->query("//*[@xc:absolute]");
15 foreach ($nodes as $node) {
17 $absolute = $this->confiscateAttr($node, $this->ns
, 'absolute');
19 $uri = $node->getAttribute($absolute);
20 $node->setAttribute($absolute, $absolute_prefix . $uri);