This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes in Schema Dynamic value for maxLength - help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "in Schema Dynamic value for maxLength - help " Watch "in Schema Dynamic value for maxLength - help " New topic
Author

in Schema Dynamic value for maxLength - help

Ayyappan Selvaraj
Ranch Hand

Joined: Sep 20, 2004
Posts: 63
Friends,

In a XSD, I have a huge set of complex elements where in I use 2 defined complex types. The defined complex types differ just by the value for the maxLength attribute. So I require that I can have one complex type instead of two, with a variable defined and value supplied to it when being referred.

The XSD code is:



And I want something like this::



Thanks in advance
 
Consider Paul's rocket mass heater.
 
subject: in Schema Dynamic value for maxLength - help
 
Similar Threads
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
Invalid type (xsi:type) is set when XML request is generated from web service client
XML schema validation
unble to validate xml against schema
nested element in xsd ??