Comments (1)
Hello,
The fact that the element cac:Party
can have as it descendant another cac:Party
element is a design choice in the UBL standard, so it's not something we can change. This does indeed make it possible to get into circular references or infinite recursion if you're only looking at the XSD.
In order to avoid this, I would suggest to use the structure of fields and nodes defined in fields.json.
For you example with the field "OPT-300-Procedure-SProvider", its "xpathRelative" property is cac:PartyIdentification/cbc:ID
, and its parent is the node "ND-ProviderParty". This node then has its own relative XPath, and a parent node:
"id" : "ND-ProviderParty",
"parentId" : "ND-ServiceProviderParty",
"xpathAbsolute" : "/*/cac:ContractingParty/cac:Party/cac:ServiceProviderParty/cac:Party",
"xpathRelative" : "cac:Party",
"repeatable" : false
So by following this tree structure you should be able to build a representation of the structure of an XML eForms notice, without any circular references.
See this page for information on how the XML structure is represented: https://docs.ted.europa.eu/eforms/1.3.2/fields/xml-structure.html
I hope this helps.
As this is not an issue in the SDK, I'm closing this. Feel free to provide feedback or share your experience in the "Discussions" forum.
from eforms-sdk.
Related Issues (20)
- Structure of GR-Part-PlannedDuration HOT 3
- Missing conditional mandatory statements for BT-773-Tender (and more)
- Sum of criterias validation error HOT 1
- Missing translations in subtype T02 HOT 2
- Strange NL translation for GR-Lot-ReviewOrg
- Getting validation error BR-OPT-00002-0052 when sending customization id with two digit after the dot, for ex "eforms-sdk-1.10" HOT 1
- missing publication information in pdf render API HOT 3
- CON-0001
- Missing fields using `Convert notice to the latest SDK version` on preview HOT 5
- Getting validation error when providing an Irish postal code
- TED Viewer - Sdk version 1.10 does not exist
- Joint procurement - Authority & Entity Activity when mixing contracting CA/CE parties HOT 1
- unused codes in non-publication-identifier
- Wrong rule texts in GR-LotResult-ReceivedSubmissions HOT 6
- Errors on empty fields (BT-5101(a)-Lot, BT-5071-Lot, BT-5141-Lot, BT-161-NoticeResult, BT-119-LotResult)
- BT-98 is impossible in form 19 HOT 1
- Amendments to extend Deadline Receipt Requests for expired DPS
- Receive XML via API, not frontend direct link
- Why is BT-630 mandatory in NTD-20/21? HOT 3
- incorrect label for rule BR-BT-00738-0053 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eforms-sdk.