Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Question about tag and value

From: Philippe Poulard <philippe.poulardNO@---------.-->
To: NULL
Date: 11/6/2007 12:07:00 PM

hi,

mittra@j... a écrit :
> 
> if (TAG2 value is 1) then
>    <TAG3>some_value</TAG3>
> else
>    <TAG4>some_value2</TAG4>
> 
> Perhaps, XML Schema does it?
> 

this is exactly the way the Active Schema Language works : you can 
define dynamically the content model that suits your needs, potentially 
with the help of if-then-else statements

although ASL is experimental, it is implemented and works fine : you can 
use it for your own needs if you don't have to share your own schemas 
with third-party users ; ASL will allow you to express much more complex 
constraints than legacy schema technologies can (DTD, W3C XML Schema, 
RelaxNG, Schematron)

the implementation :
http://reflex.gforge.inria.fr/
the specification :
http://ns.inria.fr/active-tags/active-schema/active-schema.html
some tutorials :
http://reflex.gforge.inria.fr/tutorial-schemas.html

if you are new to XML, you'll have to understand namespaces in XML and 
learn XPath before (which are widely used in XML technologies)

some courses :
http://disc.inria.fr/perso/philippe.poulard/cours/01c-xml-namespaces.pdf
http://disc.inria.fr/perso/philippe.poulard/cours/04-xml-xpath.pdf
...if you are new to french, you'll have to learn french before :)

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


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