모두 3을 참조하는 데 어려움이 있습니다. XML, XSD 및 XSL을 이미 작성했지만 참조와 함께 작동하지 않습니다. 다음은 동일한 참조를 사용하는 간단한 예입니다.XML XSL XSD 유효성 검사 :
XSD :
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="email">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
XML :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="email.xsl"?>
<email
xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3schools.com email.xsd">
<to>John</to>
</email>
XSL :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="email">
<h2>To</h2>
<td><xsl:value-of select="John"/></td>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
그래서 무엇이 문제입니까? 나는 하나도 보지 못한다. 문제가 무엇입니까? 문제가되는 것으로 알려진 것은 없습니다. –