Hi there,
I have a couple of questions:
1.) Wat is the difference between <xsl:stylesheet xmlns:xsl=" and <xsl:stylesheet xmlns:xsl=" What do they do?
2.) I have the following files:
sheet.xsl
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="pagina">
<html><head><title>My Homepage</title></head>
<body topmargin="0" leftmargin="0">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td width="100%" bgcolor="#0000FF" height="1">
<img border="0" src="picture.gif" width="342" height="91"/>
</td></tr><tr><td valign="top" height="1"><br/>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr><td width="19%" valign="top" align="left">
<xsl:value-of select="nav"/>
</td><td width="81%" bgcolor="#EFEFEF" valign="top" align="left">
<b><i><font face="Arial Black">
<xsl:value-of select="titel"/>
</font></i></b>
<hr noshade="noshade" color="#000000" width="95%" size="1" align="center"/>
<p><font face="Arial" size="2">
<xsl:apply-templates/>
</font></p></td></tr></table></td></tr></table></body></html>
</xsl:template>
<xsl:template match="tekst">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="link">
<a href=" select="."/></a>
</xsl:template>
</xsl:stylesheet>
and
index.xml
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="sheet.xsl"?>
<pagina>
<nav>some tekst</nav>
<titel>Home</titel>
<tekst>
Some text here. <link>a link</link> text again.
</tekst>
</pagina>
I want to have a link inside the tekst-attribute, but i don't really know how to translate that in xsl. Mayby some explaining here?
I hope some one can answer my questions.
Mr. Dev.
I have a couple of questions:
1.) Wat is the difference between <xsl:stylesheet xmlns:xsl=" and <xsl:stylesheet xmlns:xsl=" What do they do?
2.) I have the following files:
sheet.xsl
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="pagina">
<html><head><title>My Homepage</title></head>
<body topmargin="0" leftmargin="0">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td width="100%" bgcolor="#0000FF" height="1">
<img border="0" src="picture.gif" width="342" height="91"/>
</td></tr><tr><td valign="top" height="1"><br/>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr><td width="19%" valign="top" align="left">
<xsl:value-of select="nav"/>
</td><td width="81%" bgcolor="#EFEFEF" valign="top" align="left">
<b><i><font face="Arial Black">
<xsl:value-of select="titel"/>
</font></i></b>
<hr noshade="noshade" color="#000000" width="95%" size="1" align="center"/>
<p><font face="Arial" size="2">
<xsl:apply-templates/>
</font></p></td></tr></table></td></tr></table></body></html>
</xsl:template>
<xsl:template match="tekst">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="link">
<a href=" select="."/></a>
</xsl:template>
</xsl:stylesheet>
and
index.xml
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="sheet.xsl"?>
<pagina>
<nav>some tekst</nav>
<titel>Home</titel>
<tekst>
Some text here. <link>a link</link> text again.
</tekst>
</pagina>
I want to have a link inside the tekst-attribute, but i don't really know how to translate that in xsl. Mayby some explaining here?
I hope some one can answer my questions.
Mr. Dev.