<para>
Hi pls visit my website at <url>http://www.abc.com</url>.
</para>
Could anyone help me form it into something that look like:
Quote: Hi pls visit my website at http://www.abc.comusing XSLT? Sorry for my bad english. Thank you :)
<para>
Hi pls visit my website at <url>http://www.abc.com</url>.
</para>
Could anyone help me form it into something that look like:
Quote: Hi pls visit my website at http://www.abc.comusing XSLT? Sorry for my bad english. Thank you :)
<xsl:template match="para"> <p> <xsl:apply-templates match="*" /> </p> </xsl:template> <xsl:template match="url"> <i> <xsl:apply-templates match="*" /> </i> </xsl:template> <xsl:template match="text()"> <xsl:value-of select="." /> </xsl:template>
Quote:Original post by Paulius Maruska
For the fragment of XML you posted, the fragment of XSL would look something like this:<xsl:template match="para"> <p> <xsl:apply-templates match="*" /> </p> </xsl:template> <xsl:template match="url"> <i> <xsl:apply-templates match="*" /> </i> </xsl:template> <xsl:template match="text()"> <xsl:value-of select="." /> </xsl:template>
Edit: err, the forum messes with the HTML tags! :)