|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: saxon:output
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@i... </mail> <support> http://www.zvon.org </support> <zvonMailingList> http://www.zvon.org/index.php?nav_id=4 </zvonMailingList>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||






