문화유산:장소목록과지도.xsl: 두 판 사이의 차이

Classics Wiki
새 문서: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <html> <head> <title>문화유산:장소 목록과 지도</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" href="https://unpkg.com/leafle...
 
편집 요약 없음
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="html" encoding="UTF-8" indent="yes"/>
     <xsl:output method="html" encoding="UTF-8" indent="yes"/>
     <xsl:template match="/">
     <xsl:template match="/">
21번째 줄: 21번째 줄:
             </head>
             </head>
             <body>
             <body>
                <h2>문화유산 위치 지도</h2>
                <div id="map"></div>
                <script>
                    var map = L.map('map').setView([37.575, 126.982], 13);
                    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                        maxZoom: 19,
                        attribution: '&amp;copy; OpenStreetMap contributors'
                    }).addTo(map);
                    var bounds = [];
                    <xsl:for-each select="/place_list/place">
                        var lat = <xsl:value-of select="coordinates/latitude"/>;
                        var lng = <xsl:value-of select="coordinates/longitude"/>;
                        var popupText =
                            '&lt;b&gt;<xsl:value-of select="name/korean"/>&lt;/b&gt;&lt;br/&gt;' +
                            '<xsl:value-of select="name/hanja"/>&lt;br/&gt;' +
                            '<xsl:value-of select="name/english"/>&lt;br/&gt;&lt;br/&gt;' +
                            '<xsl:value-of select="address"/>';
                        L.marker([lat, lng]).addTo(map).bindPopup(popupText);
                        bounds.push([lat, lng]);
                    </xsl:for-each>
                    if (bounds.length &gt; 0) {
                        map.fitBounds(bounds, {padding: [30, 30]});
                    }
                </script>
                <h2>문화유산 목록</h2>
                 <table class="place-table">
                 <table class="place-table">
                     <tr>
                     <tr>
67번째 줄: 99번째 줄:
                     </xsl:for-each>
                     </xsl:for-each>
                 </table>
                 </table>
                <h2>궁궐 위치 지도</h2>
                <div id="map"></div>
                <script>
                    var map = L.map('map').setView([37.575, 126.982], 13);
                    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                        maxZoom: 19,
                        attribution: '&amp;copy; OpenStreetMap contributors'
                    }).addTo(map);
                    var bounds = [];
                    <xsl:for-each select="/place_list/place">
                        var lat = <xsl:value-of select="coordinates/latitude"/>;
                        var lng = <xsl:value-of select="coordinates/longitude"/>;
                        var popupText =
                            '&lt;b&gt;<xsl:value-of select="name/korean"/>&lt;/b&gt;&lt;br/&gt;' +
                            '<xsl:value-of select="name/hanja"/>&lt;br/&gt;' +
                            '<xsl:value-of select="name/english"/>&lt;br/&gt;&lt;br/&gt;' +
                            '<xsl:value-of select="address"/>';
                        L.marker([lat, lng]).addTo(map).bindPopup(popupText);
                        bounds.push([lat, lng]);
                    </xsl:for-each>
                    if (bounds.length &gt; 0) {
                        map.fitBounds(bounds, {padding: [30, 30]});
                    }
                </script>
             </body>
             </body>
         </html>
         </html>
     </xsl:template>
     </xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>


==오류 검사==
==오류 검사==

2026년 4월 6일 (월) 01:25 기준 최신판

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" encoding="UTF-8" indent="yes"/>
   <xsl:template match="/">
       
            
                문화유산:장소 목록과 지도
                
                
                
                
                
                
            
            
                

문화유산 위치 지도

문화유산 목록

명칭 주소 건립 설명




별칭:




좌표:
, , m



</xsl:template> </xsl:stylesheet>

오류 검사

🔍 XML 유효성 검사기: 문화유산:장소목록과지도.xsl