cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linden H van der (MI)" <H.vanderLin...@MI.unimaas.nl>
Subject RE: [CForms] conditional "required" attribute needed or a "better" solution
Date Fri, 15 Apr 2005 13:01:50 GMT
> What about a custom validator?

Sounds like a good idea, but I have no clue how to do this in a generic
way. The next XML fragment could have the value defined as a set of
elements, e.g.:

<name nullFlavor="NI"/>

vs.

<name>
  <given qualifier="first">John</given>
  <given qualifier="initial">L.</given>
  <family>Doe</family>
</name>

How to handle both (the telecomaddress with it's value as an attribute
and the name with it's value as a set of elements) without writing
custom classes for everything?

Bye, Helma

Mime
View raw message