cancel
Showing results for 
Search instead for 
Did you mean: 

ParserException: XMLParser: Prefix 'xsl' is not mapped to a namespace

Former Member
0 Kudos

Hi

although I do not think this is an XI problem.. I hope that somebody with more XSLT experience that I might be able to help.

I have a rather simple XSLT that is used to convert an EXCEL XML document into another XML format. The XSL that I have worked when I tested it via standalone SAXON or MSXML transformation.

But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace.

Here is the top part of the XSL

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"

xmlns:sp="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:of="urn:schemas-microsoft-com:office:office">

<xsl:output method = "xml" version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" standalone="no" indent="yes" />

<xsl:template match="/">

<dvabatch>

<xsl:apply-templates select = "//of:DocumentProperties" />

</dvabatch>

</xsl:template>

....

.... and so on.....

and the top part of the XML source

<?xml version="1.0"?>

<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:o="urn:schemas-microsoft-com:office:office"

xmlns:x="urn:schemas-microsoft-com:office:excel"

xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"

xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:html="http://www.w3.org/TR/REC-html40">

<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">

<Author>Peter Munt</Author>

<LastAuthor>muntp</LastAuthor>

<LastPrinted>2006-01-30T23:53:27Z</LastPrinted>

<Created>2003-02-06T18:19:41Z</Created>

<LastSaved>2006-03-01T03:59:11Z</LastSaved>

<Company>DVA</Company>

<Version>10.2625</Version>

</DocumentProperties>

<CustomDocum ....

..... and so on .....

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

thanks for your replies. I have figured out what I did wrong it was the External Definition DTD and the MessageInterface. Not ideal but in the end I doctored the DTD just to get the XSLT to work. It is working now so at least I can move onto the next part of my task and will revisit this at a later stage.

Thanks

Former Member
0 Kudos

Hi,

<i>But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace</i>

where you get this error?? in interface mapping??

were you able to see the grid formation at right hand side of the target in interface mapping??

Regards,

Anirban.

Former Member
0 Kudos

Hi Peter,

just for clarification:

You zipped the XSL File and imported it into a Mapping Archive, then assigned the XSL Mapping to an interface mapping and receive the error in the Message Monitoring?

Is that the case?

regards,

Peter