Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FpML coding scheme to version 2.20 #190

Merged
merged 4 commits into from
Nov 15, 2024
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
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
<version>5</version>
</parent>

<name>rosetta-testing</name>

<name>Rune Testing</name>
<groupId>com.regnosys</groupId>
<artifactId>rosetta-testing</artifactId>
<packaging>jar</packaging>
Expand Down
150 changes: 150 additions & 0 deletions src/main/resources/coding-schemes/fpml/FpML.CodeList.genericode.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/* FpML.CodeList.genericode.css
Stylesheet for presenting FpML coding schemes from genericode xml.
Draft 2023-12-01
Please submit comments and requests via
https://www.fpml.org/submit-issue/
*/

@namespace doc "http://www.fpml.org/coding-scheme/documentation";

doc|publicationDate::before {
content: "Published ";
}

doc|status::before {
content: "Status ";
}

CodeList {
padding: 1rem;
}

Annotation, Identification, SimpleCodeList {
display: block;
}

Annotation {
padding: 1rem 0;
font-weight: bold;
}

Annotation > Description {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-start;
flex-wrap: wrap;
}

Identification {
font-family: monospace;
display: table;
border-collapse: collapse;
/*
width: 600px;
*/
border: 1px solid #000;
margin-bottom: 1rem;
}

Identification ShortName,
Identification Version,
Identification CanonicalUri,
Identification CanonicalVersionUri,
Identification LocationUri {
display: table-row;
border-bottom: 1px solid #000;
}

Identification ShortName {
font-weight: bold;
background-color: #fafafa;
}

Identification ::before {
display: table-cell;
padding: .5rem;
}

Identification ShortName::before {
content: "ShortName";
}

Identification Version::before {
content: "Version";
}

Identification CanonicalUri::before {
content: "CanonicalUri";
}

Identification CanonicalVersionUri::before {
content: "CanonicalVersionUri";
}

Identification LocationUri::before {
content: "LocationUri";
}

ColumnSet, SimpleCodeList {
width: 100%;
border: 1px solid #000;
}

ColumnSet {
display: flex;
border-bottom: none;
background: #f8f9fa;
}

ColumnSet Column {
padding: 1rem;
}

ColumnSet Column:first-child,
SimpleCodeList Row Value:nth-of-type(1) {
width: 15%;
}


ColumnSet Column:nth-child(3),
SimpleCodeList Row Value:nth-of-type(3){
width: 75%;
}



Column ShortName {
font-weight: bold;
}


Data[Type=token] Parameter,
ColumnSet Key,
ColumnSet Column:nth-child(2),
ColumnSet Column:nth-child(4),
SimpleCodeList Row Value:nth-of-type(2),
SimpleCodeList Row Value:nth-of-type(4)
{
display: none;
}

SimpleCodeList Row {
display: block;
position: relative;
border-top: 1px solid #000;
}
SimpleCodeList Row:first-child {
border-top: none;
}

SimpleCodeList Row Value {
padding: 1rem;
display: inline-block;
vertical-align: top;
text-align: left;
}

SimpleCodeList Row Annotation {
padding: 0 1rem;
}
127 changes: 127 additions & 0 deletions src/main/resources/coding-schemes/fpml/FpML.CodeListSet.genericode.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
/* FpML.CodeListSet.genericode.css
Stylesheet for presenting FpML set of schemes from genericode xml.
Draft 2023-12-01
Please comments and requests via
https://www.fpml.org/submit-issue/
*/

@namespace doc "http://www.fpml.org/coding-scheme/documentation";

doc|publicationDate::before {
content: "Published ";
}

doc|status::before {
content: "Status ";
}

CodeListSet {
padding: 1rem;
}

CodeListSet > Annotation, Identification, SimpleCodeList {
display: block;
}

Annotation {
padding: 1rem;
font-weight: bold;
}

/* Using this "hack" as an alternative to being unable to target child elements so we can clean up a bit */
CodeListSet > Annotation > Description {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-start;
flex-wrap: wrap;
}

ul[class=bulleted] {
font-weight: normal;
}

li {
display: list-item;
list-style: disc inside;
margin-left: 40px;
padding: 5px 0;
}

ul ul ul {
font-weight: normal;
}

Identification, CodeListRef {
font-family: monospace;
display: table;
border-collapse: collapse;
/*
width: 800px;
*/
border: 1px solid #000;
margin-bottom: 1rem;
}

Identification ShortName,
Identification Version,
Identification CanonicalUri,
Identification CanonicalVersionUri,
Identification LocationUri,
CodeListRef CanonicalUri,
CodeListRef CanonicalVersionUri,
CodeListRef LocationUri {
display: table-row;
border-bottom: 1px solid #000;
}

CodeListRef Annotation {
display: table-caption;
border: 1px solid #000;
border-bottom: none;
}

/*Identification {*/
/* border-bottom: 1px solid #000;*/
/* padding-bottom: 1rem;*/
/* width: 95%;*/
/*}*/

Identification ::before,
CodeListRef ::before {
display: table-cell;
padding: .5rem;
}

Identification ShortName,
CodeListRef ShortName {
font-weight: bold;
background-color: #fafafa;
}

