Is possible to drop the xsl: to XSL tags in XSL Stylesheets?
For example, could:
<xsl:if test=''>
be typed as:
<if test=''>
Edit:
Stylesheet has HTML and XML nodes within it.
Thanks,
Ross
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.
Sure you can, but combining @ysdx and @Jon’s answers, beware that your XSLT processor needs to differentiate between XSLT elements and output elements. For example, the following stylesheet throws an error in Firefox:
Which means you need to qualify the names of output elements, like this:
This can be problematic. You should stick to the conventional
xslprefix, unless you can think of a good reason not to.