This was the stylesheel that stripped names spaces, in the comment of my witangoxmlcleaner bean source.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" encoding="US-ASCII" indent="yes"/>
<xsl:template match="/|comment()|processing-instruction()">
    <xsl:copy>
      <xsl:apply-templates/>
    </xsl:copy>
</xsl:template>

<xsl:template match="*">
    <xsl:element name="{local-name()}">
      <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
</xsl:template>

<xsl:template match="@*">
    <xsl:attribute name="{local-name()}">
      <xsl:value-of select="."/>
    </xsl:attribute>
</xsl:template>
</xsl:stylesheet>


-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Mar 21, 2006, at 5:43 PM, Robert Garcia wrote:

I believe I posted some xslt transformations in the past that strip them, for witango.

And there is a witango xml cleaner java bean with source, that has a method, you can change to strip the namespaces.

-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Mar 21, 2006, at 4:37 PM, John McGowan wrote:

I'm working with an API that returns XML, and I want to use XSLT to do some transformation of what I get back.  However, the XML I'm getting back and streaming through the @XSLT tag is throwing namespace errors.  Witango is throwing this error.

Message: The prefix 'msdata' has not been mapped to any URI
However in the XML the prefix msdata *is* being mapped to a URI.  Here are the first few lines of the XML from the API.

<DataSet xmlns="http://tessiturasoftware.com/">
  <xs:schema id="GetPerformanceDetailResult" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
All I'm trying to do is a simple transform to remove namespace references so that the next step in the processing doesn't need to worry about them.

I'm trying to figure out if I'm doing something wrong, or if there is a problem with the XML i'm getting from the outside source.

/John

________________________________________________________________________


________________________________________________________________________


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to