1 2 3 | <xsl:template match="ulink"> <a href="{@url}"><xsl:apply-templates/></a> </xsl:template> |
1 2 3 | <xsl:template match="emphasis[@type='bold']"> <b><xsl:apply-templates/></b> </xsl:template> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <xsl:template match="imagedata"> <img><xsl:apply-templates select="@*"/></img> </xsl:template> <xsl:template match="@width"> <xsl:attribute name="width"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template> <xsl:template match="@depth"> <xsl:attribute name="height"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template> <xsl:template match="@fileref"> <xsl:attribute name="href"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template> |
1 2 3 | <xsl:template match="videodata/@fileref"> <param name="src" value="{.}"/> </xsl:template> |
1 2 3 | <xsl:template match="para"> <p><xsl:apply-templates select="@* | node()"/></p> </xsl:template> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |