DHTML - Traductor texto html

 
Vista:

Traductor texto html

Publicado por Victor Grinfelds (2 intervenciones) el 03/07/2008 21:10:45
Buenas tardes.

Solicito ayuda para desarrollar una especie de traductor de texto a html.

Me explico mejor y para que es.

Necesito crear un traductor o algo donde existan las casillas, sección, sub sección y texto, lo que se escriba en la casilla sección quede entre los encabezados <h1>texto escrito sección</h1>, <h2>texto escrito en sub sección</h2>, <h3>texto escrito en casilla texto</h3>.

seccion: aqui se escribe el texto
sub seccion: aqui se escribe el texto de sub seccion
texto: aqui se escribe texto.

esto para un usuario basico que simplemente escriba el texto y pueda automaticamente generar el archivo html en ese formato.

<html>
<body>

<h1>texto seccion</h1>

<h2>texto sub seccion</h2>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Traductor texto html

Publicado por Victor Grinfelds (2 intervenciones) el 03/07/2008 21:17:52
Buenas tardes.

Solicito ayuda para desarrollar una especie de traductor de texto a html.

Me explico mejor y para que es.

Necesito crear un traductor o algo donde existan las casillas, sección, sub sección y texto, lo que se escriba en la casilla sección quede entre los encabezados <h1>texto escrito sección</h1>, <h2>texto escrito en sub sección</h2>, <h3>texto escrito en casilla texto</h3>.

sección: aquí se escribe el texto
sub sección: aqui se escribe el texto de sub seccion
texto: aquí se escribe texto.
añadir otro grupo.
generar html

esto para un usuario básico que simplemente escriba el texto y pueda automáticamente generar el archivo html en ese formato.

<html>
<body>

<h1>texto seccion</h1>

<h2>texto sub seccion</h2>

<h3>texto</h3>

<h1>texto seccion1</h1>

<h2>texto sub seccion1</h2>

<h3>texto1</h3>

<h1>texto seccion3</h1>

<h2>texto sub seccion3</h2>

<h3>texto3</h3>

</body>
</html>

y se generen tantas secciones, sub secciones y texto como grupos genere el usuario.
y al final genere un index.html con ese formato.

Gracias por la ayuda que me puedan prestar.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por EDUARDO (1 intervención) el 09/11/2008 02:46:03
........(FBI)........ COMANDO ARMADO

SOMOS UNA ALIANZA EN EL QUE EL CRIMEN NO NOS IMPORTA PORQUE SOMOS FUERTES Y PODEROSOS SOLOS NO PODREMOS VENCER PERO JUNTOS PODREMOS ACABAR CON TODO "IKARIAM" SEREMOS LOS MEJORESDE DE ESTE MUNDO,SEREMOS DEVILES PERO MUY
PRONTO SEREMOS PODEROSOS Y MUY FUERTS PORQUE YO NO SOY DE LOS QUE SE HANDAN PELEANDO NO YO SOLO QUIERO PAZ Y TRANQUILIDAD SI SE NOS ENFRENTAN SENTIRAN NUESTRA FURIA ME HAN ESCUCHADO Y SINO LO OYERON
¡¡¡¡¡¡¡¡¡¡¡¡¡(FBI)¡¡¡¡¡¡¡¡¡¡¡¡¡¡ QUEDAN ARRESTADOS POR ROBO Y POCESION DE ARMAMENTO JAJAJAJAJAJAJA SOLO UNANSE Y A TODOS LOS ACEPTAREMOS YEAH¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

........(REGLAS)........
1-NO ATACAR A SUS COMPAÑEROS SI NOS AVISAN QUE LO HAN ATACADO O SI EL ME LO DISE
(PRONTO SERA EXPULSADO DESPUES DE UNA SERIE DE PREGUNTAS)
2-SER LEALES AL LÌDER Y A LOS COMPAÑEROS
3-NO PELEARSE CON OTRAS ALIANZAS Y MUCHO MENOS CON LAS ALIADAS
4-Y POR SUPUESTO "SER FIEL A LA ALIANZA"

........(COSAS QUE PUEDEN HACER AL ENTRAR A LA ALIANZA)........
1-ESCRIBIR MENSAJES A LA ALIANZA: con esto le mandas a todos los miembros de la alianza un mensaje importante que si necesitas ayuda o algo haci
2-VER ESTADO DE CONEXION: puedes ver si tu compañero esta conectado o no mediante un foco si esta en "AMARILLO" esta conectado si esta en "ROJO" no esta conectado si
3-LISTA DE CIUDADES: te permitira ver en que isla estan las ciudades de tus compañeros
4-TRATADOS DE ALIANZA. les permitira hacer "PAZ" con otras alianzas y jurarse no "ATACARSE"

........(MIEMBROS)........
LÌDER,GENERAL,DIPLOMÀTICO,MINISTRO DEL INTERIOR
tuder

POLÌCIA_DEL_(FBI)
sodom
jorgeSaBe
kaoO

........(TRATADOS DE PAZ)........
CARTELSNISIDRO-(CSI)
Svalbart-(Oso)
ZeuS-(Z_S)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por anai (1 intervención) el 24/11/2009 15:42:55
<html>
<head
<html><HEAD><TITLE></TITLE></HEAD>
<CENTER><h1><font color=red></font></h1></CENTER><hr>
<body><font size=4>
<html><HEAD><TITLE>el juego de la logica</TITLE></HEAD>
<CENTER><h1><font color=red>el juego de la logica</font></h1></CENTER><hr>
<body><font size=4>
<p align="center"><font color="red" size="4" face="comic sans MS"</font><b><u>
Antes de comenzar, lee las instrucciones que a continuación se presentan:</b></u></p>

<p>• Comienza por el principio sin caer en la curiosidad que induce a ir</p>

<p>• No comiences la interactividad de la pagina sin haber comprendido</p>

<p>• Si es posible, discute lo aprendido con algún amigo o familiar para poder comparar

<p>***Esta pagina pondrá a prueba tu nivel de razonamiento en el cual se te presentaran ejercicios que</p>
</p>tendrás que analizar hasta poder llegar a una respuesta que tu creas que sea satisfactoria y así mismo poder contestar. ***
</p>

</font>
<p align="center"><font color="green" size="5" face="century gothic"</font><i><u></p>
LAS COSAS Y SUS ATRIBUTOS</i></u></p>

<p align="center"><font color="black" size="6" face="arial"><b><u>1.-INTRODUCCION</b></u></P>
<P>Una cosa puede tener muchos atributos, y un atributo puede ser correlativo a muchas cosas.</p>
<p>Ejemplo:</p>
<p>COSA: una rosa
ATRIBUTOS: roja, perfumada, abierta, etcétera</b></p>

<p>Ejercicios:</p>
<html><HEAD><TITLE></TITLE></HEAD>
<CENTER><h1><font color=red></font></h1></CENTER><hr>
<body><font size=4>
Ejercicios:

*Automóvil
A) viejo, azul, alas B) nuevo, llantas, ayer C) rojo, puertas, motor

* Libros
A) hojas, letras, comida B) pasta, palabras, caricaturas C) hojas, texto, autor

* Mochila
A) cuadernos, lapices, zapatos B) libros, lapicera, cuadernos C) lapicera, colores, clavos.

*Persona
A) cabello, manos, piernas B)ropa, zapatos, agujetas C)ojos, dedos, niño

*Sándwich
A) jamon, pan, aguacate B) pan, jamon, mayonesa C) mayonesa, pan, bolillo

