You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by An...@mPower.com on 2000/09/30 18:25:23 UTC
Re: XSP bug with new line characters?
that's the same problem I'm having, any way around that is/will there be a
fix?
Anthony Ettinger
Sr. Web Developer
415-875-8936
ettinger@mpower.com
http://www.401kafe.com
http://www.irajunction.com
sudhi <su...@insage.com>
08/30/00 09:24 AM
Please respond to cocoon-users
To: cocoon-users@xml.apache.org
cc:
Subject: Re: XSP bug with new line characters?
Hi,
I did. Cocoon don't like new lines, tabs between <xsp:attribute>
I have to give whole <xsp:attribute>...</xsp:attribute> in one line.
~S
Anthony.Ettinger@mPower.com wrote:
>
> That works as long as you don't go into "Grid View".
>
> Regardless, I think it's an error on Cocoon's part that it won't parse
> if the two lines are broken up into 6:
>
> <xsp:attribute name="que-num">
> <xsp:expr>question</xsp:expr>
> </xsp:attribute>
> <xsp:attribute name="sec-num">
> <xsp:expr>section</xsp:expr>
> </xsp:attribute>
>
> Anyone else run into this?
>
> Anthony Ettinger
> Sr. Web Developer
> 415-875-8936
> ettinger@mpower.com
> http://www.401kafe.com
> http://www.irajunction.com
>
> "Perry Molendijk"
> <pe...@inflexions.com> To:
> <co...@xml.apache.org>
> 08/29/00 06:29 PM cc:
> Please respond to Subject: Re: XSP bug
> cocoon-users with new line characters?
>
> To stop XMLSpy from indenting and breaking lines go to edit - settings
> select the file types tab and select the file extention on the left
> and select the Text View option under Default View. I have had a few
> problems myself with the linebreaks and indenting added by XMLSpy
> mainly with xhtml documents in IE5.
>
> Perry
> ----- Original Message -----
> From: Anthony.Ettinger@mPower.com
> To: cocoon-users@xml.apache.org
> Sent: Wednesday, August 30, 2000 7:56 AM
> Subject: XSP bug with new line characters?
>
> Hello,
>
> I'm using the following two lines in my xml document:
> <xsp:attribute
> name="que-num"><xsp:expr>question</xsp:expr></xsp:attribute>
> <xsp:attribute
> name="sec-num"><xsp:expr>section</xsp:expr></xsp:attribute>
>
> However, if these are broken up into more than two lines, cocoon will
> not parse the document, resulting in an empty document.
> for example:
>
> <xsp:attribute name="que-num">
> <xsp:expr>question</xsp:expr>
> </xsp:attribute>
> <xsp:attribute name="sec-num">
> <xsp:expr>section</xsp:expr>
> </xsp:attribute>
>
> The 6 lines above result in an empty error.
>
> Is this a bug, where cocoon needs these on two lines, and only two
> lines?
> If there is a work-around please help! Thanks.
>
> (by the way, I'm using XMLSpy v. 3.0.7, which is converting the two
> lines at the top to the six lines above whenever I open the document).
>
> Anthony Ettinger
> Sr. Web Developer
> 415-875-8936
> ettinger@mpower.com
> http://www.401kafe.com
> http://www.irajunction.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: creating files with FP taglib ...???
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 10:11 -0400 28/09/00, Sebastián Castro M. wrote:
>Hi ...
>
>How can you create an XML file from scratch using FP taglib ???
>
>salu2
>
>Seba.
You cannot do this yet.
It is something that I am thinking of adding.
But while it is easy enough to write DOM manipulation code for mucking
around with the ROOT up, I have not got my head around how to allow the
user to set up all of the parts of an XML Document outside of the ROOT.
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
creating files with FP taglib ...???
Posted by "Sebastián Castro M." <sc...@ci.cl>.
Hi ...
How can you create an XML file from scratch using FP taglib ???
salu2
Seba.
Re: XSP bug with new line characters?
Posted by Ricardo Rocha <ri...@apache.org>.
Anthony.Ettinger@mPower.com wrote:
>
> that's the same problem I'm having, any way around that is/will there
> be a fix?
This is not a bug: it's a feature. Whitespace is always preserved
in <xsp:attribute>.
We don't want the XSP processor to arbitrarily suppress potentially
valid whitespace inside your attribute values. Check <xsl:attribute>
behavior in XSLT.
If (when generating attribute values via <xsp:expr>) you want to indent
your XSP markup for readability, use the following form:
<xsp:attribute name="img"><xsp:expr>
baseDirectory + "/img/" + iconName + ".gif"
</xsp:expr></xsp:attribute>
Note here that whitespace is not significant inside <xsp:expr>
so you can indent as appropriate.
> Anthony Ettinger
> Sr. Web Developer
> 415-875-8936
> ettinger@mpower.com
> http://www.401kafe.com
> http://www.irajunction.com
>
> sudhi
> <su...@insage.com> To:
> cocoon-users@xml.apache.org
> 08/30/00 09:24 AM cc:
> Please respond to Subject: Re: XSP bug
> cocoon-users with new line characters?
>
> Hi,
> I did. Cocoon don't like new lines, tabs between <xsp:attribute>
>
> I have to give whole <xsp:attribute>...</xsp:attribute> in one line.
>
> ~S
>
> Anthony.Ettinger@mPower.com wrote:
> >
> > That works as long as you don't go into "Grid View".
> >
> > Regardless, I think it's an error on Cocoon's part that it won't
> parse
> > if the two lines are broken up into 6:
> >
> > <xsp:attribute name="que-num">
> > <xsp:expr>question</xsp:expr>
> > </xsp:attribute>
> > <xsp:attribute name="sec-num">
> > <xsp:expr>section</xsp:expr>
> > </xsp:attribute>
> >
> > Anyone else run into this?
> >
> > Anthony Ettinger
> > Sr. Web Developer
> > 415-875-8936
> > ettinger@mpower.com
> > http://www.401kafe.com
> > http://www.irajunction.com
> >
> > "Perry Molendijk"
> > <pe...@inflexions.com> To:
> > <co...@xml.apache.org>
> > 08/29/00 06:29 PM cc:
> > Please respond to Subject: Re: XSP bug
> > cocoon-users with new line characters?
> >
> > To stop XMLSpy from indenting and breaking lines go to edit -
> settings
> > select the file types tab and select the file extention on the left
> > and select the Text View option under Default View. I have had a few
> > problems myself with the linebreaks and indenting added by XMLSpy
> > mainly with xhtml documents in IE5.
> >
> > Perry
> > ----- Original Message -----
> > From: Anthony.Ettinger@mPower.com
> > To: cocoon-users@xml.apache.org
> > Sent: Wednesday, August 30, 2000 7:56 AM
> > Subject: XSP bug with new line characters?
> >
> > Hello,
> >
> > I'm using the following two lines in my xml document:
> > <xsp:attribute
> > name="que-num"><xsp:expr>question</xsp:expr></xsp:attribute>
> > <xsp:attribute
> > name="sec-num"><xsp:expr>section</xsp:expr></xsp:attribute>
> >
> > However, if these are broken up into more than two lines, cocoon
> will
> > not parse the document, resulting in an empty document.
> > for example:
> >
> > <xsp:attribute name="que-num">
> > <xsp:expr>question</xsp:expr>
> > </xsp:attribute>
> > <xsp:attribute name="sec-num">
> > <xsp:expr>section</xsp:expr>
> > </xsp:attribute>
> >
> > The 6 lines above result in an empty error.
> >
> > Is this a bug, where cocoon needs these on two lines, and only two
> > lines?
> > If there is a work-around please help! Thanks.
> >
> > (by the way, I'm using XMLSpy v. 3.0.7, which is converting the two
> > lines at the top to the six lines above whenever I open the
> document).
> >
> > Anthony Ettinger
> > Sr. Web Developer
> > 415-875-8936
> > ettinger@mpower.com
> > http://www.401kafe.com
> > http://www.irajunction.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org