Click to See Complete Forum and Search --> : RSS version 2.0 specification


ennidhi
05-31-2007, 01:37 AM
hi,
i have changed RSS specification of the XML file to 2.0 from 1.0. after changing i could not be able to diaplay the contents properly. can anyone suggest me here.
Satish.

Charles
05-31-2007, 04:11 AM
Please post the URL.

ennidhi
05-31-2007, 04:46 AM
this is the url from where i am getting the XML file. i am attaching the xsl file also.

http://cp.llesiant.com/Delivery/RSSUserView.asp?id=3317905F-3D91-4484-92D0-A4D283DFBFB3

error message on the console:
SAX Fatal error occured. Stopping processing
SaxParseException : line 1
: col 7
: public id null
: system idnull
: message The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.xsltc.trax.TrAXFilter.parse(Unknown Source)
at com.wolterskluwer.eip.common.tools.parsers.xml.SaxParserHelper.parse(SaxParserHelper.java:671)
at com.wolterskluwer.eip.common.tools.parsers.xml.SaxParserHelper.parse(SaxParserHelper.java:703)
at com.wolterskluwer.eip.common.documentTransformation.impl.manager.XmlTransformationManager.applyTrans formation(XmlTransformationManager.java:356)
at com.wolterskluwer.eip.common.documentTransformation.resources.XmlTransform.transform(XmlTransform.ja va:462)
at com.wolterskluwer.eip.common.documentTransformation.impl.manager.TransformationManager.applyTransfor mations(TransformationManager.java:223)
at com.wolterskluwer.eip.common.documentTransformation.impl.DocumentTransformationFacadeBean.applyTrans formations(DocumentTransformationFacadeBean.java:357)
at com.wolterskluwer.eip.common.documentTransformation.impl.DocumentTransformationFacadeBean_3ev150_EOI mpl.applyTransformations(DocumentTransformationFacadeBean_3ev150_EOImpl.java:262)
at com.wolterskluwer.eip.common.documentTransformation.front.documentProvider.TransformationPipeline.ap plyPipelineTransformations(TransformationPipeline.java:316)
at com.wolterskluwer.eip.common.documentTransformation.front.documentProvider.DocumentProvider.initiali ze(DocumentProvider.java:274)
at com.wolterskluwer.eip.common.documentTransformation.front.jsptags.DocumentProviderTag.doEndTag(Docum entProviderTag.java:329)
at jsp_servlet.__newsfeed._jspService(__newsfeed.java:268)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)

Charles
05-31-2007, 05:20 AM
Let's start with the XML an XML declaration and stylesheel link in your feed's prolog. Something like:<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="newsfeed.xsl" type="text/xsl"?>And then correct this error: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fcp.llesiant.com%2FDelivery%2FRSSUserView.asp%3Fid%3D3317905F-3D91-4484-92D0-A4D283DFBFB3 .

Does that correct the problem?

ennidhi
05-31-2007, 05:47 AM
hi dude,
i have changed the prolog of the xml and followed the steps given in the url. now i am getting different exception. i am pasting the exception occured on the console. i have attached the modified xml also. thanks.


SAX Fatal error occured. Stopping processing
SaxParseException : line 8
: col 108
: public id null
: system idnull
: message The reference to entity "n" must end with the ';' delimiter.
org.xml.sax.SAXParseException: The reference to entity "n" must end with the ';' delimiter.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.xsltc.trax.TrAXFilter.parse(Unknown Source)
at com.wolterskluwer.eip.common.tools.parsers.xml.SaxParserHelper.parse(SaxParserHelper.java:671)
at com.wolterskluwer.eip.common.tools.parsers.xml.SaxParserHelper.parse(SaxParserHelper.java:703)
at com.wolterskluwer.eip.common.documentTransformation.impl.manager.XmlTransformationManager.applyTrans formation(XmlTransformationManager.java:356)
at com.wolterskluwer.eip.common.documentTransformation.resources.XmlTransform.transform(XmlTransform.ja va:462)
at com.wolterskluwer.eip.common.documentTransformation.impl.manager.TransformationManager.applyTransfor mations(TransformationManager.java:223)
at com.wolterskluwer.eip.common.documentTransformation.impl.DocumentTransformationFacadeBean.applyTrans formations(DocumentTransformationFacadeBean.java:357)
at com.wolterskluwer.eip.common.documentTransformation.impl.DocumentTransformationFacadeBean_3ev150_EOI mpl.applyTransformations(DocumentTransformationFacadeBean_3ev150_EOImpl.java:262)
at com.wolterskluwer.eip.common.documentTransformation.front.documentProvider.TransformationPipeline.ap plyPipelineTransformations(TransformationPipeline.java:316)
at com.wolterskluwer.eip.common.documentTransformation.front.documentProvider.DocumentProvider.initiali ze(DocumentProvider.java:274)
at com.wolterskluwer.eip.common.documentTransformation.front.jsptags.DocumentProviderTag.doEndTag(Docum entProviderTag.java:329)
at jsp_servlet.__newsfeed._jspService(__newsfeed.java:268)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.wolterskluwer.eip.wsportal.filters.HandleAutologin.doFilter(HandleAutologin.java:216)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154)
at jsp_servlet.__my_cchws._jspService(__my_cchws.java:252)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)

ennidhi
05-31-2007, 06:13 AM
i have solved the problem. i have replaced & with &amp;. now i am facing other problem. the pubdate is not getting displayed.

ennidhi
05-31-2007, 06:22 AM
i have solved that also. that is related to the server. xsl is stored into the application scope when server is started.