Relationship Between XPath 1.0 and XPath 2.0
Why XPath 2.0
- It was time for an update
- More functions were demanded
- A more elaborate data model (based on XML Schema) was
mandated at W3C
- Leverage other (difficult!) work
- Take advantage of datatyping capabilities in processors
- More robust, optimizable, better performance
- Better validation and error management (leading to
better and more maintainable stylesheets)
- So XPath 2.0 is a superset of XPath 1.0
- And XPath 2.0 is a subset of XQuery 1.0
Bottom Line: the data model has changed and functionality has been
added