Foros del Web » Programación para mayores de 30 ;) » Programación General »

problemas con fop

Estas en el tema de problemas con fop en el foro de Programación General en Foros del Web. Hola, buenas y un saludo a todos. Les comento mis problemas: Estoy generando pdfs a traves de un xml con datos y un xsl (plantilla). ...
  #1 (permalink)  
Antiguo 28/05/2008, 07:24
 
Fecha de Ingreso: abril-2008
Mensajes: 1
Antigüedad: 16 años
Puntos: 0
problemas con fop

Hola, buenas y un saludo a todos.

Les comento mis problemas:

Estoy generando pdfs a traves de un xml con datos y un xsl (plantilla). Necesito poder introducir una tabla con checkbox. La tabla la genero bien, pero no he sido capaz de introducir un checkbox. -> 1º problema.

También necesito saber como introducir saltos de linea. He probdo con \n y no l o he conseguido. -> 2º problema

Además, al poner la fuente que deseo utilizar me da el siguiente error:
[ERROR] unknown font Verdana,normal,normal so defaulted font to any -> 3º problema

Voy a poner como he hecho una de las plantillas, por si os puede valer de algo:

<fo:table border-collapse="separate" font-size="12pt" border="1pt solid black" padding-top="15" font-family="Verdana">
<fo:table-column column-width="1cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="5cm"/>
<fo:table-column column-width="5cm"/>
<fo:table-column column-width="4cm"/>
<fo:table-column column-width="7cm"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">AT</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">TipoObj</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">UID TO</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">Instancia</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">UID Instancia</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">Subtipo</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block font-weight="bold">CN Perfiles</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="autorizacion">
<fo:table-row>
<xsl:apply-templates select="codigo"/>
<xsl:apply-templates select="tipoObjeto" mode="hijo"/>
<xsl:apply-templates select="codOperacion"/>
<xsl:apply-templates select="instancia"/>
<xsl:apply-templates select="uidInstancia"/>
<xsl:apply-templates select="subTipo"/>
<xsl:apply-templates select="cnPerfiles"/>
</fo:table-row>
</xsl:template>
<xsl:template match="codigo">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="tipoObjeto" mode="hijo">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="codOperacion">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="instancia">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="uidInstancia">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="subTipo">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template match="cnPerfiles">
<fo:table-cell padding="2pt" border="1pt solid black">
<fo:block background-color="#FFFFFF">
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</xsl:template>


Bueno, muchas gracias por anticipado. Soy novato y esto me trae un poco de cabeza.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:45.