</font>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por Einarg Lopez Rodriguez (2 intervenciones) el 17/12/2009 23:50:07
<?xml version="1.0" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- localized strings
-->
<xsl:variable name="ColumnHeader_Date">Fecha</xsl:variable>
<xsl:variable name="ColumnHeader_Time">Hora</xsl:variable>
<xsl:variable name="ColumnHeader_From">De</xsl:variable>
<xsl:variable name="ColumnHeader_To">Para</xsl:variable>
<xsl:variable name="ColumnHeader_Message">Mensaje</xsl:variable>
- <!-- variables
-->
<xsl:variable name="Debug">0</xsl:variable>
<xsl:variable name="TableStyle">font-family:Segoe UI; font-size:75%; text-align:left; vertical-align:top; table-layout:fixed</xsl:variable>
<xsl:variable name="GutterStyle">width:2ex</xsl:variable>
<xsl:variable name="HeaderStyle">border-bottom:1 solid black</xsl:variable>
<xsl:variable name="UseZebraStripe">1</xsl:variable>
<xsl:variable name="ZebraStripeStyle">background-color:#e0edff</xsl:variable>
<xsl:variable name="MostRecentSessionFirst">0</xsl:variable>
- <xsl:template match="Log">
- <html dir="ltr">
- <head>
+ <title>
Message Log for
<xsl:value-of select="@LogonName" />
<xsl:if test="$Debug = 1">(Debug)</xsl:if>
</title>
- <xsl:if test="$Debug = 1">
<span style="font-family:trebuchet ms; font-size:120%">Debug Version</span>
<hr />
</xsl:if>
</head>
- <body style="margin:0">
- <table id="BodyTable" style="{$TableStyle}" cellspacing="0">
- <xsl:if test="$Debug = 1">
<col style="vertical-align:top; width:5ex;" />
<col style="{$GutterStyle}" />
</xsl:if>
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:70ex;" />
- <thead>
- <tr>
- <xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID</th>
<th />
</xsl:if>
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Message" />
</th>
</tr>
</thead>
- <tbody style="vertical-align:top">
- <xsl:choose>
- <!-- newest session first
-->
- <xsl:when test="$MostRecentSessionFirst = 1">
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="descending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:when>
- <!-- oldest session first
-->
- <xsl:otherwise>
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="ascending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="Message">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
- <td>
<xsl:apply-templates select="From/User" />
</td>
<td />
- <td>
<xsl:apply-templates select="To/User" />
</td>
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="Invitation|InvitationResponse|Join|Leave">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
<td />
- <!-- From
-->
<td />
<td />
- <!-- To
-->
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="User">
- <!-- add a comma before all but the first user
-->
<xsl:if test="position() != 1">,</xsl:if>
<xsl:value-of select="@FriendlyName" />
</xsl:template>
- <xsl:template name="CommonMessageProcessing">
- <!-- zebra-stripe the sessions
-->
- <xsl:if test="$UseZebraStripe = 1">
- <xsl:if test="(@SessionID mod 2) = 1">
- <xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle" />
</xsl:attribute>
</xsl:if>
</xsl:if>
- <xsl:if test="$Debug = 1">
- <td>
<xsl:value-of select="@SessionID" />
</td>
<td />
</xsl:if>
- <td>
<xsl:value-of select="@Date" />
</td>
<td />
- <td>
<xsl:value-of select="@Time" />
</td>
<td />
</xsl:template>
</xsl:stylesheet>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por luciana (1 intervención) el 23/04/2010 04:56:21
<?xml version="1.0" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- localized strings
-->
<xsl:variable name="ColumnHeader_Date">Fecha</xsl:variable>
<xsl:variable name="ColumnHeader_Time">Hora</xsl:variable>
<xsl:variable name="ColumnHeader_From">De</xsl:variable>
<xsl:variable name="ColumnHeader_To">Para</xsl:variable>
<xsl:variable name="ColumnHeader_Message">Mensaje</xsl:variable>
- <!-- variables
-->
<xsl:variable name="Debug">0</xsl:variable>
<xsl:variable name="TableStyle">font-family:Segoe UI; font-size:75%; text-align:left; vertical-align:top; table-layout:fixed</xsl:variable>
<xsl:variable name="GutterStyle">width:2ex</xsl:variable>
<xsl:variable name="HeaderStyle">border-bottom:1 solid black</xsl:variable>
<xsl:variable name="UseZebraStripe">1</xsl:variable>
<xsl:variable name="ZebraStripeStyle">background-color:#e0edff</xsl:variable>
<xsl:variable name="MostRecentSessionFirst">0</xsl:variable>
- <xsl:template match="Log">
- <html dir="ltr">
- <head>
- <title>
Message Log for
<xsl:value-of select="@LogonName" />
<xsl:if test="$Debug = 1">(Debug)</xsl:if>
</title>
- <xsl:if test="$Debug = 1">
<span style="font-family:trebuchet ms; font-size:120%">Debug Version</span>
<hr />
</xsl:if>
</head>
- <body style="margin:0">
- <table id="BodyTable" style="{$TableStyle}" cellspacing="0">
- <xsl:if test="$Debug = 1">
<col style="vertical-align:top; width:5ex;" />
<col style="{$GutterStyle}" />
</xsl:if>
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:70ex;" />
- <thead>
- <tr>
- <xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID</th>
<th />
</xsl:if>
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Message" />
</th>
</tr>
</thead>
- <tbody style="vertical-align:top">
- <xsl:choose>
- <!-- newest session first
-->
- <xsl:when test="$MostRecentSessionFirst = 1">
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="descending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:when>
- <!-- oldest session first
-->
- <xsl:otherwise>
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="ascending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="Message">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
- <td>
<xsl:apply-templates select="From/User" />
</td>
<td />
- <td>
<xsl:apply-templates select="To/User" />
</td>
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="Invitation|InvitationResponse|Join|Leave">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
<td />
- <!-- From
-->
<td />
<td />
- <!-- To
-->
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="User">
- <!-- add a comma before all but the first user
-->
<xsl:if test="position() != 1">,</xsl:if>
<xsl:value-of select="@FriendlyName" />
</xsl:template>
- <xsl:template name="CommonMessageProcessing">
- <!-- zebra-stripe the sessions
-->
- <xsl:if test="$UseZebraStripe = 1">
- <xsl:if test="(@SessionID mod 2) = 1">
- <xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle" />
</xsl:attribute>
</xsl:if>
</xsl:if>
- <xsl:if test="$Debug = 1">
- <td>
<xsl:value-of select="@SessionID" />
</td>
<td />
</xsl:if>
- <td>
<xsl:value-of select="@Date" />
</td>
<td />
- <td>
<xsl:value-of select="@Time" />
</td>
<td />
</xsl:template>
</xsl:stylesheet>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por Einarg Lopez Rodriguez (2 intervenciones) el 17/12/2009 23:50:54
<?xml version="1.0" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- localized strings
-->
<xsl:variable name="ColumnHeader_Date">Fecha</xsl:variable>
<xsl:variable name="ColumnHeader_Time">Hora</xsl:variable>
<xsl:variable name="ColumnHeader_From">De</xsl:variable>
<xsl:variable name="ColumnHeader_To">Para</xsl:variable>
<xsl:variable name="ColumnHeader_Message">Mensaje</xsl:variable>
- <!-- variables
-->
<xsl:variable name="Debug">0</xsl:variable>
<xsl:variable name="TableStyle">font-family:Segoe UI; font-size:75%; text-align:left; vertical-align:top; table-layout:fixed</xsl:variable>
<xsl:variable name="GutterStyle">width:2ex</xsl:variable>
<xsl:variable name="HeaderStyle">border-bottom:1 solid black</xsl:variable>
<xsl:variable name="UseZebraStripe">1</xsl:variable>
<xsl:variable name="ZebraStripeStyle">background-color:#e0edff</xsl:variable>
<xsl:variable name="MostRecentSessionFirst">0</xsl:variable>
- <xsl:template match="Log">
- <html dir="ltr">
- <head>
+ <title>
Message Log for
<xsl:value-of select="@LogonName" />
<xsl:if test="$Debug = 1">(Debug)</xsl:if>
</title>
- <xsl:if test="$Debug = 1">
<span style="font-family:trebuchet ms; font-size:120%">Debug Version</span>
<hr />
</xsl:if>
</head>
- <body style="margin:0">
- <table id="BodyTable" style="{$TableStyle}" cellspacing="0">
- <xsl:if test="$Debug = 1">
<col style="vertical-align:top; width:5ex;" />
<col style="{$GutterStyle}" />
</xsl:if>
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:70ex;" />
- <thead>
- <tr>
- <xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID</th>
<th />
</xsl:if>
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Message" />
</th>
</tr>
</thead>
- <tbody style="vertical-align:top">
- <xsl:choose>
- <!-- newest session first
-->
- <xsl:when test="$MostRecentSessionFirst = 1">
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="descending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:when>
- <!-- oldest session first
-->
- <xsl:otherwise>
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="ascending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="Message">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
- <td>
<xsl:apply-templates select="From/User" />
</td>
<td />
- <td>
<xsl:apply-templates select="To/User" />
</td>
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="Invitation|InvitationResponse|Join|Leave">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
<td />
- <!-- From
-->
<td />
<td />
- <!-- To
-->
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="User">
- <!-- add a comma before all but the first user
-->
<xsl:if test="position() != 1">,</xsl:if>
<xsl:value-of select="@FriendlyName" />
</xsl:template>
- <xsl:template name="CommonMessageProcessing">
- <!-- zebra-stripe the sessions
-->
- <xsl:if test="$UseZebraStripe = 1">
- <xsl:if test="(@SessionID mod 2) = 1">
- <xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle" />
</xsl:attribute>
</xsl:if>
</xsl:if>
- <xsl:if test="$Debug = 1">
- <td>
<xsl:value-of select="@SessionID" />
</td>
<td />
</xsl:if>
- <td>
<xsl:value-of select="@Date" />
</td>
<td />
- <td>
<xsl:value-of select="@Time" />
</td>
<td />
</xsl:template>
</xsl:stylesheet>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por Edgar (1 intervención) el 05/11/2008 03:56:33
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApp"
type="win32" />
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*" />
</dependentAssembly>
</dependency>

