OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: saxon:output

[ Lists Home | Date Index | Thread Index ]
  • From: =?UNKNOWN?Q?Jos=E9?= Manuel Beas <jmbeas@telenium.es>
  • To: Jiri Jirat <jiratj@idoox.com>
  • Date: Tue, 24 Oct 2000 16:53:49 +0200

Thanks Jirka for your fast response. But I am using saxon:document like
this:

---------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon" saxon:trace="no"
exclude-result-prefixes="saxon">
	<xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="file">
      <xsl:variable name="pathname" select="."/>
      <saxon:output file="{$pathname}" method="text">
        Hola, éste es el fichero: <xsl:value-of select="$pathname"/>
      </saxon:output>
    </xsl:template>
</xsl:stylesheet>
---------

feeding it with:

---------
<?xml version="1.0" encoding="ISO-8859-1"?>
<mother>
   <file>uno.txt</file>
   <file>dos.txt</file>
   <file>tres.txt</file>
</mother>
---------


and what I am getting after running saxon is:

-------
D:\>java com.icl.saxon.StyleSheet mother.xml saxon-output-1.xslt
<?xml version="1.0" encoding="ISO-8859-1"?>
   <saxon:output xmlns:saxon="http://icl.com/saxon" file="uno.txt"
method="text">
        Hola, éste es el fichero: uno.txt</saxon:output>
   <saxon:output xmlns:saxon="http://icl.com/saxon" file="dos.txt"
method="text">
        Hola, éste es el fichero: dos.txt</saxon:output>
   <saxon:output xmlns:saxon="http://icl.com/saxon" file="tres.txt"
method="text">
        Hola, éste es el fichero: tres.txt</saxon:output>
------

when I am expecting having three files named "uno.txt", "dos.txt" and
"tres.txt".

Any idea?
Thanks,
José Manuel Beas
--
Nosotros, los andaluces, hablamos el español
  "sin las dificultades propias del idioma".
              - Manuel Machado -


> -----Mensaje original-----
> De: jiratj [mailto:jiratj]En nombre de Jiri Jirat
> Enviado el: martes 24 de octubre de 2000 16:43
> Para: José Manuel Beas
> Asunto: Re: saxon:output
>
>
> Yes, I use this extension quite often. It is VERY useful:
>
> Examle of use:
>
> <saxon:output method="html" file="output_file.html" indent="no">
>  ...
>
> </saxon:output>
>
> You can download zip files containing tutorials built with
> this extension on our site (XPointer and XLink, see
> http://www.zvon.org/index.php?nav_id=3).
>
> Best regards
> Jirka
>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS