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

Classics Wiki
편집 요약 없음
편집 요약 없음
51번째 줄: 51번째 줄:
</xsl:for-each>
</xsl:for-each>
<br/>
<br/>
<div id="map" style="width:70%; height:400px;"></div>
<div id="map" style="width:100%; height:400px;"></div>
<script>
<script>
var lat = <xsl:value-of select="coordinates/latitude"/>;
var lat = <xsl:value-of select="coordinates/latitude"/>;

2026년 4월 5일 (일) 12:39 판

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template match="/">
       
        
            
            문화유산:장소지도
            
            
            
        
        
            
					
명칭 주소 건립 설명






</xsl:template>

</xsl:stylesheet>

오류 검사

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



<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:output method="text" encoding="UTF-8"/>
   <xsl:strip-space elements="*"/>

<xsl:template match="/">

 
    
      
      문화유산:장소지도
      
      
    
    
        
    
  

</xsl:template>

<xsl:template match="place_list">

       <xsl:apply-templates select="place"/>

</xsl:template>

<xsl:template match="place">

<xsl:value-of select="@id"/>

명칭: <xsl:value-of select="name/korean"/> (<xsl:value-of select="name/hanja"/>, <xsl:value-of select="name/english"/>)

주소: <xsl:value-of select="address"/> ( <xsl:value-of select="coordinates/latitude"/>, <xsl:value-of select="coordinates/longitude"/>, <xsl:value-of select="coordinates/altitude"/> )


</xsl:template>

</xsl:stylesheet>

오류 검사

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