私がXSLで言及したスタイルはXMLには適用されません。私は、これはXSLコードXML - XSLが動作しない
<?xml version = "1.0"?>
<xsl:stylesheet version = "1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform"
xmlns = "http://www.w3.org/TR/xhtml1/strict">
<xsl:template match = "/">
<h2> Student information </h2>
<xsl:for-each select="student">
USN:<span style = "font-style: italic;color:red">
<xsl:value-of select = "USN" /><br /></span>
Name:<span style = "font-style: italic">
<xsl:value-of select = "name" /><br /></span>
college Name:<span style = "font-style: italic;color:green">
<xsl:value-of select = "college" /><br /></span>
Branch:<span style = "font-style: italic;color:blue">
<xsl:value-of select = "branch" /><br /></span>
Year of Joining:<span style = "font-style: italic;color:yellow">
<xsl:value-of select = "YOJ" /><br /></span>
Email-id:<span style = "font-style: italic;color:blue">
<xsl:value-of select = "email" /><br /></span>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
であり、ここでXMLコード私が間違っているのは何
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="info.xsl"?>
<student>
<USN> 4PM10CS020 </USN>
<name> John Doe </name>
<college> PESITM, Shivamogga. </college>
<branch> CSE </branch>
<YOJ> 2010 </YOJ>
<email> [email protected] </email>
</student>
を出力取得していますか?
以下試してください。私はそれがあなたのために働くことを願っています – ScanQR