Identification ShortName::before {
content: "ShortName";
}

Identification Version::before {
content: "Version";
}

Identification CanonicalUri::before,
CodeListRef CanonicalUri::before {
content: "CanonicalUri";
}

Identification CanonicalVersionUri::before,
CodeListRef CanonicalVersionUri::before {
content: "CanonicalVersionUri";
}

Identification LocationUri::before,
CodeListRef LocationUri::before {
content: "LocationUri";
}

CodeListRef > Annotation {
background-color: #fafafa;
}
10 changes: 5 additions & 5 deletions src/main/resources/coding-schemes/fpml/account-type-1-1.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gcl:CodeList xmlns:gcl="http://xml.genericode.org/2004/ns/CodeList/0.2/" xmlns:doc="http://www.fpml.org/coding-scheme/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.genericode.org/2004/ns/CodeList/0.2/ CodeList.xsd">
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/css" href="FpML.CodeList.genericode.css"?>
<gcl:CodeList xmlns:gcl="https://docs.oasis-open.org/codelist/ns/genericode/1.0/" xmlns:doc="http://www.fpml.org/coding-scheme/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/codelist/ns/genericode/1.0/ genericode.xsd">
<Annotation>
<Description>
<doc:definition>Contains a code representing the type of an account, for example in a
clearing or exchange model.</doc:definition>
clearing or exchange model.</doc:definition>
<doc:publicationDate>2016-06-13</doc:publicationDate>
</Description>
</Annotation>
Expand Down Expand Up @@ -55,7 +55,7 @@
</Value>
<Value>
<SimpleValue>The account contains trading activity or positions that belong to a
client of the firm that opened the account.</SimpleValue>
client of the firm that opened the account.</SimpleValue>
</Value>
</Row>
<Row>
Expand All @@ -67,7 +67,7 @@
</Value>
<Value>
<SimpleValue>The account contains proprietary trading activity or positions, belonging
to the firm that is the owner of the account.</SimpleValue>
to the firm that is the owner of the account.</SimpleValue>
</Value>
</Row>
</SimpleCodeList>
Expand Down
30 changes: 15 additions & 15 deletions src/main/resources/coding-schemes/fpml/accruing-fee-type-1-0.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<gcl:CodeList xmlns:gcl="http://xml.genericode.org/2004/ns/CodeList/0.2/" xmlns:doc="http://www.fpml.org/coding-scheme/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.genericode.org/2004/ns/CodeList/0.2/ CodeList.xsd">
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/css" href="FpML.CodeList.genericode.css"?>
<gcl:CodeList xmlns:gcl="https://docs.oasis-open.org/codelist/ns/genericode/1.0/" xmlns:doc="http://www.fpml.org/coding-scheme/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/codelist/ns/genericode/1.0/ genericode.xsd">
<Annotation>
<Description>
<doc:definition>Facility-level accruing fees.</doc:definition>
Expand Down Expand Up @@ -43,8 +43,8 @@
</Value>
<Value>
<SimpleValue>A fee paid by the borrower to keep loan in place until it can be used.
For a revolver, the fee paid by a borrower on unused/funded
commitments.</SimpleValue>
For a revolver, the fee paid by a borrower on unused/funded
commitments.</SimpleValue>
</Value>
</Row>
<Row>
Expand All @@ -56,11 +56,11 @@
</Value>
<Value>
<SimpleValue>A fee that is paid on a facility's entire committed amount, regardless of
usage; it is often charged on revolving credits to investment grade borrowers
instead of a commitment fee because these facilities typically have a
competitive-bid option (CBO) that allows a borrower to solicit the best bid from
it syndicate group for a given borrowing. The lenders that do not lender until
the CBO are still paid for their commitment.</SimpleValue>
usage; it is often charged on revolving credits to investment grade borrowers
instead of a commitment fee because these facilities typically have a
competitive-bid option (CBO) that allows a borrower to solicit the best bid from
it syndicate group for a given borrowing. The lenders that do not lender until
the CBO are still paid for their commitment.</SimpleValue>
</Value>
</Row>
<Row>
Expand All @@ -72,10 +72,10 @@
</Value>
<Value>
<SimpleValue>A fee associated with a long-term commitment to provide a Bridge Loan or
Credit Facility, which starts accruing the day the Fee Letter is signed (or a
specified number of days thereafter) and terminates when the underlying
transaction is either consummated or terminated. The Ticking Fee is set forth in
the Fee Letter. </SimpleValue>
Credit Facility, which starts accruing the day the Fee Letter is signed (or a
specified number of days thereafter) and terminates when the underlying
transaction is either consummated or terminated. The Ticking Fee is set forth in
the Fee Letter. </SimpleValue>
</Value>
</Row>
<Row>
Expand All @@ -87,8 +87,8 @@
</Value>
<Value>
<SimpleValue>Calculated as a percentage of the utilized portion of the facility. This
fee type is subject to banding rules - different portions of the utilization
amount may be subject to different percentages.</SimpleValue>
fee type is subject to banding rules - different portions of the utilization
amount may be subject to different percentages.</SimpleValue>
</Value>
</Row>
</SimpleCodeList>
Expand Down
Loading
Loading