Hi,
I do have a problem casting a selctPath to its proper type
(cannot cast XMLAnyTypeImpl to SignatureTemplateType)
while using :
SignatureTemplateType c=(SignatureTemplateType)
documentToSign.selectPath("declare namespace
msig='http://www.eurecom.fr/security/msig#';" +
"$this//msig:[EMAIL PROTECTED]'ID000004']")[0]
Further investigating I tried that :
documentToSign.selectPath("declare namespace
msig='http://www.eurecom.fr/security/msig#';" +
"$this//msig:[EMAIL PROTECTED]'ID000004']")
=>
[<xml-fragment name="ID000004"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:msig="http://www.eurecom.fr/security/msig#">
<!-- Valid SignatureTemplateType children .. -->
</xml-fragment> ]
documentToSign.selectPath("declare namespace
msig='http://www.eurecom.fr/security/msig#';" +
"$this//msig:[EMAIL PROTECTED]'ID000004']/..")
=>result
[<xml-fragment xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:msig="http://www.eurecom.fr/security/msig#">
<msig:SignatureTemplate name="ID000004">
<!-- Valid SignatureTemplateType children .. -->
]
I tried also that without success :
SignatureTemplateType c=(SignatureTemplateType)
documentToSign.selectPath("declare namespace
msig='http://www.eurecom.fr/security/msig#';" +
"$this//msig:[EMAIL
PROTECTED]'"+signatureTemplateReference+"']")[0].changeType(SignatureTemplateType.type);
NB: the result of change type is the original object and not null ...
any clues ?
jc
PS: I am using the release 2.1
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]