</assembly>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por carlos (1 intervención) el 28/11/2008 22:17:53
<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='MessageLog.xsl'?>
<Log FirstSessionID="1" LastSessionID="1"><Message Date="13/11/2008" Time="7:23:01" DateTime="2008-11-13T08:23:01.985Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">jajajajajajajajajajajaj</Text></Message><Message Date="13/11/2008" Time="7:23:08" DateTime="2008-11-13T08:23:08.294Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">estaras con trulala</Text></Message><Message Date="13/11/2008" Time="7:23:16" DateTime="2008-11-13T08:23:16.927Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">mandando mjs</Text></Message><Message Date="13/11/2008" Time="7:23:29" DateTime="2008-11-13T08:23:29.505Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">que ni nada de nada</Text></Message><Message Date="13/11/2008" Time="7:23:40" DateTime="2008-11-13T08:23:40.751Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">NADA NADA NADA </Text></Message><Message Date="13/11/2008" Time="7:23:56" DateTime="2008-11-13T08:23:56.313Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">que trula ni trula estoy en plena prueba</Text></Message><Message Date="13/11/2008" Time="7:23:59" DateTime="2008-11-13T08:23:59.518Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">jajajaja</Text></Message><Message Date="13/11/2008" Time="7:24:23" DateTime="2008-11-13T08:24:23.582Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">NO SI FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">ES LO QUE HAY</Text></Message><Message Date="13/11/2008" Time="7:25:09" DateTime="2008-11-13T08:25:09.629Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">YA SE TE PASARA </Text></Message><Message Date="13/11/2008" Time="7:25:13" DateTime="2008-11-13T08:25:13.915Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; "> ALGUN DIA</Text></Message><Message Date="13/11/2008" Time="7:25:27" DateTime="2008-11-13T08:25:27.544Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">algun dia que???????????????
</Text></Message><Message Date="13/11/2008" Time="7:25:45" DateTime="2008-11-13T08:25:45.200Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">PERO SIEMPRE YO ESTARE</Text></Message><Message Date="13/11/2008" Time="7:25:54" DateTime="2008-11-13T08:25:54.073Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">SE LE PASARA </Text></Message><Message Date="13/11/2008" Time="7:25:58" DateTime="2008-11-13T08:25:58.228Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; "> A UD</Text></Message><Message Date="13/11/2008" Time="7:26:43" DateTime="2008-11-13T08:26:43.303Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; "> veo que no crees en mis palabras........</Text></Message><Message Date="13/11/2008" Time="7:27:08" DateTime="2008-11-13T08:27:08.429Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">PALABRAS PALABRAS</Text></Message><Message Date="13/11/2008" Time="7:27:18" DateTime="2008-11-13T08:27:18.454Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">yo no puedo hacer nada para cambiar eso</Text></Message><Message Date="13/11/2008" Time="7:27:18" DateTime="2008-11-13T08:27:18.754Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">ACTITUDES</Text></Message><Message Date="13/11/2008" Time="7:27:32" DateTime="2008-11-13T08:27:32.604Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">CAMBIAR QUE</Text></Message><Message Date="13/11/2008" Time="7:27:46" DateTime="2008-11-13T08:27:46.925Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">CAMBIAR QUE DALE</Text></Message><Message Date="13/11/2008" Time="7:27:52" DateTime="2008-11-13T08:27:52.713Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">nadaaddada</Text></Message><Message Date="13/11/2008" Time="7:28:13" DateTime="2008-11-13T08:28:13.163Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">DALE O ME ENOJO</Text></Message><Message Date="13/11/2008" Time="7:28:48" DateTime="2008-11-13T08:28:48.804Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">YA SE HOY NADA NADA DE NADA P</Text></Message><Message Date="13/11/2008" Time="7:32:23" DateTime="2008-11-13T08:32:23.613Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">ESTOY SOLO SE FUE A COMPRAR EL TROLO</Text></Message><Message Date="13/11/2008" Time="7:32:28" DateTime="2008-11-13T08:32:28.930Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">:|</Text></Message><Message Date="13/11/2008" Time="7:32:56" DateTime="2008-11-13T08:32:56.710Z" SessionID="1"><From><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></From><To><User FriendlyName="Lorena Estefania"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">ESTEFANIA</Text></Message><Message Date="13/11/2008" Time="7:33:02" DateTime="2008-11-13T08:33:02.649Z" SessionID="1"><From><User FriendlyName="Lorena Estefania"/></From><To><User FriendlyName="loz zamuraiz... de lunez a viernez de 15 a 17 por 101.5 mhz"/></To><Text Style="font-family:MS Shell Dlg; color:#000000; ">quiero un bsito de buena noche</Text></Message><Message
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por monica (1 intervención) el 22/06/2009 08:40:26
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- localized strings -->
<xsl:variable name='ColumnHeader_Date'>Fecha</xsl:variable>
<xsl:variable name='ColumnHeader_Time'>Hora</xsl:variable>
<xsl:variable name='ColumnHeader_From'>De</xsl:variable>
<xsl:variable name='ColumnHeader_To'>Para</xsl:variable>
<xsl:variable name='ColumnHeader_Message'>Mensaje</xsl:variable>

