?
Solved

Remove xmlns from html output

Posted on 2006-07-23
2
Medium Priority
?
549 Views
Last Modified: 2009-12-16
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?
0
Comment
Question by:qwertq
2 Comments
 
LVL 9

Accepted Solution

by:
owenli27 earned 600 total points
ID: 17170717
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
 

Author Comment

by:qwertq
ID: 17170867
GAH! that was it.
i was seperating them with commas like i read online. i did not even try spaces. thganks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question