Try having a look at the generated XML.
You don't say whether you are using C1 or 2 - I don't think XSP:ATTRIBUTE
works properly in C1.
Tim Bentley
> -----Original Message-----
> From: Kazi the P i R @ t {- [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 17 August 2001 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: using XSP : element ???
>
>
> Actually i am not using any comments in the real file... i
> only put it in
> when i posting the message for the readers' benefit.
>
> So the block actually looks like this:
>
> <product>
> <xsp:attribute name="id">
> <xsp:expr>temp_bullet</xsp:expr>
> </xsp:attribute>
> <name>
> <xsp:expr>temp_gun</xsp:expr>
> </name>
> </product>
>
>
> I have been unable to get rid of the errors still (scroll
> down below to take
> a look at that) ... so... HELP
>
> Kazi
>
>
> ----- Original Message -----
> From: "Greg Murphy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, August 16, 2001 7:26 PM
> Subject: Re: using XSP : element ???
>
>
> > This looks like a problem with the parsing not the tag, try
> sticking to
> XML
> > comments inside XML files e.g.
> >
> > <product>
> > <xsp:attribute name="id">
> > <xsp:expr>temp_bullet</xsp:expr>
> > <!-- temp_bullet is a java variable of course -->
> > </xsp:attribute>
> >
> >
> > >From: "Kazi the P i R @ t {-" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > >Subject: using XSP : element ???
> > >Date: Thu, 16 Aug 2001 16:30:11 +0800
> > >
> > >i am trying to use the <xsp:attribute> thing to put
> attributes into a
> > >statically marked element. but ever since i put those
> in... i am getting
> an
> > >error messge from the browser when i try to call the
> page... Has anyone
> > >ever
> > >used these xsp elements b4?? maybe you can give me some
> pointers on its
> > >use...
> > >
> > >My code:
> > > <product>
> > > <xsp:attribute name="id">
> > > <xsp:expr>temp_bullet</xsp:expr>
> > >/*temp_bullet is a java variable of course*/
> > > </xsp:attribute>
> > >
> > >
> > >My Error:
> > >
> > >org.xml.sax.SAXParseException: The content of elements
> must consist of
> > >well-formed character
> > > data or markup.
> > > at
> >
> >org.apache.cocoon.parser.AbstractParser.fatalError(AbstractPa
> rser.java:105)
> > > at
> >
> >org.apache.xerces.framework.XMLParser.reportError(XMLParser.j
> ava:1037)
> > > at
> >
> >org.apache.xerces.framework.XMLDocumentScanner.reportFatalXML
> Error(XMLDocum
> e
> > >ntScanner.java:625)
> > > at
> >
> >org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XM
> LDocumentScann
> e
> > >r.java:679)
> > > at
> >
> >org.apache.xerces.framework.XMLDocumentScanner$ContentDispatc
> her.dispatch(X
> M
> > >LDocumentScanner.java:1245)
> > > at
> >
> >org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLD
> ocumentScanner
> .
> > >java:380)
> > > at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
> > > at
> org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:85)
> > > at
> >
> >org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
> > > at
> >
> >org.apache.cocoon.producer.ProducerFromFile.getDocument(Produ
> cerFromFile.ja
> v
> > >a:78)
> > > at org.apache.cocoon.Engine.handle(Engine.java:359)
> > > at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> > > at
> >
> >org.apache.tomcat.core.ServletWrapper.doService(ServletWrappe
> r.java:404)
> > > at org.apache.tomcat.core.Handler.service(Handler.java:286)
> > > at
> >
> >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
> java:372)
> > > at
> >
> >org.apache.tomcat.core.ContextManager.internalService(Context
> Manager.java:7
> 9
> > >7)
> > > at
> >
> >org.apache.tomcat.core.ContextManager.service(ContextManager.
> java:743)
> > > at
> >
> >org.apache.tomcat.service.http.HttpConnectionHandler.processC
> onnection(Http
> C
> > >onnectionHandler.java:210)
> > > at
> >
> >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:416)
> > > at
> >
> >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:498)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >Please check that your question has not already been
> answered in the
> > >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > >For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> >
> >
> >
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>