Commit ed1c5c65 authored by Tatuya Kamada's avatar Tatuya Kamada

py2zope4: Special charactors in XML should be in CDATA (or escaping)

parent c5ded6d6
......@@ -131,6 +131,7 @@ if document_output_type == "footer":
<link rel="stylesheet" href="css/custom_pdf.css?portal_skin=CI_slideshow" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -141,6 +142,7 @@ if document_output_type == "footer":
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-presentation" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -28,6 +28,7 @@ Generates the letter header
<link rel="stylesheet" tal:attributes="href letter_theme_css_url" />
<link rel="stylesheet" tal:attributes="href letter_template_css_url" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -38,6 +39,7 @@ Generates the letter header
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-letter" onload="setPlaceholdersWithUrlParameters();">
......@@ -90,4 +92,4 @@ Generates the letter header
</table>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -57,6 +57,7 @@ Generates the complete book (only called in HTML version)
</tal:block>
</tal:block>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -67,6 +68,7 @@ Generates the complete book (only called in HTML version)
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<tal:block tal:condition="python: margin_15mm">
......@@ -118,4 +120,4 @@ Generates the complete book (only called in HTML version)
</body>
</tal:block>
</html>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -32,6 +32,7 @@ Creates the Book header.
<link rel="stylesheet" tal:attributes="href book_theme_css_url" />
<link rel="stylesheet" tal:attributes="href book_template_css_url" />
<script type="text/javascript">
//<![[CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -50,6 +51,7 @@ Creates the Book header.
pic.style.height = "auto";
}
}
//]]>
</script>
</head>
<tal:block tal:condition="python: margin_15mm">
......
......@@ -56,6 +56,7 @@ Generates the complete contract (only called in HTML version)
</tal:block>
</tal:block>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -66,6 +67,7 @@ Generates the complete contract (only called in HTML version)
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-contract" onload="setPlaceholdersWithUrlParameters()">
......@@ -91,4 +93,4 @@ Generates the complete contract (only called in HTML version)
</tal:block>
</body>
</html>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -26,6 +26,7 @@ Creates the Contract footer.
<link rel="stylesheet" tal:attributes="href contract_theme_css_url" />
<link rel="stylesheet" tal:attributes="href contract_template_css_url" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -36,6 +37,7 @@ Creates the Contract footer.
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-contract" onload="setPlaceholdersWithUrlParameters()">
......@@ -66,4 +68,4 @@ Creates the Contract footer.
</table>
</tal:block>
</tal:block>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -31,6 +31,7 @@ Creates the Contract header.
<link rel="stylesheet" tal:attributes="href contract_theme_css_url" />
<link rel="stylesheet" tal:attributes="href contract_template_css_url" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -43,12 +44,13 @@ Creates the Contract header.
}
function setImageSize(pic) {
if (pic.naturalWidth / pic.naturalHeight <= 1) {
pic.style.width = "auto";
pic.style.maxWidth = "28mm";
pic.style.maxHeight = "28mm";
pic.style.height = "auto";
pic.style.width = 'auto';
pic.style.maxWidth = '28mm';
pic.style.maxHeight = '28mm';
pic.style.height = 'auto';
}
}
//]]>
</script>
</head>
<body class="ci-contract" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -48,6 +48,7 @@ Generates the complete leaflet
<style type="text/css" tal:content="python: leaflet_css"></style>
</tal:block>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -58,7 +59,8 @@ Generates the complete leaflet
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
<tal:block metal:use-macro="context/WebPage_createLeafletHeader/macros/leaflet_header" />
......@@ -66,4 +68,4 @@ Generates the complete leaflet
<tal:block metal:use-macro="context/WebPage_createLeafletFooter/macros/leaflet_footer" />
</body>
</html>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -28,6 +28,7 @@ Generate the leaflet footer
<link rel="stylesheet" tal:attributes="href leaflet_theme_css_url" />
<link rel="stylesheet" tal:attributes="href leaflet_template_css_url" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -38,6 +39,7 @@ Generate the leaflet footer
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
......@@ -64,4 +66,4 @@ Generate the leaflet footer
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -39,6 +39,7 @@ Generates the complete press release
<style type="text/css" tal:content="python: release_css"></style>
</tal:block>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -49,7 +50,8 @@ Generates the complete press release
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]
</script>
</head>
<body class="ci-press-release" onload="setPlaceholdersWithUrlParameters()">
<tal:block metal:use-macro="context/WebPage_createReleaseHeader/macros/release_header" />
......@@ -57,4 +59,4 @@ Generates the complete press release
<tal:block metal:use-macro="context/WebPage_createReleaseFooter/macros/release_footer" />
</body>
</html>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -28,6 +28,7 @@ Generate the press release footer
<link rel="stylesheet" tal:attributes="href release_theme_css_url" />
<link rel="stylesheet" tal:attributes="href release_template_css_url" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -38,6 +39,7 @@ Generate the press release footer
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-press-release" onload="setPlaceholdersWithUrlParameters()">
......@@ -65,4 +67,4 @@ Generate the press release footer
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -38,6 +38,7 @@ Generates the complete slideshow
<link rel="stylesheet" tal:attributes="href doc_template_css_url" />
<style type="text/css" tal:content="structure doc_css"></style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -48,6 +49,7 @@ Generates the complete slideshow
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-slideshow" onload="setPlaceholdersWithUrlParameters()">
......@@ -84,4 +86,4 @@ Generates the complete slideshow
</script>
</body>
</html>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -37,6 +37,7 @@ Creates the Slideshow footer section.
<link rel="stylesheet" tal:attributes="href python: doc_template_css_url" />
<style type="text/css" tal:content="structure doc_css"></style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -47,6 +48,7 @@ Creates the Slideshow footer section.
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-slideshow" onload="setPlaceholdersWithUrlParameters()">
......@@ -74,4 +76,4 @@ Creates the Slideshow footer section.
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
</tal:block>
......@@ -12,6 +12,7 @@
<link rel="stylesheet" href="template_css/highlight.css" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -22,6 +23,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
......
......@@ -12,6 +12,7 @@
<link rel="stylesheet" href="template_css/highlight.css" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -22,6 +23,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
......
......@@ -12,6 +12,7 @@
<link rel="stylesheet" href="template_css/highlight.css" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -22,6 +23,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
......
......@@ -12,6 +12,7 @@
<link rel="stylesheet" href="template_css/highlight.css" />
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -22,6 +23,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
......
......@@ -14,6 +14,7 @@
<style type="text/css">html .ci-leaflet #left-summary:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;}html .ci-leaflet #legalese:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;content: "";display: block;height: 60px;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -24,7 +25,8 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -14,6 +14,7 @@
<style type="text/css">html .ci-leaflet #left-summary:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;}html .ci-leaflet #legalese:before {background: url("organisation_module/template_test_association/default_image?format=png") center no-repeat;background-size: contain;content: "";display: block;height: 60px;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -24,7 +25,8 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -14,6 +14,7 @@
<style type="text/css">html .ci-leaflet #left-summary:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;}html .ci-leaflet #legalese:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;content: "";display: block;height: 60px;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -24,7 +25,8 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -14,6 +14,7 @@
<style type="text/css">html .ci-press-release .ci-press-release-logo:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -24,7 +25,8 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-press-release" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -14,6 +14,7 @@
<style type="text/css">html .ci-press-release .ci-press-release-logo:before {background: url("image_module/template_test_image_logo_png?format=png") center no-repeat;background-size: contain;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -24,7 +25,8 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
//]]>
</script>
</head>
<body class="ci-press-release" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -17,6 +17,7 @@
<link rel="stylesheet" href="template_css/slide.css" />
<style type="text/css">.ci-slideshow-intro.present:not(.slide-background):before {content: "";background: #FFF url("image_module/template_test_image_logo_png?format=png&display=medium") center no-repeat;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -27,6 +28,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-slideshow" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -17,6 +17,7 @@
<link rel="stylesheet" href="template_css/slide.css" />
<style type="text/css">.ci-slideshow-intro.present:not(.slide-background):before {content: "";background: #FFF url("image_module/template_test_image_logo_png?format=png&display=medium") center no-repeat;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -27,6 +28,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-slideshow" onload="setPlaceholdersWithUrlParameters()">
......
......@@ -17,6 +17,7 @@
<link rel="stylesheet" href="template_css/slide.css" />
<style type="text/css">.ci-slideshow-intro.present:not(.slide-background):before {content: "";background: #FFF url("image_module/template_test_image_logo_png?format=png&display=medium") center no-repeat;}</style>
<script type="text/javascript">
//<![CDATA[
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
......@@ -27,6 +28,7 @@
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
//]]>
</script>
</head>
<body class="ci-slideshow" onload="setPlaceholdersWithUrlParameters()">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment