Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ jobs:
for f in $G/*.xml; do
xmllint --noout --nonet --schema ci-schemas/4.2.9/FundsXML.xsd "$f"
done
# embedded documents: base64 decodes to exactly SizeInBytes bytes, each one a PDF
.venv/bin/python - $G/Fund-Documents_2025-10.xml <<'PY'
import base64, sys
import xml.etree.ElementTree as ET
docs = ET.parse(sys.argv[1]).getroot().findall("Documents/Document")
embedded = [d for d in docs if d.find("BinaryData") is not None]
assert embedded, "no embedded document"
for d in embedded:
data = base64.b64decode(d.findtext("BinaryData"))
assert len(data) == int(d.findtext("SizeInBytes")), d.findtext("FileName")
assert data.startswith(b"%PDF-1.4") and data.rstrip().endswith(b"%%EOF"), d.findtext("FileName")
print("embedded", d.findtext("FileName"), len(data), "bytes ok")
PY

- name: XSD - negative fixture must FAIL
run: |
Expand Down Expand Up @@ -241,6 +254,8 @@ jobs:
for f in FundsXML_Files/4.2.9/realistic/*.xml; do
echo "== $f"
$S -Dexec.args="$SCH $f"
# a documents-only delivery (ControlData + Documents) has no fund, positions or share classes
if ! grep -q '<Funds>' "$f"; then echo "no <Funds>: portfolio checks skipped"; continue; fi
$X -Dexec.args="XSLT_DataQuality_Checks/Custom_Internal_Checks/custom_internal_checks.xslt $f r_dq.html"
if grep -q 'class="fail"' r_dq.html; then echo "::error::custom DQ check failed for $f"; exit 1; fi
$X -Dexec.args="XSLT_Transformations/Factsheet/factsheet_html.xslt $f r_fs.html"
Expand Down
174 changes: 174 additions & 0 deletions FundsXML_Files/4.2.9/realistic/Fund-Documents_2025-10.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Synthetic sample: fictional companies, funds, identifiers and documents. Generated by make_realistic.py. -->
<FundsXML4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://github.com/fundsxml/schema/releases/download/4.2.9/FundsXML.xsd">
<ControlData>
<UniqueDocumentID>EXAMPLE-FUND-DOCUMENTS-2025-10</UniqueDocumentID>
<DocumentGenerated>2025-11-03T06:15:00</DocumentGenerated>
<Version>4.2.9</Version>
<ContentDate>2025-10-31</ContentDate>
<DataSupplier>
<SystemCountry>AT</SystemCountry>
<Short>EXAMPLE-AM</Short>
<Name>Example Asset Management GmbH</Name>
<Type>Asset Manager</Type>
</DataSupplier>
<DataOperation>INITIAL</DataOperation>
<Language>en</Language>
</ControlData>
<Documents>
<Document>
<Type>
<ListedType>Prospectus</ListedType>
</Type>
<Version>2025-01</Version>
<Language>en</Language>
<TranslationsAvailable>true</TranslationsAvailable>
<PublicationCountries>
<Country>AT</Country>
<Country>DE</Country>
<Country>CH</Country>
</PublicationCountries>
<Fund>
<Identifiers>
<LEI>XMPL00FNDMULTI000170</LEI>
</Identifiers>
<Name>Example Multi Asset Opportunities Fund</Name>
<Currency>EUR</Currency>
</Fund>
<Name>Prospectus Example Multi Asset Opportunities Fund</Name>
<FileName>EX-Multi-Asset_Prospectus_2025-01_en.pdf</FileName>
<ForPublicUsage>true</ForPublicUsage>
<Format>application/pdf</Format>
<Signature>No</Signature>
<CreationDate>2025-01-15</CreationDate>
<SizeInBytes>1843206</SizeInBytes>
<DocumentURL>https://www.example.com/funds/XMPL00FNDMULTI000170/documents/EX-Multi-Asset_Prospectus_2025-01_en.pdf</DocumentURL>
</Document>
<Document>
<Type>
<ListedType>PRIIPS-KID</ListedType>
</Type>
<Version>2025-02</Version>
<Language>en</Language>
<PublicationCountries>
<Country>AT</Country>
<Country>DE</Country>
</PublicationCountries>
<ShareClasses>
<ShareClass>
<Identifiers>
<ISIN>ATXMPLF03016</ISIN>
</Identifiers>
<Name>Example Multi Asset Opportunities Fund EUR R (acc)</Name>
<Currency>EUR</Currency>
</ShareClass>
<ShareClass>
<Identifiers>
<ISIN>ATXMPLF03024</ISIN>
</Identifiers>
<Name>Example Multi Asset Opportunities Fund EUR I (acc)</Name>
<Currency>EUR</Currency>
</ShareClass>
</ShareClasses>
<Name>PRIIPs KID Example Multi Asset Opportunities Fund</Name>
<FileName>EX-Multi-Asset_PRIIPs-KID_2025-02_en.pdf</FileName>
<ForPublicUsage>true</ForPublicUsage>
<Format>application/pdf</Format>
<Signature>No</Signature>
<CreationDate>2025-02-14</CreationDate>
<ExpirationDate>2026-02-13</ExpirationDate>
<SizeInBytes>1696</SizeInBytes>
<BinaryData>
JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4K
ZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4K
ZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAg
MCA1OTUgODQyXSAvUmVzb3VyY2VzIDw8IC9Gb250IDw8IC9GMSA0IDAgUiAvRjIgNSAwIFIgPj4g
Pj4gL0NvbnRlbnRzIDYgMCBSID4+CmVuZG9iago0IDAgb2JqCjw8IC9UeXBlIC9Gb250IC9TdWJ0
eXBlIC9UeXBlMSAvQmFzZUZvbnQgL0hlbHZldGljYSAvRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGlu
ZyA+PgplbmRvYmoKNSAwIG9iago8PCAvVHlwZSAvRm9udCAvU3VidHlwZSAvVHlwZTEgL0Jhc2VG
b250IC9IZWx2ZXRpY2EtQm9sZCAvRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZyA+PgplbmRvYmoK
NiAwIG9iago8PCAvTGVuZ3RoIDc0OSA+PgpzdHJlYW0KQlQKL0YyIDE4IFRmCjU2IDc3MCBUZAoo
S2V5IEluZm9ybWF0a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E9wcG9ydHVuaXRpZXMgRnVuZCBcKGZpY3RpdGlvdXNcKSkgL0F1
dGhvciAoRXhhbXBsZSBBc3NldCBNYW5hZ2VtZW50IEdtYkggXChmaWN0aXRpb3VzXCkpIC9Qcm9k
dWNlciAobWFrZV9yZWFsaXN0aWMucHkpID4+CmVuZG9iagp4cmVmCjAgOAowMDAwMDAwMDAwIDY1
NTM1IGYgCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDA2NCAwMDAwMCBuIAowMDAwMDAwMTIx
IDAwMDAwIG4gCjAwMDAwMDAyNTcgMDAwMDAgbiAKMDAwMDAwMDM1NCAwMDAwMCBuIAowMDAwMDAw
NDU2IDAwMDAwIG4gCjAwMDAwMDEyNTUgMDAwMDAgbiAKdHJhaWxlcgo8PCAvU2l6ZSA4IC9Sb290
IDEgMCBSIC9JbmZvIDcgMCBSID4+CnN0YXJ0eHJlZgoxNDYwCiUlRU9GCg==
</BinaryData>
</Document>
<Document>
<Type>
<ListedType>Factsheet</ListedType>
</Type>
<Version>2025-10</Version>
<Language>en</Language>
<PublicationCountries>
<Country>AT</Country>
<Country>DE</Country>
</PublicationCountries>
<ShareClasses>
<ShareClass>
<Identifiers>
<ISIN>ATXMPLF03016</ISIN>
</Identifiers>
<Name>Example Multi Asset Opportunities Fund EUR R (acc)</Name>
<Currency>EUR</Currency>
</ShareClass>
</ShareClasses>
<Name>Factsheet Example Multi Asset Opportunities Fund EUR R (acc) October 2025</Name>
<FileName>EX-Multi-Asset_Factsheet_ATXMPLF03016_2025-10_en.pdf</FileName>
<ForPublicUsage>true</ForPublicUsage>
<Format>application/pdf</Format>
<Signature>No</Signature>
<CreationDate>2025-11-03</CreationDate>
<ExpirationDate>2025-11-30</ExpirationDate>
<SizeInBytes>1605</SizeInBytes>
<BinaryData>
JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4K
ZW5kb2JqCjIgMCBvYmo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4>
25 changes: 22 additions & 3 deletions FundsXML_Files/4.2.9/realistic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Four complete month-end files of fictional funds, sized and structured like real reporting data: hundreds of
positions, a month of transactions and income, several share classes with a daily NAV history. The small
samples in `../positions/` stay the place to learn the structure; these files are for testing tools, mappings
and performance on data that looks like production.
and performance on data that looks like production. A fifth file delivers the documents of the multi-asset fund.

All four are valid against the
All five are valid against the
[4.2.9 schema](https://github.com/fundsxml/schema/releases/download/4.2.9/FundsXML.xsd) and pass
[`basic_checks.sch`](../../../Schematron_DataQuality_Checks/Basic_Checks/basic_checks.sch) without errors or
warnings (checked in CI).
Expand All @@ -18,12 +18,31 @@ warnings (checked in CI).
| `Euro-Bond-Fund_2025-10.xml` | 1.0 MB | 838,581,814.97 | 207: 200 bonds (fixed, floating, zero; sovereign, agency, covered, corporate), 4 interest rate futures, 1 interest rate swap, account, fee accrual | 2: EUR R acc, EUR I dist | 56 (trades with accrued interest, flows) | coupons, account interest | Accrued interest, dirty prices, yields, durations, ratings, maturity/rating/issuer-type breakdowns |
| `Multi-Asset-Derivatives-Fund_2025-10.xml` | 0.6 MB | 278,791,093.07 | 81 over 12 asset types: equities, bonds, ETFs, warrants, certificates, options, futures, FX forwards, swaps (IRS, cross currency, CDS, total return), call money, accounts, fee accrual | 4: EUR R, EUR I, CHF and USD hedged | 56 | dividends, coupons, interest | Counterparties, swap legs, underlyings with delta, delta-adjusted and commitment exposures, leverage and VaR; `RegulatoryReportings` with an EMT V4.2 per share class and a TPT V7 (Solvency II) of the EUR R class with its equities and bonds |
| `Fund-of-Funds_2025-10.xml` | 0.4 MB | 155,706,556.38 | 38: 35 target funds of 5 managers, 2 accounts, fee accrual | 2: EUR T acc, EUR A dist | 30 | fund distributions, interest | `FundOfFundFlag`, look-through level 1 (`PositionsDecomposed`) into the target funds' securities |
| `Fund-Documents_2025-10.xml` | 10 KB | – | – | – | – | – | `ControlData` + `Documents` only, for the Multi-Asset fund: prospectus as a **link** (`DocumentURL` on example.com, assigned to the fund by LEI), PRIIPs KID (two share classes) and factsheet (one share class) **embedded** as base64 PDF in `BinaryData`, with `SizeInBytes` = decoded length; see below |

Share classes in another currency than the fund report their net assets twice, marked with `isShareClassCcy` and
`isFundCcy`.

Reporting date is 2025-10-31; transactions, income, subscriptions and redemptions cover October 2025.

## Documents: link or embedded

`Fund-Documents_2025-10.xml` shows the two ways to deliver a document in `Documents/Document`:

| Document | `Type/ListedType` | Assigned to | Delivery | `FileName` |
|---|---|---|---|---|
| Prospectus | `Prospectus` | `Fund` (LEI `XMPL00FNDMULTI000170`) | `DocumentURL` (https://www.example.com/…), `SizeInBytes` of the file behind the link | `EX-Multi-Asset_Prospectus_2025-01_en.pdf` |
| PRIIPs KID | `PRIIPS-KID` | `ShareClasses`: `ATXMPLF03016` (EUR R), `ATXMPLF03024` (EUR I) | `BinaryData` (base64, 76 characters per line) | `EX-Multi-Asset_PRIIPs-KID_2025-02_en.pdf` |
| Factsheet | `Factsheet` | `ShareClasses`: `ATXMPLF03016` (EUR R) | `BinaryData` | `EX-Multi-Asset_Factsheet_ATXMPLF03016_2025-10_en.pdf` |

The embedded PDFs are one-page PDF 1.4 files that the generator writes byte for byte (no timestamps, no `/ID`),
so the base64 stays identical on every run; they only say that they are fictitious training samples.
`SizeInBytes` is the exact length of the decoded bytes. To extract one:

```bash
python -c "import base64,sys,xml.etree.ElementTree as E; d=E.parse(sys.argv[1]).find('Documents/Document[2]'); open(d.findtext('FileName'),'wb').write(base64.b64decode(d.findtext('BinaryData')))" Fund-Documents_2025-10.xml
```

## What is consistent

The generator checks these before it writes a file (and CI checks the first two with `fund-summary.xq`):
Expand Down Expand Up @@ -57,7 +76,7 @@ Both have valid check digits, so validators accept them. Company names ("Example
## Regenerate

```bash
python FundsXML_Files/4.2.9/realistic/make_realistic.py # writes the four files here
python FundsXML_Files/4.2.9/realistic/make_realistic.py # writes the five files here
python FundsXML_Files/4.2.9/realistic/make_realistic.py --lint FundsXML_Files tests/fixtures
python FundsXML_Files/4.2.9/realistic/make_realistic.py --verify-online # asks GLEIF and ESMA FIRDS
```
Expand Down
Loading