.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- [XSLT] Problema con WML (http://www.dsy.it/forum/showthread.php?threadid=16751)


Posted by Flyzone on 23-01-2005 10:06:

Question [XSLT] Problema con WML

Buondì! Avrei un problema che mi frutta in testa da ieri....
Ho un file XML e un file XSLT da cui deve saltar fuori un file WML.
Ora, il problema è che non riesco a fare delle trasformazioni all'interno di un tag aperto. Guardate ad esempio il testo in grassetto nel codice XSLT... io lo vorrei sostituire con un <xsl:apply-templates select="//titolo"/> ma ovviamente se inserisco un apply-templates al posto della parte in grossetto mi dà un errore di tag malformato..... suggerimenti? :-P


File XSLT:

code:
<xsl:template match="/guest"> <wml> <card id="guest" title="Please Login"> <p><xsl:apply-templates select="//errore"/></p> </card> </wml> </xsl:template> <xsl:template match="//titolo"> <xsl:value-of select="//titolo"/> </xsl:template>


FILE XML:
code:
<guest> <titolo>Please Login</titolo> <errore>You'r not logged, please log </errore> <link>here</link> </guest>


Posted by Flyzone on 23-01-2005 12:58:

Mi rispondo da solo: bastava un semplice {titolo} :sbonk:
:asd:


All times are GMT. The time now is 05:46.
Show all 2 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.