You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hans Wursten <c-...@gmx.de> on 2002/09/19 14:45:13 UTC

saving xml to file - server prob

I am using the stylesheet below to save generated xml to a file. It works
fine, locally on my computer.
But when I try to use the webapp on the (linux)server (ten-web), nothing is
saved!
What could be the problem?
Thanks for any help!


<xsl:stylesheet
  version="1.0"
  xmlns:xsp="http://apache.org/xsp"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:="http://www.w3.org/TR/xhtml1/transitional"
  xmlns:add="http://www.w3.org/TR/xhtml1/transitional"
  xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
  extension-element-prefixes="redirect">

<xsl:output method="xml" version="1.0" indent="yes" encoding="iso-8859-1"/>

<xsl:param name="framework" select="//requirements/@framework"/>

<xsl:template match="/">

<xsl:variable name="filename"
select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework, '.xml')"/>

	<megatop>

	    <redirect:write file="{$filename}">

		<xsl:apply-templates/>

	    </redirect:write>
	    
	</megatop>
	
</xsl:template> 


<xsl:template match="@*|*|text()|processing-instruction()">
	<xsl:copy>
	<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
	</xsl:copy>
</xsl:template> 
  
 
</xsl:stylesheet>

-- 
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: saving xml to file - server prob

Posted by Hans Wursten <c-...@gmx.de>.
Yeah, you were right. :)
The path was wrong.
The right is: "/usr/java/tomcat/webapps/reqDyn/requirement/"

Thank you!

greets


> "nothing is saved as well.", are you sure any file of name xyz.xml is
> created, in usr/home for example ? I don't know much with Linux but if
> this
> is supposed to write a file, it should...
> 
> Sorry.
> ----- Original Message -----
> From: "Hans Wursten" <c-...@gmx.de>
> To: <co...@xml.apache.org>
> Sent: Thursday, September 19, 2002 3:09 PM
> Subject: Re: saving xml to file - server prob
> 
> 
> > I have writing-rights.
> > Yes, I am using windows. But if I write "xyz.xml" as filename instead of
> the
> > "\\ten-web\..."
> > or use slashes, nothing is saved as well.
> >
> >
> > > maybe the way you wrote the path with antislashes.... Linux system
> uses
> > > slashes... Do you use Windows system on your local computer ?
> > >
> > > Maybe a write rights problem too.
> > >
> > > Babs
> > > ----- Original Message -----
> > > From: "Hans Wursten" <c-...@gmx.de>
> > > To: <co...@xml.apache.org>
> > > Sent: Thursday, September 19, 2002 2:45 PM
> > > Subject: saving xml to file - server prob
> > >
> > >
> > > > I am using the stylesheet below to save generated xml to a file. It
> > > works
> > > > fine, locally on my computer.
> > > > But when I try to use the webapp on the (linux)server (ten-web),
> nothing
> > > is
> > > > saved!
> > > > What could be the problem?
> > > > Thanks for any help!
> > > >
> > > >
> > > > <xsl:stylesheet
> > > >   version="1.0"
> > > >   xmlns:xsp="http://apache.org/xsp"
> > > >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > > >   xmlns:="http://www.w3.org/TR/xhtml1/transitional"
> > > >   xmlns:add="http://www.w3.org/TR/xhtml1/transitional"
> > > >   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
> > > >   extension-element-prefixes="redirect">
> > > >
> > > > <xsl:output method="xml" version="1.0" indent="yes"
> > > encoding="iso-8859-1"/>
> > > >
> > > > <xsl:param name="framework" select="//requirements/@framework"/>
> > > >
> > > > <xsl:template match="/">
> > > >
> > > > <xsl:variable name="filename"
> > > > select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
> > > '.xml')"/>
> > > >
> > > > <megatop>
> > > >
> > > >     <redirect:write file="{$filename}">
> > > >
> > > > <xsl:apply-templates/>
> > > >
> > > >     </redirect:write>
> > > >
> > > > </megatop>
> > > >
> > > > </xsl:template>
> > > >
> > > >
> > > > <xsl:template match="@*|*|text()|processing-instruction()">
> > > > <xsl:copy>
> > > > <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
> > > > </xsl:copy>
> > > > </xsl:template>
> > > >
> > > >
> > > > </xsl:stylesheet>
> > > >
> > > > --
> > > > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> > > > und tolle Preise absahnen! http://www.onlinestar.de
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > Please check that your question  has not already been answered in
> the
> > > > FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> > > >
> > > > To unsubscribe, e-mail:    
> <co...@xml.apache.org>
> > > > For additional commands, e-mail:  
> <co...@xml.apache.org>
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> > --
> > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> > und tolle Preise absahnen! http://www.onlinestar.de
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 

-- 
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: saving xml to file - server prob

Posted by Barbara Post <ba...@ifrance.com>.
"nothing is saved as well.", are you sure any file of name xyz.xml is
created, in usr/home for example ? I don't know much with Linux but if this
is supposed to write a file, it should...

Sorry.
----- Original Message -----
From: "Hans Wursten" <c-...@gmx.de>
To: <co...@xml.apache.org>
Sent: Thursday, September 19, 2002 3:09 PM
Subject: Re: saving xml to file - server prob


