XSL Formatting Objects

XSL Formatting Objects

Un documento XSL-FO es un documento XML en el que se especifica cómo se van a formatear unos datos para presentarlos en pantalla, papel u otros medios. El significado de las siglas XSL-FO es eXtensible Stylesheet Language Formatting Objects. Hay que destacar que en el documento XSL-FO figuran tanto los datos como el formato que se les va a aplicar.

La unidad básica de trabajo en un documento XSL-FO es el "Formating Object", unidad básica para presentar (formatear) la información. Estos objetos de formato se refieren a páginas, párrafos, tablas, etc.

Éste es un breve ejemplo de documento XSL-FO:

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
        <fo:simple-page-master master-name="hola"
                           page-height="29.7cm"
                           page-width="21cm"
                           margin-top="5mm"
                           margin-bottom="10mm"
                           margin-left="20mm"
                           margin-right="20mm">
            <fo:region-body margin-top="10mm" margin-bottom="10mm" />
        </fo:simple-page-master>
    </fo:layout-master-set>
    
    <fo:page-sequence master-reference="hola">
        <fo:flow>
            <fo:block>Hola, mundo</fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>

Para obtener el documento XSL-FO pueden seguirse dos vías:

  • Generarlo directamente a partir de los datos. El documento XSL-FO contiene las especificaciones de formato y los propios datos.
  • Transformar un documento XML que contenga los datos a presentar con una hoja de estilos XSLT. De esta forma los datos (XML) se independizan del formato que proporcionará la hoja de transformación XSLT.

Cuando se tiene el documento XSL-FO, puede ser procesado por un programa llamado "procesador de XSL-FO" para obtener el documento final en distintos formatos. El formato final más utilizado es el PDF.

XSL-FO-workflow.png

Los procesadores XSL-FO libres más conocidos son FOP y PassiveTeX.

XSL-FO es una recomendación del World Wide Web Consortium. El nombre oficial de la recomendación es Extensible Stylesheet Language (XSL) y no XSL-FO.


Véase también:

Enlaces externos


Wikimedia foundation. 2010.

Игры ⚽ Поможем написать курсовую

Mira otros diccionarios:

  • XSL Formatting Objects — Infobox file format name = XSL Formatting Objects icon = logo = extension = .xml mime = application/xml, text/xml (deprecated) type code = uniform type = public.xml magic = owner = [http://www.w3.org/ World Wide Web Consortium] genre = Markup… …   Wikipedia

  • XSL Formatting Objects — XSL FO (Extensible Stylesheet Language – Formatting Objects) ist eine XML Anwendung, die beschreibt, wie Text, Bilder, Linien und andere grafische Elemente auf einer Seite angeordnet werden. Mit Hilfe von XSL FO ist es möglich, qualitativ… …   Deutsch Wikipedia

  • XSL Formatting Objects — XSL FO (англ. eXtensible Markup Language Formatting Objects объекты форматирования языка таблиц стилей для Консорциумом Всемирной паутины язык разметки типографских макетов и иных предпечатных материалов. XSL FO является частью XSLT и HTML и CSS …   Википедия

  • Formatting Objects Processor — Infobox Software name = Apache FOP caption = developer = Apache Software Foundation latest release version = 0.95 latest release date = release date|2008|08|05 latest preview version = latest preview date = operating system = Cross platform… …   Wikipedia

  • Formatting Objects Processor — Apache FOP Тип XSL FO Разработчик Apache Software Foundation …   Википедия

  • Extensible Stylesheet Language - Formatting Objects — XSL FO (Extensible Stylesheet Language – Formatting Objects) ist eine XML Anwendung, die beschreibt, wie Text, Bilder, Linien und andere grafische Elemente auf einer Seite angeordnet werden. Mit Hilfe von XSL FO ist es möglich, qualitativ… …   Deutsch Wikipedia

  • Extensible Stylesheet Language – Formatting Objects — XSL FO (Extensible Stylesheet Language – Formatting Objects) ist eine XML Anwendung, die beschreibt, wie Text, Bilder, Linien und andere grafische Elemente auf einer Seite angeordnet werden. Mit Hilfe von XSL FO ist es möglich, qualitativ… …   Deutsch Wikipedia

  • XSL — (Extensible Stylesheet Language) ist eine in XML notierte Familie von Transformationssprachen zur Definition von Layouts für XML Dokumente. Die XSL Subsprache XSLT wird außerdem zur Übersetzung/Transformation eines XML Formats in ein anderes XML… …   Deutsch Wikipedia

  • XSL — (eXtensible Stylesheet Language) семейство рекомендаций консорциума W3C, описывающее языки преобразования и визуализации XML документов. Состоит из трех частей: XSL Transformations (XSLT) язык преобразований XML документов. XSL Formatting Objects …   Википедия

  • Apache Formatting Objects Processor — Apache FOP Entwickler Apache Software Foundation Aktuelle Version 1.0 (21. Juli 2010) Programmier­sprache Java Kategorie XSL FO Lizenz …   Deutsch Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”