从answer to my previous question开始,我有这个输入XML:
<?xml version="1.0" encoding="UTF-8"?>
<Containers>
<Container>
<LocalDataContainer>
<file>InputFile3</file>
</LocalDataContainer>
</Container>
<Container>
<LocalDataContainer>
<file>InputFile2</file>
</LocalDataContainer>
</Container>
<Container>
<LocalDataContainer>
<file>InputFile3</file>
</LocalDataContainer>
</Container>
</Containers>
当给予这个XSLT时:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Container[LocalDataContainer/file != 'InputFile3']"/>
</xsl:stylesheet>
生成此输出XML:
<?xml version="1.0" encoding="UTF-8"?>
<Containers>
<Container>
<LocalDataContainer>
<file>InputFile3</file>
</LocalDataContainer>
</Container>
<Container>
<LocalDataContainer>
<file>InputFile3</file>
</LocalDataContainer>
</Container>
</Containers>
如何将XSLT技术上纳入BPEL流程?我正在使用Eclipse BPEL Designer
在哪里放XSLT文件?是否将XSLT保存为.xsl文件,然后将其导入项目文件夹?而Assign如何看起来像?我想将新列表分配给datacontainerreferencelist类型的变量(使用XSD定义,它具有给定输入XML的结构,根元素为Containers
)