Changeset 839
- Timestamp:
- 08/15/07 15:31:11 (1 year ago)
- Files:
-
- trunk/examples/config/xml/pages/skin/default.xml (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/stubXMLPostInterceptor.php (modified) (2 diffs)
- trunk/src/main/resources/xsl/stub.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/config/xml/pages/skin/default.xml
r838 r839 1 <stub:document xmlns:stub="http://stubbles.net/stub" method=" html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">1 <stub:document xmlns:stub="http://stubbles.net/stub" method="xml" omit-xml-declaration="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 2 <html> 3 3 <head> trunk/src/main/php/net/stubbles/websites/xml/stubXMLPostInterceptor.php
r712 r839 69 69 $this->setXIncludeProcessor($xslProcessor); 70 70 71 $skin = (($page->hasProperty('skin') == true) ? ($page->getProperty('skin')) : ('default'));71 $skin = (($page->hasProperty('skin') === true) ? ($page->getProperty('skin')) : ('default')); 72 72 $xslProcessor->setXMLDocument($this->createXMLSkinDocument($skin)); 73 73 $resultXSL = $xslProcessor->transformToDoc(); … … 78 78 $xslProcessor->importXSLStylesheet($resultXSL); 79 79 $xslProcessor->setXMLDocument(DOMDocument::loadXML($response->getData())); 80 $response->replaceData($xslProcessor->transformTo Doc()->saveXML());80 $response->replaceData($xslProcessor->transformToXML()); 81 81 return true; 82 82 } trunk/src/main/resources/xsl/stub.xsl
r838 r839 10 10 <ixsl:stylesheet version="1.0" exclude-result-prefixes="ixsl"> 11 11 <ixsl:output> 12 <xsl:copy-of select="method" /> 13 <xsl:copy-of select="@doctype-public" /> 14 <xsl:copy-of select="@doctype-system" /> 15 </ixsl:output> 12 <xsl:copy-of select="@method" /> 13 <xsl:copy-of select="@omit-xml-declaration" /> 14 <xsl:copy-of select="@doctype-public" /> 15 <xsl:copy-of select="@doctype-system" /> 16 </ixsl:output> 16 17 <ixsl:template match="/"> 17 18 <xsl:apply-templates select="node()"/>
