I am trying to implement a Canonicalization algorithm using the XML
Security framework. My algorithm needs to access values(parameters) from
elements passed as children of the CanonicalizationMethod element (similar
to InclusiveNamespaces with Exclusive C14N). The schema[1] (below)
provided for CanonicalizationMethod clearly allows for children of the
element. It is unclear how to access the element in the implementation of
the Canonicalization algorithm (the examples for Transform algorithm
clearly demonstrate how this is done for Transforms but that method does
not work for Canonicalization algorithms). Can someone please tell me
whether this can be done? If I need to modify the framework to enable this
would you consider including this in the official code base?
Thanks,
Mike
[1] Schema for CanonicalizationMethod
<element name="CanonicalizationMethod"
type="ds:CanonicalizationMethodType"/>
<complexType name="CanonicalizationMethodType" mixed="true">
<sequence>
<any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) namespace -->
</sequence>
<attribute name="Algorithm" type="anyURI" use="required"/>
</complexType>