Changeset 712
- Timestamp:
- 06/05/07 22:38:13 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/xml/stubXMLPostInterceptor.php
r473 r712 22 22 * @package stubbles 23 23 * @subpackage websites_xml 24 * @todo make <xsl:import href="copy.xsl"/> work if loaded from a star file25 * in master.xsl and masterXInclude.xsl26 24 * @todo clean the transformation result: xml:base, xml declaration, whitespace 27 25 */ … … 51 49 return false; 52 50 } 53 51 54 52 // first we create the xsl with the master.xsl 55 53 $xslProcessor = $this->createXSLProcessor(); … … 70 68 // use same xsl processor for the xincludes 71 69 $this->setXIncludeProcessor($xslProcessor); 72 70 73 71 $skin = (($page->hasProperty('skin') == true) ? ($page->getProperty('skin')) : ('default')); 74 72 $xslProcessor->setXMLDocument($this->createXMLSkinDocument($skin)); 75 73 $resultXSL = $xslProcessor->transformToDoc(); 76 74 $resultXSL->xinclude(); 77 75 78 76 // now we use the created xsl to transform the xml document created by the application 79 77 $xslProcessor = $this->createXSLProcessor(); … … 83 81 return true; 84 82 } 85 83 86 84 /** 87 85 * use same xsl processor for the xincludes … … 93 91 stubXMLXIncludeStreamWrapper::setXSLProcessor($xslProcessor); 94 92 } 95 93 96 94 /** 97 95 * creates a stubXSLProcessor instance … … 104 102 return $xslProcessor; 105 103 } 106 104 107 105 /** 108 * creates a stubXSLImageDimensions 106 * creates a stubXSLImageDimensions 109 107 * 110 108 * @return stubXSLImageDimensions … … 116 114 return $image; 117 115 } 118 116 119 117 /** 120 118 * creates the xsl stylesheet … … 128 126 return DOMDocument::load($uris[0]); 129 127 } 130 128 131 129 /** 132 130 * creates the skin document
