Solved

Remove xmlns from html output

Posted on 2006-07-23
2
539 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 150 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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

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…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

718 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