XSLT problem with img tag in Saxon

Hi,
Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
Kindly help to resolve the issue.
Kind Regards,
Abhinandan

Perhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.

Similar Messages

  • IE problem with img tag calling stored procedure

    I have an img tag in my JSP which looks like this (it has a very long src value):
    <img src="http://www.enetrix.com/cores/net_charts.display_temp_chart?vChartDef_in=ChartType%20=%20DIALCHART;Chart
    . . . and so on and so on . . .
    26,%2075.0);&vChartType_in=PNG&vChartURL_in=http://333.333.33.333/j2ee/servlet/chart"/>
    In short, the img calls a stored procedure and passes it a servlet among many other things. The procedure passes back an image to the browser.
    The image shows up in Firefox but not IE 7. I don't think its an issue with the stored procedure but I can't understand why IE doesn't show the image. Is there something I'm missing? I've tried both jpeg and png.
    Thanks
    Eric

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Problem with display tags (not accepting inner tags)

    Hi guys ,
    I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
    <display:column title="Row_Id" >
    ' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
    </display:column>
    here i got the exception:
    The value of attribute "href" associated with an element type "a" must not contain the '<' character.
    here if jstl is not used then how to put my value in anchor tag
    please help me.

    Can you use EL directly:
    <a href="example.jsp?id=${row.id"/"></a>

  • Problems with iterate tags

    Hi everybody,
    We're using OC4J 9.0.2 but we have a problem with iterate tags. The doAfterBody is ignored and so, the body is never done !
    This work fine with version 9.0.3. If we compare the two generated servlets(9.0.2 & 9.0.3), the code is really different.
    Is this a know bug, is it possible to solve this problem ?
    Our client is still in 9.0.2 and is not ready for an upgrade.
    Any idea is welcome ...
    Jean-Pierre Evrard
    [email protected]
    Belgium

    It's unlikely anyone can help you if you don't show any of your code or explain what is really happening.
    Have you set breakpoints (or added print statements) in your doStartTag, doEndTag, and doAfterBody methods, and verified the return values are what they should be?

  • XSLT-problem with sequence attributes

    Hi,
    in my XSLT-program (i'm a real newbie!) i'm adding dynamically attributes and their values to a tag, by using the following code :
    <SUPPLIER>
      <xsl:attribute name="FUNLOC">
        <xsl:value-of select="SUPPLIER_FUNLOC" />
      </xsl:attribute>
      <xsl:attribute name="NAME">
        <xsl:value-of select="SUPPLIER_NAME" />
      </xsl:attribute>
      <xsl:attribute name="LOCATION">
        <xsl:value-of select="SUPPLIER_LOCATION" />
      </xsl:attribute>
      </SUPPLIER>
    The problem is that the attributes in the resulting xml-file are alphabetically ordered. For instance :
    <SUPPLIER FUNLOC="9522222" LOCATION="NL" NAME="Test vendor VMOI">
    How can i arrange that the result of the xml-file is a sequence of entrance is taken, so
    <SUPPLIER FUNLOC="9522222" NAME="Test vendor VMOI" LOCATION="NL" >
    regards,
    Hans
    [email protected]

    Hi Hans,
    I think you're using ABAP-XSLT?!
    If you do so, you can solve the sorting problem by using a 1:1 Message mapping after the ABAP-XSLT mapping. This resolves the problem that the nodes are not in the correct order.
    In your interface mapping you have to configure 2 mappings:
    1: ABAP-XSLT
    2: Message mapping.
    Of course this means that the total processing time increases a little bit.
    I had the same problem with the sequence of my (ACC_DOCUMENT) idoc nodes, the ABAP-XSLT screwed up the idoc, but the 1:1 message mapping solved the problem.
    Regards,
    Mark

  • JDeveloper 9i - Problem with using tag lib

    I am having problem with building my project, using JDeveloper 9i.
    My project includes custom tag libraries.
    When I build my project, I get back the following error:
    Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'
    for every jsp file that has the taglib directive as follows:
    <%@ taglib prefix="srp" uri="/srpTagLib" %>
    Please note that the application runs OK, but it can not be build by JDeveloper for debugging purpose.
    Any ideas? Please help!!!!
    Thanks,
    Cathy

    What version is your tag library and what version is your deployment descriptor?

  • Problem with custom tag

    I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
    attribute does not support request time values
    I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
    here is the .tld for my tag:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.1.2</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>My custom tag</short-name>
         <uri>http://my.custom/tags</uri>
         <tag>
              <name>breadcrumb</name>
              <tag-class>tag.BreadcrumbTag</tag-class>
              <body-content>JSP</body-content>
              <attribute>
                   <name>breadcrumbs</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
                   <description>Pass in the list of Breadcrumbs containing the actual information
    about what tags need to be rendered on the page.</description>
              </attribute>
         </tag>
    </taglib>
    Any thoughts/help greatly appreciated...

    I encountered the same problem in our environment. I did the same thing as
              James. Simply re-initialize all variables in the do end tag.
              Also, with the nested tags you use you may also need to implement cloneable
              in the inner tag if the outer tag keeps references to all the inner tag
              instances.
              For instance if the outer tag kept a vector of references to the inner tag,
              then you would need to use clone() on the inner tag before adding it to the
              vector.
              "James Lynn" <[email protected]> wrote in message
              news:3af05d29$[email protected]..
              > > But
              > > with WL 6.0, the cell tag handler reuse the same instance each time the
              > cell tag
              > > is called and the member field is not reset
              >
              > I had the same problem. As a work around, I reinitialize everything in my
              > doEndTag() method and it works.
              >
              >
              > --
              > James Lynn - Lead Software Architect
              > Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
              >
              >
              

  • Problem with .img files

    Hey folks!
    I am having a problem with some .img files. Every time I try to open them with DiskUtility, i get a message saying that the operation was failed because the thing was not recognized. I was wondering if there is some sort of workaround for this problem.
    Cheers,
    Al

    .img files are normally OS 9-style disk images. They are quite similar to OS X .dmg, except for the fact that they contain a tiny amount (less than 4 KB) of critical information in the resource fork of the file. If this information goes missing (the file inadvertently loses the resource fork), the disk image can no longer be mounted and is irrevocably damaged.
    If you're not careful, and you involve PCs, it's possible that you could lose the resource fork, which would result in the behavior you're seeing.
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.8)  

  • Help! Problem with Struts tag html:errors/

    Hi everybody,
    In my JSP page called addUser.jsp, i have the different Struts Tag
    <html:errors/>
    <html:form action="/addUser" focus="firstName">
    </html:form>
    I have of course the ApplicationResources.properties file with differents Struts properties:
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    errors.ioException=I/O exception rendering error messages: {0}
    and an other one:
    error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
    when I call the addUser form, my JSP page display:
    null Some fields are missing. null
    Have u any suggestion about my prob?
    tx a lot
    s.

    Hi,
    can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
    Thanks
    Latha

  • Problem with russian tags in english version of iTunes.

    I'm using english language in MacOS:
    end when I adding music to iTunes with russian tags and names it make it look like this:
    but when I make russian as first language...
    it becomes ok:
    Question is: How to fix it, and listen russian music in iTunes with normal names and tags?
    Thank you.

    It may be you need to convert the tags to Unicode.  This app may help:
    http://www.macupdate.com/app/mac/15953/id3mod

  • XML File - Problem.with naming tags with XI standard functions

    Hello,
    simple (?) problem:
    Receiver expects an XML file via file adapter.
    (The source data comes from an RFC connect to XI.)
    In the XML tags like these are expected (following W3C definitions):
    A)   </gdt:ValueGroup>
    How to define a data type with a ":" in its name or to convert it to the required tag?
    B)   <gdt:ExtendedAttribute gdt:guid="4c102d6b077de7c1f0e27391e40bb80f" gdt:code="X01" >GR2 LI3</gdt:ExtendedAttribute>
    This one is a real nice one. The part with "gtd:guid=" within the tag is variable. How to add such values into tag names?
    Any ideas if this is possible with standard and how.
    If this is the limit of XI I think we need an XSLT- or JAVA-maping program to generate the required file.
    Thank you for any help!
    Best regards
    Dirk

    Hi Dirk,
    just one thing:
    >>>>The part with "gtd:guid=" within the tag is variable.
    this is ok as it's just an attribute
    of the ExtendedAttribute tag's name
    so it can be variable without any problems
    (you can fill it in the mapping for example)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • JSP Compilation Problems With JSTL tags

    My JSP worked well when I used JSP expressions, scriptlets, .... I tried to use JSTL instead and encountered some compilation problems. I am unable to see my mistakes and need help:
    Problme #1:
    int offset = 0;
    try
       <c:set var="offset" value="${requestScope.offset}" />
    catch ( Exception e )
        // do nothing
    }The above code has two compilation errors:
    Generated servlet error:
    [javac] Compiling 1 source file
    illegal start of expression
    <c:set var="offset" value="${requestScope.offset}" />
    ^
    Generated servlet error:
    ';' expected
    <c:set var="offset" value="${requestScope.offset}" />
    ^
    Problem #2:
    <c:set var="threadBean" value="${requestScope.ThreadBean}" />
    int threadID_int = ParamUtil.getParameterInt( request, "thread" );
    <c:if test="${threadBean.threadID} != threadID_int">
        throw new AssertionException( "The two threadID are not the same." );
    </c:if>Generated servlet error:
    illegal start of expression
    <c:if test="${threadBean.threadID != threadID_int}">
    ^

    I have deleted the Java code around the JSTL tags. Now, what is wrong with this <c:if test=" ... "> tag? It seems that I have problems to get JSTL tags right.
    It seems that I have problems to get JSTL tags right....
    <c:if test="${attachBean.attachMimeType.startsWith('image/')}">
         <html:img page="getattachment?attach=<c:out value='${attachBean.attachID}' />" alt="<c:out value='${attachBean.attachFilename}' />" title="<c:out value='${attachBean.attachFilename}' />" border="0" />
    </c:if>error message:
    74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]

  • Problems with and tags while reading the xml file

    Hi
    I am using the xml files in my project. The project uses Tomcat, JMS. The project is divided into some components which communicate with each oher thru JMS. The component for which I am responsible gets a dcoument object from the JMS which is a processed xml of the following format (the processing is done by the DBMS_XMLGEN package of oracle)
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <filename>157_1000000001</filename>
    <querydata>
    <tabdata>
    <tabinfo>Tab-id3</tabinfo>
    <queryset>
    <query name="Fax">
    select a.ARLN_NAME,d.TICKETED_ORIGIN,d.TICKETED_DESTINATION, d.ENDORSEMENTS,to_char(d.DATE_OF_ISSUE,'DDMONYY') as DATE_OF_ISSUE ,d.EXCHANGE_DOC_TYPE,
                   d.PASSENGER_NAME,d.ORIG_ISS_AIRLINE,d.ORIG_DOC_NO,d.ORIG_PLACE_OF_ISSUE,
                   to_char(d.ORIG_DATE_OF_ISSUE,'DDMONYY'),d.ORIG_ISSUE_AGENT,d.CUR_OF_SALE,d.GROSS_FARE,d.EQUIV_CUR_OF_SALE,d.EQUIV_FARE,
                   d.PANDA_DEAL_CODE,d.ISI,d.reporting_date
                   from airline_master a,ticket_main d,ticket_conj e where d.doc_no = e.doc_no and d.iss_airline = e.iss_airline
                   and e.conj_doc_no = (select DOC_NO from TICKET_CONJ where CONJ_DOC_NO = 1000000001 and ISS_AIRLINE = 157)
                   and e.ISS_AIRLINE = 157 and d.iss_airline = a.ARLN_NUM_CODE
    </query>
    </queryset>
    </tabdata>
    </querydata>
    the function on my side is like this
    private void processMessage(ObjectMessage objmessage)
         Document XMLreqObject = (Document) objmessage.getObject();
         Element root = XMLreqObject.getRootElement();                
         String resultFilename = root.getChildText("filename");
         Element tabSet = root.getChild("querydata");//doesnt work
         ArrayList tabSetlist = new ArrayList(tabSet.getChildren ("tabdata"));//doesnt work
    The code commented with "doesnt work", is not working. What must be the problem ?
    Thanks in Advance
    Martin

    Okay. Your original example XML didn't include < or > which was rather confusing if that particular feature was supposed to be the cause of the problem. Also calling them "tags" was rather confusing since "tags" is the term for the things that come at the beginning and of an element, like this:<data>...</data>Anyway, I assume your theory is that documents that don't have < in a text element process correctly and documents that do have < in a text element get "stuck" in the parser? Well, from your original description the process appears to be:
    1. Create XML
    2. Parse it into a Document
    3. Send the Document via JMS
    4. Receive the Document via JMS
    5. Process it.
    And it's step 4 that is "stuck"? That would be my guess based on the code you posted.

  • Problem with child tag - Could not resolve x to a component implementation.

    Hello.
    I am writing some chart component and got a problem setting property via child tag. Property is a custom class.
    My directory structure:
    Makefile  oxcharts  Session.vim  stats.as  stats.mxml  stats.swf
    ./oxcharts:
    ColumnChart.as MyTest.as
    stats.mxml:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:oxcharts="oxcharts.*">
        <oxcharts:ColumnChart id="myChart" showDataTips="true" width="600" height="310">
            <oxcharts:test x="5"></oxcharts:test>
         </oxcharts:ColumnChart>
    </mx:Application>
    ColumnChart.as:
    package oxcharts {
        public class ColumnChart extends UIComponent {
            public var test:MyTest;
    MyTest.as:
    package oxcharts {
        public class MyTest {
            public var x:Number;
    I got this error:
    Error: Could not resolve <oxcharts:test> to a component implementation.
    I guess something wrong with imports. Setting Number property via child tag works just fine.

    I'm gonna give a clerear example, I hope it'll help you better understand what I mean let's say I have a custom class named Login:
    package ec
             [Bindable]
         public class Login
              public var ID:int;
              public var Role:String;         
              public function Login()
    And I need to use this class within MyAmazingCanvas, so my main app will be like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:oxcharts="ec.*">
         <mx:Script>
              <![CDATA[
                   import ec.Login;
                   [Bindable]
                   private var myLoginStatus:Login=new Login();
                   private function setLoginData():void{
                        myLoginStatus.ID=myID.text
                        myLoginStatus.Role=myRole.text;
              ]]>
         </mx:Script>
         <oxcharts:MyAmazingCanvas id="myCustomComp" myPublicNumber="323" LoginStatus="{myLoginStatus}" />
         <mx:TextInput id="myID" />
         <mx:TextInput id="myRole" />
         <mx:Button id="setData" label="Set Data" click="setLoginData()" />
    </mx:Application>
    When I said at the top level I meant outside the scope of any function, altough is not a requierement, you can as well set it at a function level.

  • XSLT Problem with soap namespace

    Hi there,
    I have a problem transforming an XML doc with soap elements, using XSLT (Xalan).
    Here's the input:
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.ean.nl">
      <testthis>123456</testthis>
    </soap:Envelope>and here's the XSL:
    <?xml version="1.0"?>
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" exclude-result-prefixes="soap">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="soap:Envelope">
    <Orders>
         <H01>
              <xsl:value-of select="testthis"/>
         </H01>
    </Orders>
    </xsl:template>
    </xsl:transform>I expect to get something like:
    <?xml version="1.0" encoding="UTF-8"?>
    <Orders>
    <H01>123456<H01>
    <Orders>But instead I get:
    <?xml version="1.0" encoding="UTF-8"?>
    <Orders>
    <H01/>
    </Orders>I've tried a lot of things and I'm probably overseeing something stupid, but I'm stuck.
    It seems as if anything without soap: namespace cannot be processed by my XSL (when I add it in the input XML and XSL it works).
    Any help would be greatly appreciated.
    Greetings,
    Erik

    Yes, I found it!
    The following XSL for the same XML doc works!
    <?xml version="1.0"?>
    <xsl:transform xmlns:ean="http://www.ean.nl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" exclude-result-prefixes="soap">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="soap:Envelope">
    <Orders>
         <H01>
              <xsl:value-of select="ean:testthis"/>
         </H01>
    </Orders>
    </xsl:template>
    </xsl:transform>Thanks, you pointed me in the right direction :-)
    Erik

Maybe you are looking for

  • SkillBuilders Modal 2.0 plugin with a page-item button - pass parameters

    Hi all. I have an employee table, which is connected with a 1:N relationship to two tables: Emp_Tech_Fields and Emp_Kids. I've created a form to update / insert employee data, and I want to add two modal pages: one for kids and one for tech_fields. I

  • Facetime getting cut off.

    My facetime just keep getting cut off in the middle of the night. Technically my friend and I was sleeping. Nobody hung up. Even once I saw it hung up by itself. Why is that and how can I fix it?

  • How to link a table to a edit box

    While Creating a  addon there is a need for  using the 'Define New' Option on a combo select and when clicked a new table opens .

  • Fonts DW CS6 Not WYSIWYG

    Windows 7. I have the ttf installed. All regular PC indicators show the font installed properly. Using proper@font-face declarations, no problems with online design. Can't get the font to wysiwyg in design layout, CS6. All if fine in Live view as wel

  • LDAP Datasource

    I have a requirement to attach and use an LDAP Server as a datasource. Given that there is the Foreign JNDI Provider, I was wondering if anyone has used this functionality to create a pool of LDAP connections to mimic a straight jdbc Datasource provi