xml - XSL transformation problem due to xmlns -
i'm having issue xslt transformation doesn't want work when data-source uses specific xmlns.
what doing wrong here? (the transformation done 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>
<xsl:value-of select="/s:productionschedule/s:id" />
Comments
Post a Comment