<!-- variables -->
<xsl:variable name='Debug'>0</xsl:variable>

<xsl:variable name='TableStyle'>font-family:Segoe UI; font-size:75%; text-align:left; vertical-align:top; table-layout:fixed</xsl:variable>
<xsl:variable name='GutterStyle'>width:2ex</xsl:variable>
<xsl:variable name='HeaderStyle'>border-bottom:1 solid black</xsl:variable>

<xsl:variable name='UseZebraStripe'>1</xsl:variable>
<xsl:variable name='ZebraStripeStyle'>background-color:#e0edff</xsl:variable>

<xsl:variable name='MostRecentSessionFirst'>0</xsl:variable>

<xsl:template match="Log">

<html dir='ltr'>
<head>
<title>
Message Log for <xsl:value-of select="@LogonName"/>
<xsl:if test="$Debug = 1"> (Debug)</xsl:if>
</title>

<xsl:if test="$Debug = 1">
<span style="font-family:trebuchet ms; font-size:120%">
Debug Version
</span>
<hr/>
</xsl:if>
</head>

<body style='margin:0'>

<table id='BodyTable' style="{$TableStyle}" cellspacing='0'>

<xsl:if test="$Debug = 1">
<col style="vertical-align:top; width:5ex;"/>
<col style='{$GutterStyle}' />
</xsl:if>

