XmlTransform() and an Unnecessary XML declaration

Is there a way to stop this code from producing an
unnecessary XML
declaration. When I run the following code it produces an XML
declaration after the body tag.
<body>
<?xml version="1.0" encoding="UTF-8"?>
Is there someway to control this, or do I just need to do
some string
parsing after the transformation?
<cfsavecontent variable="displayXSL">
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:template match="table/thead" />
<xsl:template match="table/tr">
<div>
<strong><xsl:value-of
select="td[1]"/></strong>
</div>
</xsl:template>
</xsl:stylesheet>
</cfsavecontent>
</cfsilent><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.1//EN"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>XSLT Fun</title>
</head>
<body>
<cfoutput>#xmlTransform(skillsXML,displayXSL)#</cfoutput>
</body>
</html>

Ian Skinner wrote:
> Is there a way to stop this code from producing an
unnecessary XML
> declaration.
Why yes, yes there is a way to stop this. Add the following
line to
your XSLT code Ian.
<xsl:output method="html" encoding="utf-8"/>

Similar Messages

  • Adding XML Declaration and Document Type Declaration.

    I'm using Oracle's XML Class Generator C++ version 1.0.2.0.0. I can create classes from a defined external DTD and create my XML document. But the document does not contain the XML Declaration <?xml version='1.0?> nor does it contain the Document Type Declaration <!DOCTYPE root-element-name SYSTEM "system-identifier">. What do I need to do to get these as part of my XML document? Does the class generator have methods to do this? Could someone show me an example?

    If you invoke the print method on the top-level ELEMENT, you get
    just the body of the document with no DTD or XMLDecl. if you invoke
    print on the top level NODE (the DOCUMENT node), then the output
    document will contain the XMLDecl and DTD.
    So please try to print from DOCUMENT node.

  • [svn:bz-trunk] 21002: Clean up build. xml and remove unnecessary delete task in the jar target.

    Revision: 21002
    Revision: 21002
    Author:   [email protected]
    Date:     2011-03-31 09:47:04 -0700 (Thu, 31 Mar 2011)
    Log Message:
    Clean up build.xml and remove unnecessary delete task in the jar target. 
    Checkin tests passed.
    Modified Paths:
        blazeds/trunk/modules/core/build.xml
        blazeds/trunk/modules/proxy/build.xml
        blazeds/trunk/modules/remoting/build.xml

    Well obviously it is an Ant build.
    It looks to just compile/build a web application into a war so you can deploy it where you want to.
    You don't need to edit it every time you are making a new page. It should work for any generic struts web application laid out in the fashion it expects.
    Cheers,
    evnafets

  • Different output XMLTRANSFORM and XMLTYPE.TRANSFORM

    Hi,
    we upgrade from 10gR2 to 11gR2 and still have problems with XML transformation. Under unknown circumstances the XMLTRANSFORM function
    fails with "LPX-00660: Not a well-formed document or external entity" when the count of Page elements is greater then one.
    It seems, this bug isnt fixed in 11gR2...
    SET SCAN OFF
    DECLARE
      xml     XMLTYPE := XMLTYPE('<?xml version="1.0" encoding="iso-8859-1"?>
    <FILE>
      <DOCUMENT>
        <PAGE>
          <b101f>Hello</b101f>
          <b101>World</b101>
          <f101/>
          <REGARDS/>
        </PAGE>
      </DOCUMENT>
      <DOCUMENT>
        <PAGE>
          <list_layout xpos="10" lsign="+"/>
          <le>May</le>
          <le>the</le>
          <le stil="f">force</le>
          <le>be</le>
          <le>with</le>
          <le>you</le>
          <f101/>
          <REGARDS/>
        </PAGE>
      </DOCUMENT>
    </FILE>
      xsl     XMLTYPE := XMLTYPE('<?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" omit-xml-declaration="yes"/>
      <xsl:template match="node()|@*">
        <xsl:copy>
          <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="FILE">
        <FILE>
          <xsl:apply-templates/>
        </FILE>
      </xsl:template>
      <xsl:template match="DOCUMENT">
        <DOCUMENT>
          <xsl:apply-templates/>
        </DOCUMENT>
      </xsl:template>
      <xsl:template match="PAGE">
        <PAGE>
          <CONTENT>
            <xsl:apply-templates/>
          </CONTENT>
        </PAGE>
      </xsl:template>
      <xsl:template match="REGARDS">
        <xsl:text disable-output-escaping="yes">&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</xsl:text>
      </xsl:template>
    </xsl:stylesheet>
      buf   VARCHAR2(32767 CHAR);
    BEGIN
      DBMS_OUTPUT.PUT_LINE(xml.transform(xsl).getClobVal());
      SELECT  xmltransform(xml, xsl).getStringVal()
      INTO    buf
      FROM    dual;
      DBMS_OUTPUT.PUT_LINE(buf);
    END;
    /Oracle Docu: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb08tra.htm
    XMLType instance can be transformed in the following ways:
    Using Oracle SQL function XMLtransform or XMLType method transform() in the database.
    Using Oracle XML Developer's Kit transformation options in the middle tier, such as XSLT Processor for Java.
    You can alternatively use XMLType method transform() as an alternative to Oracle SQL function XMLtransform. It has the same functionality.
    Output:
    <FILE>
    <DOCUMENT>
    <PAGE>
    <CONTENT>
    <b101f>Hello</b101f>
    <b101>World</b101>
    <f101/>&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</CONTENT>
    </PAGE>
    </DOCUMENT>
    <DOCUMENT>
    <PAGE>
    <CONTENT>
    <list_layout xpos="10" lsign="+"/>
    <le>May</le>
    <le>the</le>
    <le stil="f">force</le>
    <le>be</le>
    <le>with</le>
    <le>you</le>
    <f101/>&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</CONTENT>
    </PAGE>
    </DOCUMENT>
    </FILE>
    <FILE><DOCUMENT><PAGE><CONTENT><b101f>Hello</b101f><b101>World</b101><f101></f101><b101>Best regards</b101></CONTENT></PAGE></DOCUMENT><DOCUMENT><PAGE><CONTENT><list_layout xpos="10" lsign="+"></list_layout><le>May</le><le>the</le><le stil="f">force</le><le>be</le><le>with</le><le>you</le><f101></f101><b101>Best regards</b101></CONTENT></PAGE></DOCUMENT></FILE>

    Hi,
    we upgrade from 10gR2 to 11gR2 and still have problems with XML transformation. Under unknown circumstances the XMLTRANSFORM function
    fails with "LPX-00660: Not a well-formed document or external entity" when the count of Page elements is greater then one.
    It seems, this bug isnt fixed in 11gR2...
    SET SCAN OFF
    DECLARE
      xml     XMLTYPE := XMLTYPE('<?xml version="1.0" encoding="iso-8859-1"?>
    <FILE>
      <DOCUMENT>
        <PAGE>
          <b101f>Hello</b101f>
          <b101>World</b101>
          <f101/>
          <REGARDS/>
        </PAGE>
      </DOCUMENT>
      <DOCUMENT>
        <PAGE>
          <list_layout xpos="10" lsign="+"/>
          <le>May</le>
          <le>the</le>
          <le stil="f">force</le>
          <le>be</le>
          <le>with</le>
          <le>you</le>
          <f101/>
          <REGARDS/>
        </PAGE>
      </DOCUMENT>
    </FILE>
      xsl     XMLTYPE := XMLTYPE('<?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" omit-xml-declaration="yes"/>
      <xsl:template match="node()|@*">
        <xsl:copy>
          <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="FILE">
        <FILE>
          <xsl:apply-templates/>
        </FILE>
      </xsl:template>
      <xsl:template match="DOCUMENT">
        <DOCUMENT>
          <xsl:apply-templates/>
        </DOCUMENT>
      </xsl:template>
      <xsl:template match="PAGE">
        <PAGE>
          <CONTENT>
            <xsl:apply-templates/>
          </CONTENT>
        </PAGE>
      </xsl:template>
      <xsl:template match="REGARDS">
        <xsl:text disable-output-escaping="yes">&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</xsl:text>
      </xsl:template>
    </xsl:stylesheet>
      buf   VARCHAR2(32767 CHAR);
    BEGIN
      DBMS_OUTPUT.PUT_LINE(xml.transform(xsl).getClobVal());
      SELECT  xmltransform(xml, xsl).getStringVal()
      INTO    buf
      FROM    dual;
      DBMS_OUTPUT.PUT_LINE(buf);
    END;
    /Oracle Docu: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb08tra.htm
    XMLType instance can be transformed in the following ways:
    Using Oracle SQL function XMLtransform or XMLType method transform() in the database.
    Using Oracle XML Developer's Kit transformation options in the middle tier, such as XSLT Processor for Java.
    You can alternatively use XMLType method transform() as an alternative to Oracle SQL function XMLtransform. It has the same functionality.
    Output:
    <FILE>
    <DOCUMENT>
    <PAGE>
    <CONTENT>
    <b101f>Hello</b101f>
    <b101>World</b101>
    <f101/>&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</CONTENT>
    </PAGE>
    </DOCUMENT>
    <DOCUMENT>
    <PAGE>
    <CONTENT>
    <list_layout xpos="10" lsign="+"/>
    <le>May</le>
    <le>the</le>
    <le stil="f">force</le>
    <le>be</le>
    <le>with</le>
    <le>you</le>
    <f101/>&#38;lt;lt;b101&#38;lt;gt;Best regards&#38;lt;lt;/b101&#38;lt;gt;</CONTENT>
    </PAGE>
    </DOCUMENT>
    </FILE>
    <FILE><DOCUMENT><PAGE><CONTENT><b101f>Hello</b101f><b101>World</b101><f101></f101><b101>Best regards</b101></CONTENT></PAGE></DOCUMENT><DOCUMENT><PAGE><CONTENT><list_layout xpos="10" lsign="+"></list_layout><le>May</le><le>the</le><le stil="f">force</le><le>be</le><le>with</le><le>you</le><f101></f101><b101>Best regards</b101></CONTENT></PAGE></DOCUMENT></FILE>

  • Xslt does not output XML declaration

    Hi there!
    I have been trying for days to transform an XML doc into another one using an XSL stylesheet (that contains a <xsl:output method=xml/> tag...).
    different methods:
    -using xmltransform(xmltype(xmldoc), xmltype(xsldoc)) I get a xml fragment, without xml declaration...
    even if i later parse it and generate a Domdocument with both xmldom.setVersion() and xmldom.setcharset(), i still don't get my xml declaration in my output tree...
    -using dbms_xslprocessor, i get a <dummy/> document...probably a problem with the newStylesheet generation...by the way, could anyone explain to me what is the reference URl argument for nesStylesheet???
    thanks for your help, I am getting crazy!!!

    Hi there!
    I have been trying for days to transform an XML doc into another one using an XSL stylesheet (that contains a <xsl:output method=xml/> tag...).
    different methods:
    -using xmltransform(xmltype(xmldoc), xmltype(xsldoc)) I get a xml fragment, without xml declaration...
    even if i later parse it and generate a Domdocument with both xmldom.setVersion() and xmldom.setcharset(), i still don't get my xml declaration in my output tree...
    -using dbms_xslprocessor, i get a <dummy/> document...probably a problem with the newStylesheet generation...by the way, could anyone explain to me what is the reference URl argument for nesStylesheet???
    thanks for your help, I am getting crazy!!!

  • How to exclude the XML declaration from each row of the result set?

    Hi,
    I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
    SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
    After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
    Thanks!
    -- Daniela

    Hi,
    A couple of options I can think of :
    SELECT XMLSerialize(CONTENT
    XMLtransform(t1.xmltext,
      xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/> 
    <xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
    </xsl:stylesheet>')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;or simply,
    SELECT XMLSerialize(CONTENT
      extract(t1.xmltext,'/')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;

  • Oracle Service Bus 11g omit-xml-declaration="yes" not working in XSL-T

    I have the requirement of removing the XML header from xsl output.
    eg: <?xml version="1.0" encoding="UTF-8" ?> this part has to removed
    I tried using the following in XSLT:
    <xsl:output indent="yes" omit-xml-declaration="yes" />.
    It seems to work in all online xml compilers. It does not work in work in OSB.
    I posted the message in a JMS Queue and it contains the xml header.
    Is this a work around for this issue?

    I'm pretty sure XSLT has nothing to do with that PI.
    After all, XSLT in OSB doesn't format text, it generates an XmlObject. The formatting (including adding the <?xml?> PI) are done by other parts of the engine. Probably the XmlBeans serializator.
    The only option I see is to serialize the XML, then cut off everything until first ?>.
    Why would you need that, I wonder? May be there is a better way.
    Vlad @ genericparallel.com

  • How to specify XML declaration in an XML Variable

    I had posted this question in the Flex Builder discussion,
    but I am not sure if that was the right board, so posting it again
    here:
    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. How can I set the declaration?
    Any help or pointer is appreciated.

    I am not able to load the xml. Can anybody figure out the
    problem :
    I have used a LoadXML class :
    package {
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    // Demonstrates the code required to load external XML
    public class LoadXML extends Sprite {
    // The property that will eventually contain the loaded XML
    private var novel:XML;
    // The object used to load the XML
    private var urlLoader:URLLoader;
    // Constructor
    public function LoadXML () {
    // Specify the location of the external XML
    var urlRequest:URLRequest = new URLRequest("novel.xml");
    // Create an object that can load external text data
    urlLoader = new URLLoader();
    // Register to be notified when the XML finishes loading
    urlLoader.addEventListener(Event.COMPLETE,
    completeListener);
    // Load the XML
    urlLoader.load(urlRequest);
    // Method invoked automatically when the XML finishes
    loading
    private function completeListener(e:Event):void {
    // The string containing the loaded XML is stored in the
    URLLoader
    // object's data property (urlLoader.data). To create a new
    XML
    // instance from that loaded string, we pass it to the XML
    constructor
    novel = new XML(urlLoader.data);
    trace(novel.toXMLString()); // Display the loaded XML, now
    converted
    // to an XML object
    And in main.mxml :
    myXml = new LoadXml ;
    trace ( myXml.novel ) ;
    The output is errenous

  • How to specify the XML Declaration for an XML variable

    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. Can somebody help me with this?
    Thanks

    I work mostly with the Java versions of the parser so you'll have to make the translation to C++. As far as I know, you can't use the SAX API to access to the encoding.
    You need to use the DOM along with Oracle's extension to the basic DOM functionality. Oracle's package, oracle.xml.parser.v2 defines a class which implements the Document interface called XMLDocument. This class has a method, getEncoding(), which returns the encoding. You would use the method in getDocument() in the Parser base class inherited by DOMParser to retrive the XMLDocument.
    Jeff

  • When I mix JSTL 1.0 and 1.1 taglib declarations, it causes a ParseException

    When I mix JSTL 1.0 and JSTL 1.1 taglib declarations, it causes a ParseException on some of my servers, but not all of them.
    Here is the block of code that's giving me trouble:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
    <c:set var="TEXTVARIABLE">|STRINGOFTEXT|</c:set>
    <c:set var="OTHERTEXTVARIABLE">${fn:contains(TEXTVARIABLE, '|STRINGOFTEXT|')}</c:set>And here is the exception :
    *javax.servlet.jsp.JspException: com.caucho.jsp.JspLineParseException: /WEB-INF/jsp/online/system/modules/com.MYCOMPANY.marketing/templates/common/MY_JSP_PAGE.jsp:1: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:contains(TEXTVARIABLE, '|STRINGOFTEXT|')}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.*
    However, everything works fine if I change the URI for the core declaration to *http://java.sun.com/jsp/jstl/core*
    So here's the really weird part: for some reason, mixing 1.0 and 1.1 taglib declarations only causes an exception on two of my servers, my staging server and my production server. It causes no problems at all on my local machine or my development server. Why is this? What could possibly be causing this difference in behavior?
    The three servers are extremely similar in setup and configuration. The JSP page is being served up by OpenCMS 7, and I'm using the Caucho's Resin webserver. I understand that you don't know how my servers or CMS are set up, but really, what I'm looking for is ideas. Any ideas at all would help, this problem has been driving me absolutely batty. Even if you don't know what could be causing the problem, if you have any suggestions at all for how I could approach the problem, that would be extremely helpful. I just don't understand what could cause this difference in behavior between my servers.
    For reference, here's the first part of the stack trace (there's a character limit in this forum, so unfortunately I can't post the whole thing) :
    *javax.servlet.jsp.JspException: com.caucho.jsp.JspLineParseException: /WEB-INF/jsp/online/system/modules/com.MYCOMPANY.marketing/templates/common/MY_JSP_PAGE.jsp:1: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:contains(TEXTVARIABLE, '|STRINGOFTEXT|')}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported. at*
    *org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:369) at*
    *org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241) at*
    *org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472) at*
    *_jsp._WEB_22dINF._jsp._online._system._modules._com__MYCOMPANY__marketing._templates._MAIN_0PAGE__jsp._jspService(_MAIN_0PAGE__jsp.java:153) at*
    *com.caucho.jsp.JavaPage.service(JavaPage.java:60) at*
    *com.caucho.jsp.Page.pageservice(Page.java:579) at*
    *com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179) at*
    *shared.filter.RemoteAddrFilterBase.doFilter(RemoteAddrFilterBase.java:57) at*
    *com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at*
    *com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at*
    *com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:175) at*
    *com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at*
    *com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485) at*
    *com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350) at*
    *org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194) at*
    *org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169) at*
    *org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193) at*
    *org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423) at*
    *org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173) at*
    *org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1227) at*
    *org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1171) at*
    *org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:232) at*
    *org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:52) at*
    *org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964) at*
    *org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498) at*
    *org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152) at*
    *javax.servlet.http.HttpServlet.service(HttpServlet.java:115) at*
    *javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at*
    *com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at*
    *com.caucho.filters.CmsGzipFilter.doFilter(CmsGzipFilter.java:177) at*
    *com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at*
    *shared.filter.RemoteAddrFilterBase.doFilter(RemoteAddrFilterBase.java:57) at*
    *com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at*
    *com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at*
    *com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at*
    *com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277) at*
    *com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106) at*
    *com.caucho.server.dispatch.ForwardFilterChain.doFilter(ForwardFilterChain.java:80) at*
    *com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:207) at*
    *com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) at*
    *com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at*
    *com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) at*
    *com.caucho.server.port.TcpConnection.run(TcpConnection.java:514) at*
    *com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at*
    *com.caucho.util.ThreadPool.run(ThreadPool.java:442) at*
    *java.lang.Thread.run(Thread.java:595)*
    Thanks for your help!

    My simple and stupid solution: Don't mix the two :-)
    You are not meant to be able to use the JSTL1.1 functions with JSTL1.0.
    What version of JSTL have you got installed on your servers?
    I presume it is one of JSTL1.1 or JSTL1.2?
    What jar files are present? Are they all the same version on the different servers?
    What version of Resin are you using?
    Are there any entries in the web.xml file for JSTL (correct answer is: no. There shouldn't have to be)
    Do you have any JSTL tld files sitting around your web app (again the correct answer is: no)
    Deep in the source code of the JSTL 1.1 parser, is this snippet:
    String allowed = System.getProperty("javax.servlet.jsp.functions.allowed");
        if (allowed == null || !allowed.equalsIgnoreCase("true"))
          {if (true) throw new ParseException("EL functions are not supported.");}I'm not sure what would set this property, but it might give you a lead...
    My recommendation: Use JSTL1.1 rather than JSTL1.0, and don't try to mix the two.

  • Change XML declaration from single quote to double quote

    Hi all,
    i have the following problem in my File Receiver Adapter. My XML File has the declaration <?xml version='1.0' encoding='utf-8'?> (With single quotes ') and want to change it to <?xml version="1.0" encoding="utf-8" ?> (With double quotes ")
    I use the XMLAnonymizerBean but this does not change the XML declaration.
    Any ideas how to change the declaration
    Thanks Max

    Hi Suraj,
    on the Modul Tab i have the following:
    1 | AF_Modules/XMLAnonymizerBean | Local Enterprise Bean | Anonymizer
    2 | CallSapAdapter                                | Local Enterprise Bean | 0
    Anonymizer | anonymizer.acceptNamespaces | http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0 ns0 http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader ns1 http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper ns2
    Anonymizer | anonymizer.quote                        | "
    That is all what i have on the module tab.
    I send the data as Text (not Binär). Thats all what i have in the adapter. Do you need any further information?
    Regards, Max

  • Xml declaration with whitespace leading..

    hi,,,,, we use SOAP message (SOAP with attachments..) to exchange some informations..
    the problem is that our client sends SOAP message like this.. (we captured HTTP input..)
    POST /mms/service HTTP/1.0
    Content-Type: multipart/related; boundary="NextPart_000_0125_01C19839.7237929064"; type="text/xml"; start="<0406262209010000000003>"
    Content-Length: 14687
    SOAPAction: ""
    --NextPart_000_0125_01C19839.7237929064
    Content-Type: text/xml
    Content-ID: <0406262209010000000003>
    <?xml version="1.0" encoding="euc-kr" ?>
         <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
         <env:Header>
    as you can see,, xml declaration has leading whitespaces..
    and, our XML library (crimson or xerces) throws SAXParseException: "XML declaration may begin entities"
    ofcourse, we should remove leading whitespaces.. but,,, unfortunately it's not an easy work for some reason.
    is there any other way.... let crimson or xerces ignore leading whitespaces.. or any other tolerant parsers ?
    thanks very much for any replies..

    sorry,, i missed pre tag.. the exact HTTP input is like below..
    <pre>
    POST /mms/service HTTP/1.0
    Host: 211.39.152.216
    Content-Type: multipart/related; boundary="NextPart_000_0125_01C19839.7237929064"; type="text/xml"; start="<0406262209010000000003>"
    Content-Length: 14687
    SOAPAction: ""
    --NextPart_000_0125_01C19839.7237929064
    Content-Type: text/xml; charset="euc-kr"
    Content-ID: <0406262209010000000003>
    <?xml version="1.0" encoding="euc-kr" ?>
         <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
         <env:Header>
    </pre>

  • How to remove the standalone="yes" attribute in the xml declaration?

    Hi,
    I am using JAXB 2.0 to generate XML files. Can anyone tell me how to remove the standalone="yes" attribute in the xml declaration? Thanks in advance.
    -Joey

    Just open the file with your favorite text program and type away. If you get a permissions problem (file is locked by...) then just stop tomcat and open/edit/save the file and restart tomcat.
    I also think that the admin context that comes with tomcat might allow you to modify/add/edit your users (not sure though)

  • XML Declaration missing in  SOAP message

    Hi,
    We have an interface that calls a webservice to create a Product in a 3rd Party System.
    Inbound Message : Material IDOC
    Outbound Message: Product XML for a Create method of a WebService.
    Outbound Adapter: SOAP Adapter
    Issue:
    Product XML is received by the 3rd Party system via the SOAP adapter but the XML declaration tag <? XML Version="1.0" encoding="UTF-8" ?> is missing in the received document.
    Has anyone come across such a situation in the group?
    I would appreciate your valuable inputs and suggestions.
    Thanks Guys,
    Sathia.

    Hi
    Did u solve this problem, I have a similar issue ....

  • Xml-declaration="yes" in xsl:output

    When I have a xml-declaration="yes" in my xsl:output, should I
    get <?xml version="1.0" ... ?> in my output? I tried it on
    Oracle xmlparser_v2_0_2 sample XSLSample.java and I did not get
    the <?xml ...?> line. How do I modify the file so that it
    outputs this line if I have xml-declaration="yes"?
    Thanks.
    Khun Yee
    null

    Khun Yee Fung (guest) wrote:
    : When I have a xml-declaration="yes" in my xsl:output, should I
    : get <?xml version="1.0" ... ?> in my output? I tried it on
    : Oracle xmlparser_v2_0_2 sample XSLSample.java and I did not
    get
    : the <?xml ...?> line. How do I modify the file so that it
    : outputs this line if I have xml-declaration="yes"?
    : Thanks.
    : Khun Yee
    You should get this per the spec only it has not yet been
    implemented. It will be in a future release.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

Maybe you are looking for

  • Opening and closing an applet or closing a webpage

    Hi, i was wondering if it was possible to open an applet from inside one method and close it within another method. I do not seem to be able to do this. I have however opened a HTML page that contains the applet and this appears to work fine. Can i,

  • Combining 1-D arrays to save in excel format

    I have different 1-D arrays which I want to store in excel. All arrays in a single MS excel file. How do I do that?

  • CP4.0: Audio is out of sync with slides

    Hi, All my audio recordings, motion captures, highlights and captions are perfectly fine in edit mode, but when I publish the video, the output files are mixed up. Somehow, the audio file from slide 36 (of a 59-slide project) starts playing from the

  • Firefox 5 hangs at launch on osx lion

    This was happening before lion, but always with FF 5.0.1. Upon application launch, the browser seems to hang for 5-10 seconds before pages can load or the app is responsive to clicking. I don't know if it's because of the bookmark syncing working in

  • Default timestamp is not working

    This is driving me crazy, it is such a trivial thing but i can't solve it. have a timestamp item (P10_date_created) uses sysdate as default value. Why the followng setting is not working when I press create in the form ? I kept getting ORA00904- date