[xmlsec] How to get namespace prefix on the signature XML-elements

Aleksey Sanin aleksey@aleksey.com
Fri, 27 Jun 2003 08:26:14 -0700


This is a multi-part message in MIME format.
--------------070804000006070400030100
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

You get <Signature xmlns="http://...."/> thus the element *has* correct
namespace. The namespace prefix does not matter at all and using
<XXX> instead of <dsig:XXX> saves 5 bytes per element. Not much but
still good :)
Currently xmlsec has no way of changing the prefix and I just don't know
why one can need it,

Aleksey

Asbj?rn Oskal wrote:

> Hi!
>  
> This is probably a silly question but how do I get a namespace prefix on
> the signature XML-elements like <dsig:Signature> or <ds:Signature>.
> Now I get <Signature>.
>  
> :)
>  
> W | Asbj?rn Oskal, System Developer
> E | Well Diagnostics AS, Forskningsparken, 9291 Troms?
> L | Tel: +47 77 75 76 80 (70), Cell: +47 905 29 608
> L | http://www.welldiagnostics.com/


--------------070804000006070400030100
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=KOI8-R">
  <title></title>
</head>
<body>
You get &lt;Signature xmlns=<a class="moz-txt-link-rfc2396E" href="http://....">"http://...."</a>/&gt; thus the element *has*
correct<br>
namespace. The namespace prefix does not matter at all and using<br>
&lt;XXX&gt; instead of &lt;dsig:XXX&gt; saves 5 bytes per element. Not
much but<br>
still good :)<br>
Currently xmlsec has no way of changing the prefix and I just don't know<br>
why one can need it,<br>
<br>
Aleksey<br>
<br>
Asbj&oslash;rn Oskal wrote:<br>
<blockquote type="cite" cite="mid001001c33c92$f7975e10$3901a8c0@asbjorn">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1141" name="GENERATOR">
  <style></style>
  <div><font face="Courier" size="2">Hi!</font></div>
  <div>š</div>
  <div><font face="Courier" size="2">This is probably a silly question
but how do I get a namespace prefix on</font></div>
  <div><font face="Courier" size="2">the signature XML-elements like
&lt;dsig:<font face="Times New Roman" size="3">Signature&gt; or
&lt;ds:Signature&gt;.</font></font></div>
  <div>Now I get &lt;Signature&gt;.</div>
  <div>š</div>
  <div><font face="Courier" size="2">:)</font></div>
  <div>š</div>
  <div><font face="Courier" size="2">W | Asbj&oslash;rn Oskal, System Developer<br>
E | Well Diagnostics AS, Forskningsparken, 9291 Troms&oslash;<br>
L | Tel: +47 77 75 76 80 (70), Cell: +47 905 29 608<br>
L | <a href="http://www.welldiagnostics.com/">http://www.welldiagnostics.com/</a> </font></div>
</blockquote>
</body>
</html>

--------------070804000006070400030100--