- Supports variability in XML
Schema(s)
- Fragments with
strongly typed values & un-typed text
- Demands flexible,
uniform semantics
- Permissive conversion of
PCDATA to typed values
<book
isbn="ISBN 10-111">
<price>45.50</price>
</book>
/book/price * 0.07
- Meaning:
- Project price
children; if there is more than one, raise error
- Extract atomic value;
if there is more than one, raise error
- Cast PCDATA to double,
otherwise raise error
- Multiply by 0.07