<col style="width:16ex;"/>
<col style='{$GutterStyle}' />
<col style="width:16ex;"/>
<col style='{$GutterStyle}' />
<col style="width:21ex;"/>
<col style='{$GutterStyle}' />
<col style="width:21ex;"/>
<col style='{$GutterStyle}' />
<col style="width:70ex;"/>

<thead>
<tr>
<xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID</th>
<th/>
</xsl:if>
<th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date"/>
</th>
<th/>
<th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time"/>
</th>
<th/>
<th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From"/>
</th>
<th/>
<th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To"/>
</th>
<th/>
<th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Message"/>
</th>
</tr>
</thead>

<tbody style='vertical-align:top'>
<xsl:choose>

<!-- newest session first -->
<xsl:when test="$MostRecentSessionFirst = 1">
<xsl:apply-templates>
<xsl:sort select='@SessionID' order='descending' data-type='number'/>
<xsl:sort select='@DateTime' order='ascending'/>
</xsl:apply-templates>
</xsl:when>

<!-- oldest session first -->
<xsl:otherwise>
<xsl:apply-templates>
<xsl:sort select='@SessionID' order='ascending' data-type='number'/>
<xsl:sort select='@DateTime' order='ascending'/>
</xsl:apply-templates>
</xsl:otherwise>

</xsl:choose>
</tbody>
</table>
</body>
</html>

</xsl:template>

<xsl:template match="Message">
<tr>
<xsl:call-template name="CommonMessageProcessing" />

<td> <xsl:apply-templates select="From/User"/> </td>
<td/>
<td> <xsl:apply-templates select="To/User"/> </td>
<td/>
<td>
<span>
<xsl:attribute name="style">
<xsl:value-of select="Text/@Style"/>
</xsl:attribute>
<xsl:value-of select="Text"/>
</span>
</td>
</tr>
</xsl:template>

<xsl:template match="Invitation|InvitationResponse|Join|Leave">
<tr>
<xsl:call-template name="CommonMessageProcessing" />

<td/> <!-- From -->
<td/>
<td/> <!-- To -->
<td/>
<td>
<span>
<xsl:attribute name="style">
<xsl:value-of select="Text/@Style"/>
</xsl:attribute>
<xsl:value-of select="Text"/>
</span>
</td>
</tr>
</xsl:template>

