Skip to content

Commit

Permalink
Issue #62: Add CDATA.
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Dec 7, 2017
1 parent 1b7d1fb commit 0d3aa18
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions templates/components/details.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
?>
<demande>
<?php if ($component->getClientId()) : ?>
<userReference><?= $component->getClientId() ?></userReference>
<userReference><![CDATA[<?= $component->getClientId() ?>]]></userReference>
<?php endif ?>
<?php if ($component->getTitle()) : ?>
<titre><?= $component->getTitle() ?></titre>
<titre><![CDATA[<?= $component->getTitle() ?>]]></titre>
<?php endif ?>
<?php if ($component->getResponsible()) : ?>
<organisationResponsable><?= $component->getResponsible() ?></organisationResponsable>
Expand All @@ -27,7 +27,7 @@
<applicationReference><?= $component->getApplicationId() ?></applicationReference>
<?php endif ?>
<?php if ($component->getRemark()) : ?>
<remarque><?= $component->getRemark() ?></remarque>
<remarque><![CDATA[<?= $component->getRemark() ?>]]></remarque>
<?php endif ?>
<?php if ($component->getDelay()) : ?>
<delai><?= $component->getDelay() ?></delai>
Expand All @@ -45,7 +45,7 @@
<procedureInterInstitution><?= $component->getInterInstitution() ?></procedureInterInstitution>
<?php endif ?>
<?php if ($component->getReferenceFilesRemark()) : ?>
<referenceFilesNote><?= $component->getReferenceFilesRemark() ?></referenceFilesNote>
<referenceFilesNote><![CDATA[<?= $component->getReferenceFilesRemark() ?>]]></referenceFilesNote>
<?php endif ?>
<?php if ($component->getProcedure()) : ?>
<procedure id="<?= $component->getProcedure() ?>"/>
Expand Down
4 changes: 2 additions & 2 deletions templates/components/reference-document.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
*/
?>
<documentReference <?= $this->attributes($component->getAttributes()) ?>>
<documentReferenceName><?= $component->getName() ?></documentReferenceName>
<documentReferenceName><![CDATA[<?= $component->getName() ?>]]></documentReferenceName>
<?php if ($component->getPath()) : ?>
<documentReferencePath><?= $component->getPath() ?></documentReferencePath>
<?php endif ?>
<?php if ($component->getSize()) : ?>
<documentReferenceSize><?= $component->getSize() ?></documentReferenceSize>
<?php endif ?>
<?php if ($component->getRemark()) : ?>
<documentReferenceRemark><?= $component->getRemark() ?></documentReferenceRemark>
<documentReferenceRemark><![CDATA[<?= $component->getRemark() ?>]]></documentReferenceRemark>
<?php endif ?>
<documentReferenceFile><?= $component->getFile() ?></documentReferenceFile>
</documentReference>
10 changes: 5 additions & 5 deletions templates/components/return-address.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
?>
<retour <?= $this->attributes($component->getAttributes()) ?>>
<?php if ($component->getUser()) : ?>
<retourUser><?= $component->getUser() ?></retourUser>
<retourUser><![CDATA[<?= $component->getUser() ?>]]></retourUser>
<?php endif ?>
<?php if ($component->getPassword()) : ?>
<retourPassword><?= $component->getPassword() ?></retourPassword>
<retourPassword><![CDATA[<?= $component->getPassword() ?>]]></retourPassword>
<?php endif ?>
<retourAddress><?= $component->getAddress() ?></retourAddress>
<retourAddress><![CDATA[<?= $component->getAddress() ?>]]></retourAddress>
<?php if ($component->getPath()) : ?>
<retourPath><?= $component->getPath() ?></retourPath>
<retourPath><![CDATA[<?= $component->getPath() ?>]]></retourPath>
<?php endif ?>
<?php if ($component->getRemark()) : ?>
<retourRemark><?= $component->getRemark() ?></retourRemark>
<retourRemark><![CDATA[<?= $component->getRemark() ?>]]></retourRemark>
<?php endif ?>
</retour>
4 changes: 2 additions & 2 deletions templates/components/source.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/
?>
<documentSource <?= $this->attributes($component->getAttributes()) ?>>
<documentSourceName><?= $component->getName() ?></documentSourceName>
<documentSourceFile><?= $component->getFile() ?></documentSourceFile>
<documentSourceName><![CDATA[<?= $component->getName() ?>]]></documentSourceName>
<documentSourceFile><![CDATA[<?= $component->getFile() ?>]]></documentSourceFile>
<?php if ($component->getPath()) : ?>
<documentSourcePath><?= $component->getPath() ?></documentSourcePath>
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion templates/components/status.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<statusTime><?= $component->getTime() ?></statusTime>
<?php endif ?>
<?php if ($component->getMessage()) : ?>
<statusMessage><?= $component->getMessage() ?></statusMessage>
<statusMessage><![CDATA[<?= $component->getMessage() ?>]]></statusMessage>
<?php endif ?>
</status>
2 changes: 1 addition & 1 deletion templates/components/target.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php endif ?>
format="<?= $component->getFormat() ?>" lgCode="<?= $component->getLanguage() ?>">
<?php if ($component->getRemark()) : ?>
<attributionsRemark><?= $component->getRemark() ?></attributionsRemark>
<attributionsRemark><![CDATA[<?= $component->getRemark() ?>]]></attributionsRemark>
<?php endif ?>
<?php if ($component->getDelay()) : ?>
<attributionsDelai
Expand Down

0 comments on commit 0d3aa18

Please sign in to comment.