> I have writing-rights.
> Yes, I am using windows. But if I write "xyz.xml" as filename instead of
the
> "\\ten-web\..."
> or use slashes, nothing is saved as well.
>
>
> > maybe the way you wrote the path with antislashes.... Linux system uses
> > slashes... Do you use Windows system on your local computer ?
> >
> > Maybe a write rights problem too.
> >
> > Babs
> > ----- Original Message -----
> > From: "Hans Wursten" <c-...@gmx.de>
> > To: <co...@xml.apache.org>
> > Sent: Thursday, September 19, 2002 2:45 PM
> > Subject: saving xml to file - server prob
> >
> >
> > > I am using the stylesheet below to save generated xml to a file. It
> > works
> > > fine, locally on my computer.
> > > But when I try to use the webapp on the (linux)server (ten-web),
nothing
> > is
> > > saved!
> > > What could be the problem?
> > > Thanks for any help!
> > >
> > >
> > > <xsl:stylesheet
> > >   version="1.0"
> > >   xmlns:xsp="http://apache.org/xsp"
> > >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >   xmlns:="http://www.w3.org/TR/xhtml1/transitional"
> > >   xmlns:add="http://www.w3.org/TR/xhtml1/transitional"
> > >   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
> > >   extension-element-prefixes="redirect">
> > >
> > > <xsl:output method="xml" version="1.0" indent="yes"
> > encoding="iso-8859-1"/>
> > >
> > > <xsl:param name="framework" select="//requirements/@framework"/>
> > >
> > > <xsl:template match="/">
> > >
> > > <xsl:variable name="filename"
> > > select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
> > '.xml')"/>
> > >
> > > <megatop>
> > >
> > >     <redirect:write file="{$filename}">
> > >
> > > <xsl:apply-templates/>
> > >
> > >     </redirect:write>
> > >
> > > </megatop>
> > >
> > > </xsl:template>
> > >
> > >
> > > <xsl:template match="@*|*|text()|processing-instruction()">
> > > <xsl:copy>
> > > <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
> > > </xsl:copy>
> > > </xsl:template>
> > >
> > >
> > > </xsl:stylesheet>
> > >
> > > --
> > > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> > > und tolle Preise absahnen! http://www.onlinestar.de
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
>
> --
> Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> und tolle Preise absahnen! http://www.onlinestar.de
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: saving xml to file - server prob

Posted by Hans Wursten <c-...@gmx.de>.
I have writing-rights.
Yes, I am using windows. But if I write "xyz.xml" as filename instead of the
"\\ten-web\..."
or use slashes, nothing is saved as well.


> maybe the way you wrote the path with antislashes.... Linux system uses
> slashes... Do you use Windows system on your local computer ?
> 
> Maybe a write rights problem too.
> 
> Babs
> ----- Original Message -----
> From: "Hans Wursten" <c-...@gmx.de>
> To: <co...@xml.apache.org>
> Sent: Thursday, September 19, 2002 2:45 PM
> Subject: saving xml to file - server prob
> 
> 
> > I am using the stylesheet below to save generated xml to a file. It
> works
> > fine, locally on my computer.
> > But when I try to use the webapp on the (linux)server (ten-web), nothing
> is
> > saved!
> > What could be the problem?
> > Thanks for any help!
> >
> >
> > <xsl:stylesheet
> >   version="1.0"
> >   xmlns:xsp="http://apache.org/xsp"
> >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >   xmlns:="http://www.w3.org/TR/xhtml1/transitional"
> >   xmlns:add="http://www.w3.org/TR/xhtml1/transitional"
> >   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
> >   extension-element-prefixes="redirect">
> >
> > <xsl:output method="xml" version="1.0" indent="yes"
> encoding="iso-8859-1"/>
> >
> > <xsl:param name="framework" select="//requirements/@framework"/>
> >
> > <xsl:template match="/">
> >
> > <xsl:variable name="filename"
> > select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
> '.xml')"/>
> >
> > <megatop>
> >
> >     <redirect:write file="{$filename}">
> >
> > <xsl:apply-templates/>
> >
> >     </redirect:write>
> >
> > </megatop>
> >
> > </xsl:template>
> >
> >
> > <xsl:template match="@*|*|text()|processing-instruction()">
> > <xsl:copy>
> > <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
> > </xsl:copy>
> > </xsl:template>
> >
> >
> > </xsl:stylesheet>
> >
> > --
> > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> > und tolle Preise absahnen! http://www.onlinestar.de
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 

-- 
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: saving xml to file - server prob

Posted by Barbara Post <ba...@ifrance.com>.
maybe the way you wrote the path with antislashes.... Linux system uses
slashes... Do you use Windows system on your local computer ?

Maybe a write rights problem too.

Babs
----- Original Message -----
From: "Hans Wursten" <c-...@gmx.de>
To: <co...@xml.apache.org>
Sent: Thursday, September 19, 2002 2:45 PM
Subject: saving xml to file - server prob


> I am using the stylesheet below to save generated xml to a file. It works
> fine, locally on my computer.
> But when I try to use the webapp on the (linux)server (ten-web), nothing
is
> saved!
> What could be the problem?
> Thanks for any help!
>
>
> <xsl:stylesheet
>   version="1.0"
>   xmlns:xsp="http://apache.org/xsp"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:="http://www.w3.org/TR/xhtml1/transitional"
>   xmlns:add="http://www.w3.org/TR/xhtml1/transitional"
>   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
>   extension-element-prefixes="redirect">
>
> <xsl:output method="xml" version="1.0" indent="yes"
encoding="iso-8859-1"/>
>
> <xsl:param name="framework" select="//requirements/@framework"/>
>
> <xsl:template match="/">
>
> <xsl:variable name="filename"
> select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
'.xml')"/>
>
> <megatop>
>
>     <redirect:write file="{$filename}">
>
> <xsl:apply-templates/>
>
>     </redirect:write>
>
> </megatop>
>
> </xsl:template>
>
>
> <xsl:template match="@*|*|text()|processing-instruction()">
> <xsl:copy>
> <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
> </xsl:copy>
> </xsl:template>
>
>
> </xsl:stylesheet>
>
> --
> Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> und tolle Preise absahnen! http://www.onlinestar.de
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>