IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

error in MSIE5.5 when using xsl and passthru servlet

  • 1.  error in MSIE5.5 when using xsl and passthru servlet

    Posted Tue July 23, 2002 03:00 PM

    env: INO3114
    TOMCAT4.0.3
    Apache 1.3.26
    MSIE5.50.4522.1800, SP1
    prob: when accesing tamino using passthru servlet i get the following error:
    Invalid at the top level of the document, line 1, position 39
    <?xml version="1.0" encoding="utf-8"?>

    ana: passthru servlet is working, result is okay, if not xsl source is provided. jar files used are from INO installation.

    xsl schema used is the one posted. xsl doc is stored in INO and accessible.

    the following stylesheet is used:

    <?xml version="1.0"?>

    <xsl:stylesheet xmlns:xsl=“XSLT Namespace”>





    <xsl:template match=“/”>
    <xsl:apply-templates />
    </xsl:template>
    <xsl:template match=“CUST_RECORD”>


    CUSTOMER_LIST created by passthru servlet



    CUSTOMERS



    <TABLE width=“100%” CELLPADDING=“5”
    BGCOLOR=“YELLOW” BORDER=“3”>
    Company
    CustomerID
    Email_Addr
    Phone_No
    <xsl:apply-templates />



    </xsl:template>


    <xsl:template match=“CUST_RECORD”>

    <xsl:apply-templates select=“CompanyName” />
    <xsl:apply-templates select=“CustomerID” />
    <xsl:apply-templates select=“Email” />
    <xsl:apply-templates select=“Phone_No” />

    </xsl:template>

    <xsl:template match=“CompanyName”>

    <xsl:value-of select=“.” />

    </xsl:template>


    <xsl:template match=“CustomerID”>

    <xsl:value-of select=“.” />

    </xsl:template>

    <xsl:template match=“Email”>

    <xsl:value-of select=“.” />

    </xsl:template>

    <xsl:template match=“Phone_No”>

    <xsl:value-of select=“.” />

    </xsl:template>

    </xsl:stylesheet>

    any idea where to look for

    thanks in advance

    michael


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: error in MSIE5.5 when using xsl and passthru servlet

    Posted Thu July 25, 2002 01:42 PM

    env: MS IE 5.5
    INS: 3114
    passthru servlet 3113
    TOMCAT 4.0.3

    the error is solved with the style sheet below.
    very important the xsl element xsl:output method=“html”.

    afterwards it works fine.


    here the stylesheet used:

    <?xml version="1.0" encoding="utf-8" ?>
    - <xsl:stylesheet version=“1.1” xmlns:xsl=“XSLT Namespace” xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)”>
    <xsl:output method=“html” encoding=“iso-8859-1” />
    -
    - <xsl:template match=“/”>
    <xsl:apply-templates />
    </xsl:template>
    - <xsl:template match=“ino:response/xql:result”>
    -
    -
    CUSTOMER_LIST created by stylesheet CUST_RECORD

    -

    CUSTOMERS



    -




    <xsl:apply-templates />
    Company Contact Email_Addr Phone_No



    </xsl:template>
    - <xsl:template match=“CUST_RECORD”>
    -
    <xsl:apply-templates select=“CompanyName” />
    <xsl:apply-templates select=“ContactName” />
    <xsl:apply-templates select=“Email” />
    <xsl:apply-templates select=“Phone_No” />

    </xsl:template>
    - <xsl:template match=“CompanyName”>
    -
    <xsl:value-of select=“.” />

    </xsl:template>
    - <xsl:template match=“ContactName”>
    -
    <xsl:value-of select=“.” />

    </xsl:template>
    - <xsl:template match=“Email”>
    -
    <xsl:value-of select=“.” />

    </xsl:template>
    - <xsl:template match=“Phone_No”>
    -
    <xsl:value-of select=“.” />

    </xsl:template>
    </xsl:stylesheet>


    with regards

    Michael


    #webMethods
    #API-Management
    #Tamino