데이터 소스가 특정 xmlns를 사용하는 경우 작동하지 않으려는 XSLT 변환에 문제가 있습니다.xmlns로 인한 XSL 변환 문제
내가 뭘 잘못하고 있니?
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>
데이터
<?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>
을 (변환 자체가 우리의 SAP MII의 enterpricy 시스템에 의해 이루어집니다) "는 XSLT 변환을하지 않습니다 데이터 소스가 특정 xmlns를 사용할 때 작동 "- 표시된 XSLT가 작동하지 않아야 함 s의 데이터 소스 (입력 문서). XPath 식's :/ProductionSchedule/ID'는 구문 오류를 제공해야합니다. 그렇지 않았 니? – LarsH
아니요, SAP에서 사용하는 Java 기반 파서저가 충돌했습니다. Java Enterprise에 대한 일반적인 특징 : p –