Visualizzazione dei risultati da 1 a 3 su 3

Discussione: cdata ad un attributo

  1. #1

    cdata ad un attributo

    è possibile?

    <?xml version="1.0" encoding="UTF-8" ?>
    - <guest>
    <guest_14 nome="asd" vData="3/9/2004 5:36:51 PM" commento="èèsdfsdfè" />
    <guest_13 nome="sdasd" vData="3/9/2004 5:36:36 PM" commento="asdasd" />
    <guest_12 nome="asdasd" vData="3/9/2004 5:30:24 PM" commento="ciao sono teo" />
    </guest>

    è possibile applicare il CDATA all'attributo commento?

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    20
    Ciao.

    Prova così...

    <guest_14 nome="asd" vData="3/9/2004 5:36:51 PM">
    <xsl:attribute name="commento">

    QUI PUOI FARE QUELLO CHE VUOI. QUELLO CHE INSERISCI QUI DIVENTA IL VALORE DELL'ATTRIBUTO "commento", CHE CON "xsl:attribute" VIENE AGGIUNTO AL NODO XML "guest" CHE HAI APERTO.
    QUINDI PUOI METTERE ANCHE CDATA (ANCHE SE NON HO CAPITO A COSA POSSA SERVIRTI :quipy: ).


    </xsl:attribute>
    </guest>


    Prova e fammi sapere, ok?

    Ciao!

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    20

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.