Skip to Content
Former Member
Nov 29, 2007 at 06:02 PM

XSLT Mapping and Namespace Issues


I have been reading through similar threads on this topic, but have not found the right combination for my problem. I am doing an XSLT map and it works fine in Stylus Studio. When I take it to PI, I get a "Prefix 'ns0' is not mapped to a namespace" error. I have a namespace that is within the XSD files I received from my partner ( I also have the namespace I made in PI for the source ( and a different namespace in PI for the destination (


<?xml version='1.0' encoding="UTF-8"?>" xmlns:ns0="" xmlns:ns1="">

<xsl:template match="/">





<xsl:value-of select="ns0:UPS_EBR_BILL/ns0:InvoiceDetails/ns0:Invoice/ns0:InvoiceDateCCYYMMDD"/>



<u><b>Source XML</b></u>

<?xml version="1.0" encoding="ISO-8859-1" ?>" xmlns="" xsi:schemaLocation=" Billing_XML_Schema.xsd">




When I change the XSLT namespace from to, the TransfromerException in PI goes away, but none of my referenced mappings work either (just my text hardcodes).

Can someone tell me why this works in Stylus Studio, but not in PI? Do I have too many namespaces?

Message was edited by:

Keith Wendel (to uncomment xsl:stylesheet line)