A
Albretch Mueller
Hi,
I have an XML schema which maxOccurs and minOccurs may changed based on
some external settings.( This is why I set it via
maxOccurs="$test.maxOccurs")
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="$test.maxOccurs" minOccurs="0" name="tpk">
<xs:complexType>
<xs:attribute name="Ix" type="xs:nonNegativeInteger" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
which I keep in properties files and after reading them I could easily
changed via an api call like:
http://java.sun.com/j2se/1.5.0//docs/api/java/lang/System.html#setProperty(j
ava.lang.String,%20java.lang.String)
However XML is not letting me do that.
How could you do something like?
Thanks
I have an XML schema which maxOccurs and minOccurs may changed based on
some external settings.( This is why I set it via
maxOccurs="$test.maxOccurs")
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="$test.maxOccurs" minOccurs="0" name="tpk">
<xs:complexType>
<xs:attribute name="Ix" type="xs:nonNegativeInteger" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
which I keep in properties files and after reading them I could easily
changed via an api call like:
http://java.sun.com/j2se/1.5.0//docs/api/java/lang/System.html#setProperty(j
ava.lang.String,%20java.lang.String)
However XML is not letting me do that.
How could you do something like?
Thanks