xPagesで表示させた結果をセキュリティ的にテキストコピー禁止にしたい文章があります
調べた所CSSやJavaScriptを使った方法など何種類かあるようですが通常のHTMLで
<body onMouseDown="return false;" onSelectStart="return false;" onCopy="return false;" unselectable="on">
と同じことをxPagesで行おうとして以下のような感じでxPagesのソースを書きました。
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:this.attrs>
<xp:attr name="onMouseDown" value="return false"></xp:attr>
<xp:attr name="onSelectStart" value="return false"></xp:attr>
<xp:attr name="onCopy" value="return false"></xp:attr>
<xp:attr name="unselectable" value="on"></xp:attr>
</xp:this.attrs>
コピー禁止
</xp:view>
ブラウザ上である程度は思ったような動きににはなりました、
しかしブラウザで変換されたHTMLのソースコードを見ると
<!DOCTYPE html>
<html lang="ja" onMouseDown="return false" onSelectStart="return false" onCopy="return false" unselectable="on">
(中略)
<body class="xspView tundra">
(中略)
</body>
</html>
というような感じで<body>タグでなく<html>タグの方で変換されています。
これを<body>タグの方にしようとしましたがどうもxPagesの方ではダメなようです。
他の方はこういったxPagesを使った場合のコピー禁止の措置はどいう方法でコードを書かれているのでしょうか?