<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Courier size=2>Hi!</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I'm having some trouble signing using an xpointer
reference.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>The XML document I'm trying to sign looks
like this:</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2><?xml version="1.0"
encoding="UTF-8"?><BR><Letter><BR> Hello,
World! <BR> <Info
Id="SomeData"><BR> <!-- Commentary
--><BR> <Data1> Some data
</Data1><BR> <Data2> More data
</Data2><BR>
</Info><BR></Letter></FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I do like this in my code. (from signing example
3):</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>referenceNode =
xmlSecSignedInfoAddReference(signedInfoNode,<BR> (const
unsigned char *) "my-reference",<BR> (const
unsigned char *)
"#xpointer(id('SomeData'))",<BR>
NULL);</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>I debugged the signing process and it
ends up in xmlSecTransformStateParseUri (transforms.c) where</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>xmlXPtrEval(BAD_CAST (xptr + 1),
ctxt);</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>fails.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>The xptr contains
#xpointer(id('SomeData')).</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>Does this mean that the xmlXPtrEval cannot find
the element <Info Id="SomeData"> ?</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>Has anyone got a clue to what I am doing wrong
here?</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>:)</FONT></DIV></BODY></HTML>