[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: saxon:output

  • From: =?UNKNOWN?Q?Jos=E9?= Manuel Beas <jmbeas@t...>
  • To: Jiri Jirat <jiratj@i...>
  • Date: Tue, 24 Oct 2000 16:53:49 +0200

saxon output
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
>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.