<?xml version="1.0" encoding="UTF-8"?>

<!--
Erstellung einer Signatur
  - Supplement zur CreateSignatureEnvironment per LocRef
-->

<CreateXMLSignatureRequest
  xmlns="http://reference.e-government.gv.at/namespace/moa/20020822#" 
  xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
  <KeyIdentifier>PKCS12RSAKey1</KeyIdentifier>
  <SingleSignatureInfo SecurityLayerConformity="false">
    <DataObjectInfo Structure="detached" ChildOfManifest="false">
      <DataObject Reference="#document"/>
      <CreateTransformsInfoProfile>
        <CreateTransformsInfo>
          <dsig:Transforms>
            <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
          </dsig:Transforms>
          <FinalDataMetaInfo>
            <MimeType>text/plain</MimeType>
          </FinalDataMetaInfo>
        </CreateTransformsInfo>
      </CreateTransformsInfoProfile>
    </DataObjectInfo>
    <CreateSignatureInfo xmlns:data="http://uri.data.org">
      <CreateSignatureEnvironment>
        <XMLContent xml:space="preserve">
          <data:Document xmlns:data="http://uri.data.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attr="document" xsi:schemaLocation="http://uri.data.org http://anywhere.org/testDocument.schema.xsd">Dies sind Testdaten</data:Document>
        </XMLContent>
      </CreateSignatureEnvironment>
      <CreateSignatureEnvironmentProfile>
        <CreateSignatureLocation Index="0">//data:Document</CreateSignatureLocation>
        <Supplement>
          <Content Reference="http://anywhere.org/testDocument.schema.xsd">
            <LocRefContent>http://localhost:8080/moa-spss-testdata/resources/schemas/testDocument.schema.xsd</LocRefContent>
          </Content>
        </Supplement>
      </CreateSignatureEnvironmentProfile>
    </CreateSignatureInfo>
  </SingleSignatureInfo>
</CreateXMLSignatureRequest>