-1
i-Code * xsl:wie XHTML zu machen?
<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xhtml" indent="yes" />
<xsl:variable name="with" select="'File2.xml'" />
<xsl:template match="/">
<html>
<body>
<h1>WEB Service</h1><br/>
</body>
</html>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="data">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
<xsl:variable name="info" select="document($with)/Xml/data[ClassId=current()/ClassId]/." />
<xsl:for-each select="$info/*">
<xsl:if test="name()!='ClassId'">
<xsl:copy-of select="." />
</xsl:if>
</xsl:for-each>
</xsl:copy>
</xsl:template>
</xsl:transform>
im machen XHTML versuchen, wenn ich nur zeigen html nicht enthalten XML-Fragment laufen ..
jemand kann mir bitte helfen?
dank
Bitte geben Sie ein Beispiel für die XML-Eingabe und die erwartete Ausgabe der Umwandlung an. –
Wird Ihre Frage nicht beantwortet? –