<xsl:template match="User">
<!-- add a comma before all but the first user -->
<xsl:if test="position() != 1">, </xsl:if>

<xsl:value-of select="@FriendlyName"/>
</xsl:template>

<xsl:template name="CommonMessageProcessing">
<!-- zebra-stripe the sessions -->
<xsl:if test="$UseZebraStripe = 1">
<xsl:if test="(@SessionID mod 2) = 1">
<xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle"/>
</xsl:attribute>
</xsl:if>
</xsl:if>

<xsl:if test="$Debug = 1">
<td> <xsl:value-of select="@SessionID"/> </td>
<td/>
</xsl:if>

<td> <xsl:value-of select="@Date"/> </td>
<td/>
<td> <xsl:value-of select="@Time"/> </td>
<td/>
</xsl:template>

</xsl:stylesheet>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por ANGIE FRANCO VEGA (1 intervención) el 19/10/2009 15:28:21
Ruth invito a jan a la casa de ella a tomar una taza de café, Ruth le presento sus padres. MRS Clark quienes se encontraban en el sofá, la señora Mrs Clark le pregunta sobre el, mientras que el señor Mrs Clark le ofrece una taza de café, jan muy querido dice que si. mientras que el señor Mrs Clark le pregunta con azucar o sin azúcar ,jan dice con azúcar y sin leche ,no leche dice Mrs Clark pero todos los días tomamos leche en el café OH dice jan , en poland no tomamos leche en el café .
Mr and Mrs Clark ven a jan , empezaron a hablar muchas cosas pero Mr and Mrs no es que hablen muy bien el ingles mientras el Mrs habla poco pero se defiende hablando , unos minutos mas tarde jan le dice a ruth lo lamento pero no le guste mucho a tus padres ,dice Ruth mis padres son un problema . jan se despide de Ruth y de los padres ,al reto la madre de ruth le comenta sobre jan ,mientras que Ruth le dice a su madre y a su padre que son un problema ,mientras su madre criticaba a jan comento sobre Hill a la madre de ruth le gustaba Hill le parecía simpático y querido. La señora Mr Clark dice jan no es rico mientras ruth dice no es rico pero es un estudiante, bill tiene plata dice Mrs Clark, ruth dice antes me gustaba Hill pero aprendí a conocer a jan y me parece una buena persona, me gusta la forma de pensar de jan.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por ANGIE FRANCO VEGA (2 intervenciones) el 19/10/2009 15:29:59
Ruth invito a jan a la casa de ella a tomar una taza de café, Ruth le presento sus padres. MRS Clark quienes se encontraban en el sofá, la señora Mrs Clark le pregunta sobre el, mientras que el señor Mrs Clark le ofrece una taza de café, jan muy querido dice que si. mientras que el señor Mrs Clark le pregunta con azucar o sin azúcar ,jan dice con azúcar y sin leche ,no leche dice Mrs Clark pero todos los días tomamos leche en el café OH dice jan , en poland no tomamos leche en el café .
Mr and Mrs Clark ven a jan , empezaron a hablar muchas cosas pero Mr and Mrs no es que hablen muy bien el ingles mientras el Mrs habla poco pero se defiende hablando , unos minutos mas tarde jan le dice a ruth lo lamento pero no le guste mucho a tus padres ,dice Ruth mis padres son un problema . jan se despide de Ruth y de los padres ,al reto la madre de ruth le comenta sobre jan ,mientras que Ruth le dice a su madre y a su padre que son un problema ,mientras su madre criticaba a jan comento sobre Hill a la madre de ruth le gustaba Hill le parecía simpático y querido. La señora Mr Clark dice jan no es rico mientras ruth dice no es rico pero es un estudiante, bill tiene plata dice Mrs Clark, ruth dice antes me gustaba Hill pero aprendí a conocer a jan y me parece una buena persona, me gusta la forma de pensar de jan.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por ANGIE FRANCO VEGA (2 intervenciones) el 19/10/2009 15:33:07
Ruth invito a jan a la casa de ella a tomar una taza de café, Ruth le presento sus padres. MRS Clark quienes se encontraban en el sofá, la señora Mrs Clark le pregunta sobre el, mientras que el señor Mrs Clark le ofrece una taza de café, jan muy querido dice que si. mientras que el señor Mrs Clark le pregunta con azucar o sin azúcar ,jan dice con azúcar y sin leche ,no leche dice Mrs Clark pero todos los días tomamos leche en el café OH dice jan , en poland no tomamos leche en el café .
Mr and Mrs Clark ven a jan , empezaron a hablar muchas cosas pero Mr and Mrs no es que hablen muy bien el ingles mientras el Mrs habla poco pero se defiende hablando , unos minutos mas tarde jan le dice a ruth lo lamento pero no le guste mucho a tus padres ,dice Ruth mis padres son un problema . jan se despide de Ruth y de los padres ,al reto la madre de ruth le comenta sobre jan ,mientras que Ruth le dice a su madre y a su padre que son un problema ,mientras su madre criticaba a jan comento sobre Hill a la madre de ruth le gustaba Hill le parecía simpático y querido. La señora Mr Clark dice jan no es rico mientras ruth dice no es rico pero es un estudiante, bill tiene plata dice Mrs Clark, ruth dice antes me gustaba Hill pero aprendí a conocer a jan y me parece una buena persona, me gusta la forma de pensar de jan.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Traductor texto html

