Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11

Discussione: XLS e <iframe>

  1. #1

    XLS e <iframe>

    Domanda. Che voi sappiate il W3C è favorevole a un <iframe etc..></iframe> in un XSL che formatta un xml puro, o è stato bandito dalla scena internazionale? Sto costruendo una galleria da db xml in xhtml e xml formattato. Funziona tutto anche in FFox e IE, ma è una procedura ortodossa, o esiste un metodo per caricare JPG in un <div>??
    Voglio fare le cose per benino..
    *Beleg heru Eönwë gor fuin. Aurë entuluva!*
    LSW.XIV — Lexskywalker.it
    Way to valinor — LSW blog

  2. #2
    se il risultato che vuoi ottenere è un documento (X)HTML per le immagini c'è il tag img
    se è una lista di immagini usa i tags per le liste: ul, ul e li e dentro ci metti le immagini
    ovviamente puoi inserire tutto dentro ad un div che posizione dove vuoi coi CSS...
    How to Create a Photographic Gallery Using CSS

    ma tutto questo non centra nulla con XSLT o XML

  3. #3
    No, non era di questo che parlavo. Vorrei sapere se in un foglio di stile XSL su XML un tag <iframe> rappresenta un metodo poco ortodosso per il W3C, o in caso come usare un <div> a mò di iframe.
    *Beleg heru Eönwë gor fuin. Aurë entuluva!*
    LSW.XIV — Lexskywalker.it
    Way to valinor — LSW blog

  4. #4
    non penso ci sia niente di strano... guarda per esempio questa interfaccia XUL (una grammatica XML): usa iframe senza problemi
    nexus6.xul

  5. #5
    Bene bene era quello che volevo sapere! grazie
    *Beleg heru Eönwë gor fuin. Aurë entuluva!*
    LSW.XIV — Lexskywalker.it
    Way to valinor — LSW blog

  6. #6
    rileggendo la discussione mi è venuto un dubbio: ma iframe dove lo vuoi usare?
    1) nell'XML originario
    2) XSLT per dire che tutto il contenuto del tag iframe deve essere trasformato in div
    3) altro: cosa?

  7. #7
    La soluzione l'ho trovata mentre ripensavo ai frame, e a quanto pare funziona, ho cercato parecchio in giro, ma non sono riuscito a trovare risposte.
    Questo è l'xsl che formatterà il mio xml.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xslutput method="html" />
    <xsl:template match="/">
    <html>
    <head>
    <title>*Lexskywalker.labs</title>
    <style type="text/css">

    a {
    text-decoration : none;
    font-family: Georgia;
    font-size: 11px;
    background-color: #CDCAB0;
    color: #333333;
    display: block;
    border: none;

    }

    a:hover {
    font-family: Georgia;
    font-size: 11px;
    color: #CDCAB0;
    background-color: #333333;
    display: block;
    border: none;

    }

    a:active {
    background-color: #4D807A;
    color: #D5D4B9;
    }

    .main {
    font-size: 11px;
    color: #333333;
    text-decoration: none;
    font-family: Georgia;

    }
    .sfondo {
    background-image: url(txt_ver/fon_t.jpg);
    background-repeat: no-repeat;


    }
    .sfondo2 {
    background-image: url(images/fon_d.jpg);
    background-repeat: no-repeat;
    background-position: center;
    }
    </style></head>
    <body bgcolor="#BFBC9C" background="NE05-2.gif" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" scroll="auto"><center>
    <table width="660" border="0" cellpadding="0" cellspacing="0" class="sfondo">
    <tr>
    <td align="center" valign="top" height="170">
    [img]images/header.jpg[/img]<div style="margin-top:3px; margin-bottom:3px;text-indent:30px;width:598px;text-align:left;"><span style="font-weight: bold;">../ go back to main page</span></div>

    <div class="sfondo2"><table width="385" height="293" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="middle" bgcolor="#FFFFFF">
    <iframe src="images/dmage/landscape/ls_03.jpg" scrolling="no" marginheight="0" marginwidth="0" vspace="0" hspace="0" align="middle" frameborder="0" name="img-c" width="370" height="278"></iframe></td>
    </tr>
    </table></div>
    </td>
    </tr>
    <tr>
    <td align="center" valign="top">

    <xsl:for-each select="galleriafoto/img">
    <div style="margin-top:3px; margin-bottom:3px;text-indent:20px;width:598px; text-align:left;">
    <a href="{@where}" target="img-c">[<xsl:value-of select="@no" />] dmage/rusty/<xsl:value-of select="@nome" /><xsl:value-of select="@location" /> |
    <span style="font-style: italic;"><xsl:value-of select="@when" /></span>
    </a>
    </div>
    </xsl:for-each>
    </td>
    </tr>
    </table>
    </center>
    </body>
    </html>

    </xsl:template>
    </xsl:stylesheet>


    Che ne pensi?
    *Beleg heru Eönwë gor fuin. Aurë entuluva!*
    LSW.XIV — Lexskywalker.it
    Way to valinor — LSW blog

  8. #8
    non mischierei HTML e CSS... XSLT serve a trasformare XML in XML, HTML e testo piano...manca la DTD e ti sconsiglio di usare le tabelle per dati non tabellari
    se vuoi usare il tag iframe nel XML va bene però poi devi trasformarlo in div
    perchè non usi un bel CSS esterno?

  9. #9
    A che mi serve la DTD? E' obbligatoria? Come faccio a trasformare iframe in div? Domandone da 1000 euri l'una..
    *Beleg heru Eönwë gor fuin. Aurë entuluva!*
    LSW.XIV — Lexskywalker.it
    Way to valinor — LSW blog

  10. #10
    mille 1000 euro?!? VVoVe:
    ti rispondo in PVT e ti mando la fattura

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.