속성 값 'cd'로 노드 'productgroep'을 선택하려고합니다. 이것은 작동하지 않고 실제로 이유를 이해하지 못합니다. 답변을 검색했지만 찾지 못했습니다.조건부로 노드가 작동하지 않습니다.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Oefening_8.xsl"?>
<catalogus>
<!-- cd catalogus -->
<productgroep type="cd">
<item referentienummer="7051444" catalogusnummer="1800022" EAN="0025218000222">
...
</productgroep>
<productgroep type="film">
<item referentienummer="8051445" catalogusnummer="2800023" EAN="5051888073650">
....
</productgroep>
</catalogus
XSL : 스타일 시트는 현재 무효이며, 아마도 당신은 XML 및 XSL을 사용하는 방법에 따라, 어딘가에서 오류를주고, 그래서
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>Oefening_8.xsl</title>
<meta charset="utf-8"/>
<link href="Oefening_8.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1></h1>
<xsl:template match="productgroep[@type='cd']">
</xsl:template>
</body>
</html>
</xsl:template>
</xsl:stylesheet>