Publicado por laly (1 intervención) el 24/09/2010 00:55:09
xml version="1.0" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- localized strings
-->
<xsl:variable name="ColumnHeader_Date">Date</xsl:variable>
<xsl:variable name="ColumnHeader_Time">Time</xsl:variable>
<xsl:variable name="ColumnHeader_From">From</xsl:variable>
<xsl:variable name="ColumnHeader_To">To</xsl:variable>
<xsl:variable name="ColumnHeader_Message">Message</xsl:variable>
- <!-- variables
-->
<xsl:variable name="Debug">0</xsl:variable>
<xsl:variable name="TableStyle">font-family:Segoe UI; font-size:75%; text-align:left; vertical-align:top; table-layout:fixed</xsl:variable>
<xsl:variable name="GutterStyle">width:2ex</xsl:variable>
<xsl:variable name="HeaderStyle">border-bottom:1 solid black</xsl:variable>
<xsl:variable name="UseZebraStripe">1</xsl:variable>
<xsl:variable name="ZebraStripeStyle">background-color:#e0edff</xsl:variable>
<xsl:variable name="MostRecentSessionFirst">0</xsl:variable>
- <xsl:template match="Log">
- <html dir="ltr">
- <head>
- <title>
Message Log for
<xsl:value-of select="@LogonName" />
<xsl:if test="$Debug = 1">(Debug)</xsl:if>
</title>
- <xsl:if test="$Debug = 1">
<span style="font-family:trebuchet ms; font-size:120%">Debug Version</span>
<hr />
</xsl:if>
</head>
- <body style="margin:0">
- <table id="BodyTable" style="{$TableStyle}" cellspacing="0">
- <xsl:if test="$Debug = 1">
<col style="vertical-align:top; width:5ex;" />
<col style="{$GutterStyle}" />
</xsl:if>
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:70ex;" />
- <thead>
- <tr>
- <xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID</th>
<th />
</xsl:if>
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Message" />
</th>
</tr>
</thead>
- <tbody style="vertical-align:top">
- <xsl:choose>
- <!-- newest session first
-->
- <xsl:when test="$MostRecentSessionFirst = 1">
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="descending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:when>
- <!-- oldest session first
-->
- <xsl:otherwise>
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="ascending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="Message">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
- <td>
<xsl:apply-templates select="From/User" />
</td>
<td />
- <td>
<xsl:apply-templates select="To/User" />
</td>
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="Invitation|InvitationResponse|Join|Leave">
- <tr>
<xsl:call-template name="CommonMessageProcessing" />
<td />
- <!-- From
-->
<td />
<td />
- <!-- To
-->
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="User">
- <!-- add a comma before all but the first user
-->
<xsl:if test="position() != 1">,</xsl:if>
<xsl:value-of select="@FriendlyName" />
</xsl:template>
- <xsl:template name="CommonMessageProcessing">
- <!-- zebra-stripe the sessions
-->
- <xsl:if test="$UseZebraStripe = 1">
- <xsl:if test="(@SessionID mod 2) = 1">
- <xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle" />
</xsl:attribute>
</xsl:if>
</xsl:if>
- <xsl:if test="$Debug = 1">
- <td>
<xsl:value-of select="@SessionID" />
</td>
<td />
</xsl:if>
- <td>
<xsl:value-of select="@Date" />
</td>
<td />
- <td>
<xsl:value-of select="@Time" />
</td>
<td />
</xsl:template>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar