Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Looking for advice on empty tag usage

From: "Michael Kay" <mhk@---.--.-->
To: "'Wilde Rebecca L SSgt HQ SSG/STS'" <Rebecca.Wilde@------.--.--->, <xmlschema-dev@--.--->
Date: 7/26/2004 6:48:00 PM
I have in the past used an extra control attribute, such as
action="create|update|delete" to indicate what the recipient is expected to
do with the data. You could put this in a separate namespace to minimize the
impact on the schema describing the data itself.
 
Michael Kay


  _____  

From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...] On
Behalf Of Wilde Rebecca L SSgt HQ SSG/STS
Sent: 26 July 2004 17:06
To: xmlschema-dev@w...
Subject: Looking for advice on empty tag usage



Hello, 

I'm working on creating an XML schema to be used with XSLT and Web Services
that interfaces with a legacy system.  On this legacy system there are
fields that accept values like "*" to signify that the user wants to clear
whatever was stored in that field before.   I would like to create something
more user friendly and intuitive (while still allowing a user to send an
asterisk to mean clear as well) and so some ideas I have come up with are:

1) Use an empty tag such as <ClearNarrative/> and then putting a group
choice of <ClearNarrative/> and <Narrative/> within my sequenced type.

2) Use an attribute to signify that the field should be cleared on the
legacy system.  Only problem is I don't see a way to use the attribute with
just listing the attribute without a value (i.e. <Narrative clear> instead
of <Narrative clear="Y">.

I cannot just assume that if <Narrative/> is sent to my Web Service that the
user wants the field cleared as some programs that interface may decide to
send all tags whether information is being passed or not.

I was wondering if there might be a best practice around on how best to
solve my problem.  Or if anyone might have some wisdom to share on this type
of situation.

Thank you in advance, 
Rebecca Wilde 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent