<xsl:template match="*"> <xsl:apply-templates /> </xsl:template> |
ÅÛÇø´ÀÇ ³»¿ëÀ» °á°úÆ®¸®¿¡ »ðÀÔ child ³ëµå¿¡¼ ¹Ýº¹ (Áï, ÅÛÇø´ ¸ÅÄ¡ ±×´ë·Î ¹Ýº¹) |
<xsl:template match="text()"> <xsl:value-of select="."/> </xsl:template> |
ÃÖÁ¾ ÅؽºÆ® º¹»ç |
¿øº» ¹®¼ (³í¹®) | º¯È¯ °á°ú (HTML ÆÄÀÏ) |
<article> <title>XML Style Sheet</title> <date>Oct 2001</date> <abstract>¿ä¾à¹®</abstract> <keywords>XML, XSL </keywords> <section> <p>send comments to <url protocol="mailto"> sblim@sookmyung.ac.kr</url>.</p> </section> <section> <title>Styling</title> <p>Style Sheets ... XSL, see <url>http://www.w3.org/Style</url>...</p> </section> <section> <title>How XSL works</title> <p>An XSL style sheet is ... XSL, paragraph and keywords.</p> <p>With XSL, ... and a standard one.</p> </section> </article> |
XML Style Sheetsend comments to sblim@sookmyung.ac.kr. Styling Style Sheets ... XSL, see http://www.w3.org/Style... How XSL works An XSL style sheet is ... XSL, paragraph and keywords. With XSL, ... and a standard one. |
¿¹Á¦
<xsl:template match="/"> <ÁÖ¼Ò·Ï> <xsl:apply-templates/> </ÁÖ¼Ò·Ï> </xsl:template> <xsl:template match="entry"> <xsl:element name="¸í´Ü"> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="name"> <À̸§><xsl:value-of/></À̸§> </xsl:template> <xsl:template match="address"> <xsl:element name="ÁÖ¼Ò"> <xsl:value-of/></xsl:element> </xsl:template> |
<xsl:template match="/"><xsl:element name="ÁÖ¼Ò·Ï">... <xsl:template match="tel"> <xsl:element name="ÀüÈ"> <xsl:attribute name="´ëÇ¥¹øÈ£"> <xsl:value-of select="@preferred"/></xsl:attribute> <xsl:value-of/></xsl:element> </xsl:template> <xsl:template match="pic"> <xsl:element name="»çÁø"> <xsl:attribute name="src"> <xsl:value-of select="@img"/></xsl:attribute> </xsl:element> </xsl:template> <xsl:template match="entry"><xsl:element name="¸í´Ü">... <xsl:template match="name"><xsl:element name="À̸§">... |
<xsl:template match="/">... <xsl:template match="tel"> <xsl:element name="ÀüÈ"><xsl:value-of/> </xsl:element> </xsl:template> <xsl:template match="tel[@preferred='true']"> <xsl:element name="´ëÇ¥ÀüÈ"> <xsl:value-of/></xsl:element> </xsl:template> <xsl:template match="pic"> <xsl:element name="»çÁø"> <xsl:attribute name="src"><xsl:value-of select="@img"/></xsl:attribute> </xsl:element> </xsl:template> ... |
<xsl:template match="/">... <xsl:template match="tel"> <xsl:copy><xsl:value-of/></xsl:copy> </xsl:template> <xsl:template match="tel[@preferred='true']"> <xsl:comment> ...´ëÇ¥ÀüÈ... </xsl:comment> <xsl:copy><xsl:value-of/></xsl:copy> </xsl:template> <xsl:template match="pic"> <xsl:copy><xsl:attribute name="src"> <xsl:value-of select="@img"/></xsl:attribute> </xsl:copy> </xsl:template> <xsl:template match="entry">... <xsl:template match="name">... |
<xsl:template match="/"> <HTML><BODY> <table border="1"> <tr> <td>À̸§</td><td>ÀüÈ</td><td>»çÁø</td> </tr> <xsl:apply-templates/> </table> </BODY></HTML> </xsl:template> <xsl:template match="name"> <td><xsl:value-of/></td> </xsl:template> <xsl:template match="tel"> <td><xsl:value-of/></td> </xsl:template> <xsl:template match="pic"> <td><xsl:value-of select="@img"/></td> </xsl:template> <xsl:template match="entry"> <tr><xsl:apply-templates/></tr> </xsl:template> |
<xsl:template match="/"> <HTML><BODY> <table border="1"> <tr> <th colspan="2">¸í´Ü</th> </tr> <tr valign="top"><xsl:apply-templates/></tr> </table> </BODY></HTML> </xsl:template> <xsl:template match="name"> <xsl:value-of/><br/> </xsl:template> <xsl:template match="tel"> <xsl:value-of/><br/> </xsl:template> <xsl:template match="pic"> <img><xsl:attribute name="src"> <xsl:value-of select="@img"/></xsl:attribute> </img><br/> </xsl:template> <xsl:template match="entry"> <td><xsl:apply-templates/></td> </xsl:template> |
¿¹
<xsl:processing-instruction name="xml-stylesheet">
type="text/css" href="address.css"
</xsl:processing-instruction>