Jump to content

tipone

Members
  • Posts

    5
  • Joined

  • Last visited

tipone's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Need help for problem resolution with schema (maybe not?)I have a instance file like below: <?xml version="1.0" encoding="utf-8"?><report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bilances_poz.xsd"><row><row_id>A1</poz_id><row_country_code>US</row_country_code><row_currency_code>USD</row_currency_code> <gowernm>999</gowernm> <local>999</local> <issuers>999</issuers> <credit_instit>999</credit_instit> <private>999</private></row><row><row_id>A2</poz_id><row_country_code>PL</row_country_code><row_currency_code>POL</row_currency_code> <gowernm>888</gowernm> <local>888</local> <issuers>888</issuers> <credit_instit>888</credit_instit> <private>888</private></row></report> Is it possible to define in schema to avoid the combination of element <row_id> value A1 with element <issuers> and A2 with <private> ? There could be more than one disallowed combinations per each row_id.I made a syntax by myself, but it is no approved with w3, of course. <xs:denycombinations><xs:deny name="issuers"><xs:element name="row_id"><xs:element value="A1"/></xs:element></xs:deny><xs:deny name="private"><xs:element name="row_id"><xs:element value="A2"/><xs:element value="A3"/><xs:element value="A5"/></xs:element></xs:deny></xs:denycombinations> Thank you for your time!Janis
×
×
  • Create New...