XML이 제대로 표시되지 않는 문제가 있습니다. 기본적으로 링크가 가득 찬 XML 문서가 있고 XSL 스타일 시트에서 XML을 정렬 된 목록으로 출력하기를 원합니다. 지금까지 모든 것이 올바르게 작동하고 스타일이 정확하지만 링크에 대한 데이터가 표시되지 않습니다. 양식 된 배경을 볼 수 있습니다. XML을 XSL에 올바르게 연결하고 Dreamweaver에서 XML 코드의 오류를 확인했습니다. 여기서 내가 무엇을 놓치고 있는지 확실하지 않니?XML이 XSL 스타일 시트로 표시되지 않음
test.xml의
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="teststyle.xsl"?>
<country xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<au>
<open><li><a href="/contest/test/goto.php?id=0" target="_blank"></open>
<description>Win a Macbook!</description>
<close></a></li></close>
</au>
<au>
<open><li><a href="/contest/test/goto.php?id=1" target="_blank"></open>
<description>Win a trip to Las Vegas!</description>
<close></a></li></close>
</au>
</country>
teststyle.xsl
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="test.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Untitled Document</title>
</head>
<body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
<xsl:for-each select="country/au">
<div style="background-color:teal;color:white;padding:4px">
<ol>
<span style="font-weight:bold"><xsl:value-of select="country/au/open" /><xsl:value-of select="country/au/description"/><xsl:value-of select="country/au/close"/></span>
</ol>
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
와우 , 감사! 방금 XML/XSL 학습을 시작 했으므로 아직 밧줄을 배우고 있습니다. – RayMicro
+1 DOE 메커니즘을 저해하는 마지막 답변. –