Reputation: 26338
I'm having a issue with a XSLT transformation that doesn't want to work when the data-source uses a specific xmlns.
What am I doing wrong here? (The transformation itself is done by our SAP MII enterpricy system)
XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:s="http://www.wbf.org/xml/b2mml-v02"
exclude-result-prefixes="s">
<xsl:output method="html"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
<xsl:template match="/">
<xsl:value-of select="s:/ProductionSchedule/ID" />
</xsl:template>
</xsl:stylesheet>
Data
<?xml version="1.0"?>
<ProductionSchedule
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.wbf.org/xml/b2mml-v02">
<ID>000003037668</ID>
<Location>
<EquipmentID>UK14</EquipmentID>
<EquipmentElementLevel>Site</EquipmentElementLevel>
</Location>
<PublishedDate>2010-09-28T11:08:04</PublishedDate>
...
</ProductionSchedule>
Upvotes: 2
Views: 1673