Chilkat has resolved problems relating to the creation of XAdES-BES XML signatures for documents sent to www.csioz.gov.pl.   These fixes will be available starting in Chilkat v9.5.0.76.   At the time of this post (31-Oct-2018) 9.5.0.76 is not yet released.  Contact support@chilkatsoft.com for a pre-release if desired.

Chilkat has worked with a customer to successfully sign XML files having the HL7 Clinical Document Architecture
These files look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CDA_PL_IG_1.2.2.xsl" type="text/xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3"
 xmlns:extPL="http://www.csioz.gov.pl/xsd/extPL/r1"
 xmlns:pharm="urn:ihe:pharm"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:type="extPL:ClinicalDocument">
    
…
</ClinicalDocument>

During our development, the XML signatures produced for www.csioz.gov.pl are verified at  https://weryfikacjapodpisu.pl/index.html

To get started with adding XAdES-BES capabilities to your application (in C#, C++, Java, VB.NET, VB6, Delphi, Perl, Python, Ruby, PHP, Objective-C, FoxPro, DataFlex, C, Swift, Node.js, and other languages, go to the online tool at http://tools.chilkat.io/xmlDsigGen.cshtml  and paste a sample of already-signed XML to generate the source code required to create the given signature.  Chilkat downloads are at https://www.chilkatsoft.com/downloads.asp   Chilkat reference documentation is at https://www.chilkatsoft.com/reference.asp