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

6804Re: [XSL-FO] Re: Help with fo

Expand Messages
  • Mike Trotman
    Sep 24, 2005
      Your example XML + XSL work OK with any XSLT processor.

      However FOP is an XSL-FO processor.
      XSLT is just used as a way to help you prepare XSL-FO documents for FOP
      processing.

      Unless you output an XSL-FO document from your XSL
      FOP will not be able to produce any output.
      The '-txt' option says - Output my XSL-FO document as text.

      HTH

      Mike

      javier_azaola wrote:

      >Thanks Mike!
      >
      >I am trying it but the result is the same, i'm using fop-0.20.5. to
      >execute the action. Can fop execute this xsl file ?
      >
      >Goodbye!
      >
      >--- In XSL-FO@yahoogroups.com, Mike Ferrando <mikeferrando@y...>
      >wrote:
      >
      >
      >>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@y...> 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
      >>
      >>
      >
      >
      >
      >
      >
      >
      >
      >Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >Message Scanned by ClamAV on datalucid.com
      >
      >
      >

      --
      Datalucid Limited



      Message Scanned by ClamAV on datalucid.com
    • Show all 8 messages in this topic