How to know which version of XPATH and XSLT am I using…?
Say I have installed JDK 1.7 then which version of XPATH and XSLT do I have..?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In XSLT, call
system-property('xsl:version'). It will return 1.0 or 2.0 depending on whether you are using a 1.0 or 2.0 processor.In XPath, there’s no direct equivalent. But a quick test is to call
current-date()with no arguments. If this succeeds, you have a 2.0 processor, if it fails, you have a 1.0 processor.Unless you take steps to install a 2.0 processor such as Saxon on your class path or in the endorsed library, the XSLT processor that the JDK gives you will (today) be a 1.0 processor.