?
Solved

Remove xmlns from html output

Posted on 2006-07-23
2
Medium Priority
?
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 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