I have an element 'ABC'. For that element there are 3 child elements. a,b and c and these are of type integer. and maximum occurrence of element c is infinity. if the value of element 'a' is 1 and 'b' is 2 then the occurrence of 'c' should be 3. Can i set the maximum occurrence of element c dynamically. or based on the value of elements 'a' and 'b' Eg:Refer the images Refer the screenshot of code Refer the screenshot of error message Refer the screenshot of value
How can i restrict maximum occurrence of an element based on another element value in XML
244 Views Asked by ANUJI VARGHESE At
1
There are 1 best solutions below
Related Questions in XML
- Impose component restriction to a series of parsys-CQ
- Wrong xml being inflated android
- Shorten the XSD
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Magento custom block. Can't get block's file
- Layout not shifting up when keyboard is open
- CSV to XML XSLT: How to quote excape
- Getting deeply embedded XML element values
- Saving FileSystemInfo Array to File
- how to apply templates within xsl:for-each
- Spring - configure Jboss Intros for xml with java config?
- Problems with implementing custom actionbar android
- Can Apache Ant be told to cache its XML files?
- Is Log4j2 xml configuration case sensitive?
- How to get a specific node value in XML Pull Parser
Related Questions in XSD
- Shorten the XSD
- Custom XML Validator Factory
- XSD.exe Generating Classes with type Object instead of XSD defined type
- How to generate parameterized constructor for Type/Class from XSD
- Validate xml if any one element exists in a sequence xsd
- XML Validation with XML-Reader in PHP
- exception unmarshalling xml file using jaxb
- Building XSD for secific xml
- Restriction on elements depending on attributes in XSD 1.1
- XSD unique element XPath limitations
- Convert date type to string in jaxb using bindings
- How to validate xsd schema if it includes ohter schemas?
- .NET XmlSerializer and multidimensional arrays
- Java - Spring Ws - Loading Relative Includes in XSD files (Tomcat 8)
- XML validation: why is explicitly specifying a namespace not allowed in this case?
Related Questions in ALTOVA
- Altova Stylevision 2011 inserting ​ zero width space blocks
- how to convert Json array to XSD
- Get node value from two dependent xml files
- Find same node value from main root in xquery
- search and get value from String
- measure execution time of XSLT 2.0 program in mapForce
- How to use XPath to select Cartesian Product set of non null sibling nodes?
- Unique Particle Attribution error
- Swap the transformation flow between two XSD schemas in MapForce
- Change Xmlspy editor background color
- Check if a parameter exists in XSLT before using it
- Set the variables' value from XML using Altova Stylevision
- XBRL Formula Feature in Altova Xmlspy
- Convert string field to decimal in Altova Mapforce
- How do I recode an XML document in XMLSpy to use entities
Related Questions in XMLSPY
- Select repeating node with xpath
- Does XMLSpy integration package work with Visual Studio 2012
- Change Xmlspy editor background color
- How do we build/assemble test data for large XML schema?
- In a WSDL file, via a free solution can the XPath of a response element be determined without invoking the service?
- <soap:address> location attribute when using Netbeans New -> Webservice from WSDL using XMLSpy
- XBRL Formula Feature in Altova Xmlspy
- How do I recode an XML document in XMLSpy to use entities
- How to create SimpleType enumeration with xmlspy in schema?
- Xslt : Create a namespace dynamically
- Xslt : Create root element (Starting Tag )dynamically
- XSL disable-output-escaping XML SPY vs SAXON
- Altova XMLspy 2014: Multi-line xpath in XSD 1.1 assertions
- What is allowed in Restricted XPaths (constraints)?
- XMLSpy ignores "minOccurs"? Why is this XML valid?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
XSD 1.1 schema with
xs:assert:That way a sample like
is considered valid while
raises a validation error about the assertion failing:
Assertion evaluation ('count(c) = a + b') for element 'ABC' on schema type '#AnonType_ABC' did not succeed..Tested with Xerces in oXygen, I don't have XMLSpy here to test.
Make sure you use a version that supports/has enabled XSD schema 1.1 support.