diff --git a/core/pagecontroller/Document.php b/core/pagecontroller/Document.php
index 0c4b55d95..c51cb90a0 100644
--- a/core/pagecontroller/Document.php
+++ b/core/pagecontroller/Document.php
@@ -118,21 +118,6 @@ class Document extends APFObject {
*/
public static $maxParserLoops = 500;
- /**
- * @public
- *
- * Initializes the built-in taglibs, used to create the APF DOM tree.
- *
- * @author Christian Schäfer
- * @version
- * Version 0.1, 28.12.2006
- * Version 0.2, 03.03.2007 (Removed the "&" in front of "new")
- * Version 0.3, 11.02.2012 (Added html:getstring tag as known tag (refactoring!))
- */
- public function __construct() {
- $this->setObjectId(XmlParser::generateUniqID());
- }
-
/**
* @public
*
@@ -1294,14 +1279,14 @@ public function onParseTime() {
* Interface definition of the onAfterAppend() method. This function is called after the DOM
* node is appended to the DOM tree. It must be implemented by derived classes.
*
- * @public
- * @abstract
- *
* @author Christian Schäfer
* @version
* Version 0.1, 28.12.2006
+ * Version 0.2, 27.06.2014 (Added expression tag analysis to "standard" document to allow expression place holders in initial document)
*/
public function onAfterAppend() {
+ // ID#191: extract "static" expressions (e.g. place holders)
+ $this->extractExpressionTags();
}
/**
diff --git a/core/pagecontroller/Page.php b/core/pagecontroller/Page.php
index a21ef6d8c..6f237a14f 100644
--- a/core/pagecontroller/Page.php
+++ b/core/pagecontroller/Page.php
@@ -73,6 +73,7 @@ public function &getRootDocument() {
* Version 0.3, 04.03.2007 (The namespace is taken as a context, if no other was set before)
* Version 0.4, 22.04.2007 (Now the language is applied to the document)
* Version 0.5, 08.03.2009 (Bug-fix: protected variable parentObject might not be used)
+ * Version 0.6, 27.06.2014 (Bug fix: ensure native environment for Document to allow expression-style place holders)
*/
public function loadDesign($namespace, $design) {
@@ -92,6 +93,11 @@ public function loadDesign($namespace, $design) {
// load the design
$this->document->loadDesign($namespace, $design);
$this->document->setObjectId(XmlParser::generateUniqID());
+
+ // ensure native APF environment
+ $this->document->onParseTime();
+ $this->document->onAfterAppend();
+
}
/**