Loading ...
Sorry, an error occurred while loading the content.

6799Re: [XSL-FO] Help with fo

Expand Messages
  • Mike Ferrando
    Sep 22, 2005
      Javier,
      When you are in the root template, you are technically NOT in an
      element yet, you cannot simply just ask for "." [everything].

      This is why the txt file is empty.

      Try this for a xsl:value-of

      <xsl:template match="/">
      <xsl:value-of select="//K43PRINT"/>
      </xsl:template>


      Mike Ferrando
      Library Technician
      Library of Congress
      Washington, DC
      202-707-4454


      --- javier_azaola <javier_azaola@...> wrote:

      > Hi
      >
      > Xml:
      >
      > <K43PRINT>
      > <K43TABLE>
      > <K43TR><K43TD>DE LA TORRE</K43TD></K43TR>
      > <K43TR><K43TD>DE LA TORRE</K43TD></K43TR>
      > <K43TR><K43TD>DE LA TORRE</K43TD></K43TR>
      > <K43TR><K43TD>DE LA TORRE</K43TD></K43TR>
      > <K43TR><K43TD>DE LA TORRE</K43TD></K43TR>
      > </K43TABLE>
      > </K43PRINT>
      >
      > Xsl:
      > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      > version="1.0">
      > <xsl:output method="text"/>
      > <xsl:template match="/" >
      > Element:<xsl:value-of select="."/>
      > </xsl:template>
      > </xsl:stylesheet>
      >
      > Execute:
      >
      > fop -xml ejemplo.xml -xsl ejemplo.xsl -txt ejemplo.txt
      >
      >
      > Ejemplo.txt is an emtpy file, what is the problem?
      >
      > Thanks!!!
      > Eskerrikasko!!!
      >
      >
      >
      >
      >
      >
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      > --------------------~-->
      > Get fast access to your favorite Yahoo! Groups. Make Yahoo! your
      > home page
      > http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM
      >
      --------------------------------------------------------------------~->
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >




      __________________________________
      Yahoo! Mail - PC Magazine Editors' Choice 2005
      http://mail.yahoo.com
    • Show all 8 messages in this topic