| 1 |
<?xml version="1.0" ?> |
| 2 |
<!DOCTYPE article PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" |
| 3 |
"dtd/kdedbx45.dtd" [ |
| 4 |
<!ENTITY % addindex "IGNORE"> |
| 5 |
<!ENTITY % Spanish "INCLUDE" |
| 6 |
> <!-- change language only here --> |
| 7 |
]> |
| 8 |
|
| 9 |
<article lang="&language;" id="data"> |
| 10 |
<title |
| 11 |
>&URL; de datos</title> |
| 12 |
|
| 13 |
<articleinfo> |
| 14 |
<authorgroup> |
| 15 |
<author |
| 16 |
><personname |
| 17 |
><firstname |
| 18 |
>Leo</firstname |
| 19 |
><surname |
| 20 |
>Savernik</surname |
| 21 |
></personname |
| 22 |
> <address |
| 23 |
><email |
| 24 |
>[email protected]</email |
| 25 |
></address |
| 26 |
> </author> |
| 27 |
<othercredit role="translator" |
| 28 |
> <firstname |
| 29 |
>Marcos</firstname |
| 30 |
> <surname |
| 31 |
>Fouces Lago</surname |
| 32 |
> <affiliation |
| 33 |
><address |
| 34 |
><email |
| 35 |
>[email protected]</email |
| 36 |
></address |
| 37 |
></affiliation |
| 38 |
> <contrib |
| 39 |
>Traductor</contrib |
| 40 |
> </othercredit |
| 41 |
> <othercredit role="translator" |
| 42 |
> <firstname |
| 43 |
>Javier</firstname |
| 44 |
> <surname |
| 45 |
>Viñal</surname |
| 46 |
> <affiliation |
| 47 |
><address |
| 48 |
><email |
| 49 |
>[email protected]</email |
| 50 |
> </address |
| 51 |
></affiliation |
| 52 |
> <contrib |
| 53 |
>Traductor</contrib |
| 54 |
> </othercredit |
| 55 |
> |
| 56 |
</authorgroup> |
| 57 |
|
| 58 |
<date |
| 59 |
>2003-02-06</date> |
| 60 |
<!--releaseinfo |
| 61 |
>2.20.00</releaseinfo--> |
| 62 |
|
| 63 |
</articleinfo> |
| 64 |
|
| 65 |
<para |
| 66 |
>Las URL de datos permiten incluir datos en la propia &URL;. Es útil para hacer sencillas pruebas con &HTML; para algún caso que no justifique la creación de un documento específico.</para> |
| 67 |
|
| 68 |
<para |
| 69 |
><userinput |
| 70 |
>data:,foobar</userinput |
| 71 |
> (observe la coma después de los dos puntos) enviará un documento de texto formado únicamente de la palabra <literal |
| 72 |
>foobar</literal |
| 73 |
>. </para> |
| 74 |
|
| 75 |
<para |
| 76 |
>Si lo que queremos es enviar un documento &HTML; (el ejemplo anterior era un simple documento de texto), será necesario especificar el tipo &MIME; <literal |
| 77 |
>text/html</literal |
| 78 |
>: «<userinput |
| 79 |
>data:text/html<title>prueba</title><p>Esto es una prueba</p></userinput |
| 80 |
>». Ocurrirá lo mismo que si se hubiese cargado el contenido desde un documento. </para> |
| 81 |
|
| 82 |
<para |
| 83 |
>También es posible especificar juegos de caracteres alternativos, pero recuerde que con los caracteres de 8 bits deben utilizar un símbolo de tanto por ciento y su código hexadecimal de dos dígitos: «<userinput |
| 84 |
>data:;charset=iso-8859-1,Gr%FC%DFe aus Schl%E4gl</userinput |
| 85 |
>», lo que dará como resultado «<literal |
| 86 |
>Grüße aus Schlägl</literal |
| 87 |
>», mientras que si no indica el juego de caracteres sería algo similar a «<literal |
| 88 |
>Gr??e aus Schl?gl</literal |
| 89 |
>». </para> |
| 90 |
|
| 91 |
<para |
| 92 |
><ulink url="https://www.ietf.org/rfc/rfc2397.txt" |
| 93 |
>IETF RFC2397</ulink |
| 94 |
> proporciona más información.</para> |
| 95 |
|
| 96 |
</article> |
| 97 |
|