-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MID-9461: fix writing of CDATA to xml when html format is used
- Loading branch information
Showing
7 changed files
with
249 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
infra/prism-impl/src/test/resources/common/xml/messageTemplate.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<messageTemplate xmlns='http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd'> | ||
<name>message-template</name> | ||
<defaultContent> | ||
<bodyExpression> | ||
<script> | ||
<code><![CDATA[ | ||
<html> | ||
<head> | ||
<style> | ||
/* Use your CSS styles as needed */ | ||
div.footer { | ||
height: 64px; | ||
width: 100%; | ||
border-top: solid thin; | ||
margin-left: auto; | ||
margin-right: auto; | ||
background-color: ivory; | ||
} | ||
body { | ||
font: normal 14px Roboto, sans-serif; | ||
} | ||
.center { | ||
text-align: center; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>User Modification Notification</h1> | ||
<p>User <b>$!event.requesteeDisplayName</b> ($event.requesteeName) was <b>modified</b> (status: $event.statusAsText)</p> | ||
<p>The user modification was requested by $event.requesterDisplayName ($event.requesterName)</p> | ||
<div class="footer"> | ||
<img src="http://localhost/midpoint/static-web/example-logo-s.png" alt="[Example logo]" width="64" height="64" style="float:left;"/> | ||
<p class="center">This notification has been from an unmonitored mailbox.<br/> | ||
<b>IT Department of Example, Inc.</b> | ||
</p> | ||
</div> | ||
</body> | ||
</html> | ||
]]></code> | ||
</script> | ||
</bodyExpression> | ||
</defaultContent> | ||
</messageTemplate> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.