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: Miloslav Nic <nicmila@idoox.com>
  • To: José Manuel Beas <jmbeas@telenium.es>
  • Date: Wed, 29 Nov 2000 07:43:45 +0100


You must add :
extension-element-prefixes="saxon"

to  <xsl:stylesheet>



José Manuel Beas wrote:
> 
> 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
> >

-- 
******************************************
<firstName> Miloslav </firstName>    
<surname>   Nic      </surname>     

<mail>    nicmila@idoox.com    </mail>   
<support> http://www.zvon.org  </support>
<zvonMailingList> 
    http://www.zvon.org/index.php?nav_id=4 
</zvonMailingList>




 

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

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