Remove xmlns from html output

I know this has been asked a million times, but none of the ones i found on here worked for me...

This is the top of my stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:exslt="http://exslt.org/common"
      xmlns:php="http://php.net/xsl">
      
<xsl:output method="html" media-type="text/html"
      indent="yes"
      omit-xml-declaration="yes" />



This is the HTML output:
<h1 xmlns:php="http://php.net/xsl" xmlns:exslt="http://exslt.org/common">Row 1</h1>


How can i get it to remove xmlns:php="http://php.net/xsl" xmlns:exslt="http://exslt.org/common" from each node it writes?
qwertqAsked:
Who is Participating?
 
Weiping DuConnect With a Mentor Senior Web DeveloperCommented:
Add this attribute into your <xsl:stylesheet version=....>  element at 2nd line to see if it works or not:

exclude-result-prefixes="xsl php exslt"
0
 
qwertqAuthor Commented:
GAH! that was it.
i was seperating them with commas like i read online. i did not even try spaces. thganks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.