F
Flyzone
Hi all,
i have a little problem.... in the XML i have a tag named "title",
where there is the text that i want to use for the title of the card
name in the resul WML. The problem is that i cant write
<card id="guest" title="<xsl:apply-templates select="//title"/>">
cause the tag will be bad-formed.
How can i solve this?
Thanks in advance,
Flyzone
Here the XSLT:
<xsl:template match="/guest">
<wml>
<card id="guest" title="Please Login">
<p><xsl:apply-templates select="//error"/></p>
</card>
</wml>
</xsl:template>
<xsl:template match="//title">
<xsl:value-of select="//title"/>
</xsl:template>
Here the XML:
<guest>
<title>Please Login</title>
<error>You'r not logged, please log </error>
<link>here</link>
</guest>
i have a little problem.... in the XML i have a tag named "title",
where there is the text that i want to use for the title of the card
name in the resul WML. The problem is that i cant write
<card id="guest" title="<xsl:apply-templates select="//title"/>">
cause the tag will be bad-formed.
How can i solve this?
Thanks in advance,
Flyzone
Here the XSLT:
<xsl:template match="/guest">
<wml>
<card id="guest" title="Please Login">
<p><xsl:apply-templates select="//error"/></p>
</card>
</wml>
</xsl:template>
<xsl:template match="//title">
<xsl:value-of select="//title"/>
</xsl:template>
Here the XML:
<guest>
<title>Please Login</title>
<error>You'r not logged, please log </error>
<link>here</link>
</guest>