Error in Java code in XSL transformation

Hi,
I am getting below error while transforming XML ( in string) using XSL.
XML-22047: (Error) Invalid instantiation of 'xsl:template' in 'Alarm' context.
I am using following function :
public String strConv(String message, String xslfile) throws Exception {
        StringReader reader = new StringReader(message);
        StringWriter writer = new StringWriter();
        TransformerFactory tFactory = TransformerFactory.newInstance();
          Transformer transformer = tFactory
                .newTransformer(new javax.xml.transform.stream.StreamSource(new File(xslfile)));
        transformer.transform(new javax.xml.transform.stream.StreamSource(
                reader), new javax.xml.transform.stream.StreamResult(writer));
        return writer.toString();
Corresponding XSL portion :
<xsl:template match="Alarm">
<Alarm>
<xsl:apply-templates select="Identifier" />
<xsl:apply-templates select="updateSeqNum" />
<xsl:apply-templates select="removeFlag" />
<xsl:template match="Severity">
<xsl:choose>
<xsl:when test="Severity = '0' ">
<perceivedSeverity>Clear</perceivedSeverity>
</xsl:when>
<xsl:when test="Severity = '1' ">
<perceivedSeverity>Indeterminate</perceivedSeverity>
</xsl:when>
<xsl:when test="Severity = '2' ">
<perceivedSeverity>Warning</perceivedSeverity>
</xsl:when>
<xsl:when test="Severity = '3' ">
<perceivedSeverity>Minor</perceivedSeverity>
</xsl:when>
<xsl:when test="Severity = '4' ">
<perceivedSeverity>Major</perceivedSeverity>
</xsl:when>
<xsl:when test="Severity = '5' ">
<perceivedSeverity>Critical</perceivedSeverity>
</xsl:when>
<xsl:otherwise>
<perceivedSeverity>
<xsl:value-of select="Severity" />
</perceivedSeverity>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Please help me to find out the error.
Thanks.

just a guess: Please post the output of this (add it to the top of your method):
File xslRealFile = new File(xslFile);
System.out.println("File: "+xslRealFile.toString()+" exists? "+ xslRealFile.exists());
bye
TPD

Similar Messages

  • How to call java code in xsl?

    I'm trying to call java code in xsl. I've not been able to do so so far....any help is greatly appreciated.
    Here's my xsl:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
              xmlns:xalan="http://xml.apache.org/xalan"
              xmlns:java="http://xml.apache.org/xalan/java"
              extension-element-prefixes="java">
    <xsl:output method="xml" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <xsl:template match="data_order">
    <order xsl:use-attribute-sets="order-info"></order>
    <fromdate><xsl:value-of select="ds/temporal/ds_start_date"/></fromdate>
    <stringdate><xsl:variable name="stringDate" select="java:ConvertDate2.changeDate(ds_start_date)"/>
    </stringdate>
    <thrudate><xsl:value-of select="ds/temporal/ds_stop_date"/></thrudate>
    <chans><xsl:apply-templates select="ds/subset_spec/channels"/></chans>
    </xsl:template>
    <xsl:attribute-set name="order-info">
    <xsl:attribute name="id"><xsl:value-of select="@job_id"/></xsl:attribute>
    <xsl:attribute name="job"><xsl:value-of select="@origin"/></xsl:attribute>
    </xsl:attribute-set>
    <xsl:template match="channels">
    <xsl:copy use-attribute-sets="sequence">
    <xsl:apply-templates/>
    </xsl:copy>
    </xsl:template>
    <xsl:attribute-set name="sequence">
    <xsl:attribute name="index"><xsl:value-of select="position()"/></xsl:attribute>
    </xsl:attribute-set>
    </xsl:stylesheet>
    And here's my java code
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class ConvertDate2
    public static String changeDate(String inputdate)
    String date_array[];
    String combined_date;
    date_array = inputdate.split("[-]");
    combined_date = date_array[0]+ date_array[1]+ date_array[2];
    return combined_date;
    }//end changeDate
    }// end class

    Try Changing your namespace for java to ConvertDate2(This class should be in classpath) and replace
    <stringdate><xsl:variable name="stringDate" select="java:ConvertDate2.changeDate(ds_start_date)"/>
    </stringdate>
    with
    <stringdate><xsl:variable name="stringDate" select="java:changeDate(ds_start_date)"/>
    </stringdate>
    Make sure your query matches with ds_start_date correctly.

  • How to track the information/error of java code while compiling.

    Hi,
    I want all the information or errors of java code during compilation.
    So that I can use this information or I can show these errors with different style.
    How to get the java syntax errors?

    Hi,
    I want all the information or errors of java code
    during compilation.
    So that I can use this information or I can show these
    errors with different style.
    How to get the java syntax errors?Redirect the STDOUT/STDERR from the the JAVA/JAVAC command to a file is one way...
    For instance at the commmand line:
    javac myClass.java > STDOUT.txt 2> STDERR.txt (Works for Unix variants or Windows OS's)
    Then you can do what ever you want with the data contained in the files.
    Hope this helps

  • To find the error in java code if any

    i was learnig java.net package and this is the code i wrote to read the contents directly from a given url using openStream() method of URL class and got the message 'error' from
    java.io.IOException which i had given in the catch block. please tell me what is happening & how
    could i read the content from an url with url class method.
    import java.io.*;
    import java.net.*;
    public class url
    public static void main(String[] args)
    throws java.io.IOException,java.java.MalformedURLException
    try{
    URL yahoo = new URL("http://www.yahoo.com");
    BufferedReader read_io = new BufferedReader(new InputStreamReader(yahoo.openStream()));
    String line;
    while((line =read_io.readLine())!= null)
    System.out.println(line);
    line.close();}
    catch(MalformedURLException e)
    System.out.println("error");
    catch(IOException e)
    System.out.println("error"):
    after execution at the terminal
    bash-3.00#javac url.java
    bash-3.00#java url
    error

    Please use [code] tags when posting code.
    Are you sure String has a close method? I'm not sure your code compiles.
    Exceptions have a getMessage method, which can be useful (and a printStackTrace method that can be even more useful.)

  • Error in Java code

    i dont know if this is the right place to post this.. but... ehh
    when i try to compile these two programs i get errors
    This program is saved in Item.java and it compiles fine
    public class Item
         private String name, desc;
         private double price;
         private int amount;
         public Item (String name, String desc, double price, int amount) {
              this.name = name;
              this.desc = desc;
              this.price = price;
              this.amount = amount;
         public String getName() {
              return name;
         public String getDesc() {
              return desc;
         public double getPrice() {
              return price;
         public int getAmount() {
              return amount;
         public void iAmount() {
              amount++;
         public void dAmount () {
              amount--;
         public String toString() {
              String s = name + "\tDescription: " + desc;
              s += "\nPrice: " + price + "\tAmount Left: " + amount;
              return s;
    }and this code is saved in Store.java (in the same folder) dowsnt compile
    public class Store
         private static int arraySize = 0;
         public static Item[] inv = new Item[0];
         public static void initItems() {
              addToInv("Orange", "Fruit", 0.99, 10);
              addToInv("Apple", "Fruit", 0.65, 12);
              addToInv("Bananna", "Fruit", 0.75, 18);
         private static void addToInv(String name, String desc, double price, int amount) {
              if (arraySize == inv.length)
                   increaseArray();
              inv[arraySize] = new Item(name, desc, price, amount);
         private static void increaseArray() {
              Item[] temp = new Item[inv.length + 1];
              for (int x = 0; x < temp.length; x++)
                   temp[x] = inv[x];
              inv = temp;
         public static void main(String[] args) {
              initItems();
              for (int x = 0; x < inv.length; x++)
                   System.out.println(inv[x]);
    }I get the errors
    C:\Work\JAVA\Store.java:4: cannot find symbol
    symbol  : class Item
    location: class Store
         public static Item[] inv = new Item[0];
                          ^
    C:\Work\JAVA\Store.java:4: cannot find symbol
    symbol  : class Item
    location: class Store
         public static Item[] inv = new Item[0];
                                           ^
    C:\Work\JAVA\Store.java:15: cannot find symbol
    symbol  : class Item
    location: class Store
              inv[arraySize] = new Item(name, desc, price, amount);
                                         ^
    C:\Work\JAVA\Store.java:19: cannot find symbol
    symbol  : class Item
    location: class Store
              Item[] temp = new Item[inv.length + 1];
                    ^
    C:\Work\JAVA\Store.java:19: cannot find symbol
    symbol  : class Item
    location: class Store
              Item[] temp = new Item[inv.length + 1];
                                      ^

    Hey I just copied ur prog and saved it in one directory and then i complied them and it worked fine I guess the only mistake u did is u didn't compiled the Item.java first .First compile Item.java and then Store.java then it will work u dont have to set the calsspath for this..

  • Consolidator class error in java code...

    Hi, I have difficult time for testing create publication programically.
    Test step is
    1. create MOBILEADMIN.EMP2 based by SCOTT.EMP
    2. Create Primary Key to MOBILEADMIN.EMP2
    3. Write Test Code
    My test code is....as follows..
    [Publication2.java]
    import java.util.*;
    import java.sql.*;
    import oracle.lite.sync.*;
    import oracle.mobile.admin.*;
    public class Publication2
    public static void main(String args[])
    Statement s = null;
    ConsolidatorManager mgr = null;
    Connection con = null;
    try {
    con =getConnection( "MOBILEADMIN", "ADMIN" );
    con.setAutoCommit(false);
    ResourceManager.openConnection( "MOBILEADMIN", "ADMIN" );
    mgr = new ConsolidatorManager();
    s = con.createStatement();
    } catch (Throwable e) {
    System.out.println("con.createStatement failed: " + e + "\n");
    System.exit(0);
    System.out.println( "####################### OpenConnection ######################" );
    try {
    mgr.OpenConnection( "MOBILEADMIN", "ADMIN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on OpenConnection xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### DeinstantiateSubscription ######################" );
    try {
    mgr.DeinstantiateSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropSubscription ######################" );
    try {
    mgr.DropSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublication ######################" );
    try {
    mgr.DropPublication("PUBLISH01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublication xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublicationItem ######################" );
    try {
    mgr.DropPublicationItem("PUBLISH01_ITEM01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### CreatePublication ######################" );
    try {
    //mgr.CreatePublication("PUBLISH01", Consolidator.OKPI_CREATOR_ID, "%s", null );
    mgr.CreatePublication( "PUBLISH01", Consolidator.OKAPI_WIN32, "%s", null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublication xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItem ######################" );
    try {
    mgr.CreatePublicationItem( "PUBLISH01_ITEM01", "MOBILEADMIN", "emp2", "F", "SELECT * FROM emp2", null, null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### PrimaryKeyHint ######################" );
    try {
    mgr.PrimaryKeyHint( "PUBLISH01_ITEM01", "EMPNO", "MOBILEADMIN", "EMP2", "EMPNO" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on PrimaryKeyHint xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItemIndex ######################" );
    try {
    mgr.CreatePublicationItemIndex("PK_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "P", "EMPNO");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "I", "ENAME");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM02", "PUBLISH01_ITEM01", "I", "JOB");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM03", "PUBLISH01_ITEM01", "I", "MGR");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM04", "PUBLISH01_ITEM01", "I", "HIREDATE");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM05", "PUBLISH01_ITEM01", "I", "SAL");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM06", "PUBLISH01_ITEM01", "I", "COMM");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM07", "PUBLISH01_ITEM01", "I", "DEPTNO");
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItemIndex xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### AddPublicationItem ######################" );
    try {
    mgr.AddPublicationItem("PUBLISH01", "PUBLISH01_ITEM01", null, null, "S", null, null);
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreateSubscription ######################" );
    try {
    mgr.CreateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### InstantiateSubscription ######################" );
    try {
    mgr.InstantiateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on InstantiateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending1... ######################" );
    try {
    ResourceManager.commitTransaction();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending1 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending2... ######################" );
    try {
    ResourceManager.closeConnection();
    mgr.CloseConnection();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending2 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    private static Connection getConnection(String user ,String password)
    Connection conn =null;
    try
    DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.driver.OracleDriver").newInstance()));
    catch(Exception e)
    e.printStackTrace();
    try
    conn=null;
    String jdbc_url = "jdbc:oracle:thin:@localhost:1521:sid";
    conn = DriverManager.getConnection(jdbc_url,user,password);
    catch(Exception e)
    e.printStackTrace();
    return conn;
    9_;}GO4B ?!7/ 8^=CAv @T4O4Y..
    log9: ####################### AddPublicationItem ######################
    log1: log_main: SELECT PUBLICATION FROM MOBILEADMIN.C$ALL_TEMPLATE_ITEMS WHERE TEMPLATE = ''PUBLISH01'' AND NAME = ''emp2''
    log1: log_main: SELECT COUNT(*) FROM MOBILEADMIN.C$PUBLICATION_MTD WHERE PUBLICATION_ID = 97
    log1: log_main: Will try to get object type for MOBILEADMIN,emp2
    log1: log_main: Will describe emp2
    log1: log_main: Finished describing emp2
    log1: log_main: NCOLS=0
    log1: log_main: PKS Length=0
    log9: oracle.lite.sync.ConsolidatorException:
    CONS-10032: MOBILEADMIN.emp2?! 4kGQ 1b:; E08& C#@; <v >x1b 6'9.?! 5n7O GW8q PUBLISH01_ITEM01@;(8&) 0;=EGR <v >x@=
    (in english, this message shows can't update PUBLISH01_ITEM01 because there's no primary key to MOBILEADMIN.emp2)
    log9: at oracle.lite.sync.Subscription.CreatePublicationMapInQueue(Subscription.java:2569)
    log9: at oracle.lite.sync.Subscription.AddPublicationItem(Subscription.java:2431)
    log9: at oracle.lite.sync.ConsolidatorManager.AddPublicationItem(ConsolidatorManager.java:730)
    log9: at Publication2.main(Publication2.java:164)
    log9: xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx
    I found primary key to MOBILEADMIN.EMP2 when I query user_constraints table.
    What did I wrong? Pls Help me out..
    Thanks in advance..

    Hi, I have difficult time for testing create publication programically.
    Test step is
    1. create MOBILEADMIN.EMP2 based by SCOTT.EMP
    2. Create Primary Key to MOBILEADMIN.EMP2
    3. Write Test Code
    My test code is....as follows..
    [Publication2.java]
    import java.util.*;
    import java.sql.*;
    import oracle.lite.sync.*;
    import oracle.mobile.admin.*;
    public class Publication2
    public static void main(String args[])
    Statement s = null;
    ConsolidatorManager mgr = null;
    Connection con = null;
    try {
    con =getConnection( "MOBILEADMIN", "ADMIN" );
    con.setAutoCommit(false);
    ResourceManager.openConnection( "MOBILEADMIN", "ADMIN" );
    mgr = new ConsolidatorManager();
    s = con.createStatement();
    } catch (Throwable e) {
    System.out.println("con.createStatement failed: " + e + "\n");
    System.exit(0);
    System.out.println( "####################### OpenConnection ######################" );
    try {
    mgr.OpenConnection( "MOBILEADMIN", "ADMIN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on OpenConnection xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### DeinstantiateSubscription ######################" );
    try {
    mgr.DeinstantiateSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropSubscription ######################" );
    try {
    mgr.DropSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublication ######################" );
    try {
    mgr.DropPublication("PUBLISH01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublication xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublicationItem ######################" );
    try {
    mgr.DropPublicationItem("PUBLISH01_ITEM01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### CreatePublication ######################" );
    try {
    //mgr.CreatePublication("PUBLISH01", Consolidator.OKPI_CREATOR_ID, "%s", null );
    mgr.CreatePublication( "PUBLISH01", Consolidator.OKAPI_WIN32, "%s", null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublication xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItem ######################" );
    try {
    mgr.CreatePublicationItem( "PUBLISH01_ITEM01", "MOBILEADMIN", "emp2", "F", "SELECT * FROM emp2", null, null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### PrimaryKeyHint ######################" );
    try {
    mgr.PrimaryKeyHint( "PUBLISH01_ITEM01", "EMPNO", "MOBILEADMIN", "EMP2", "EMPNO" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on PrimaryKeyHint xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItemIndex ######################" );
    try {
    mgr.CreatePublicationItemIndex("PK_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "P", "EMPNO");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "I", "ENAME");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM02", "PUBLISH01_ITEM01", "I", "JOB");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM03", "PUBLISH01_ITEM01", "I", "MGR");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM04", "PUBLISH01_ITEM01", "I", "HIREDATE");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM05", "PUBLISH01_ITEM01", "I", "SAL");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM06", "PUBLISH01_ITEM01", "I", "COMM");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM07", "PUBLISH01_ITEM01", "I", "DEPTNO");
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItemIndex xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### AddPublicationItem ######################" );
    try {
    mgr.AddPublicationItem("PUBLISH01", "PUBLISH01_ITEM01", null, null, "S", null, null);
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreateSubscription ######################" );
    try {
    mgr.CreateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### InstantiateSubscription ######################" );
    try {
    mgr.InstantiateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on InstantiateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending1... ######################" );
    try {
    ResourceManager.commitTransaction();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending1 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending2... ######################" );
    try {
    ResourceManager.closeConnection();
    mgr.CloseConnection();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending2 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    private static Connection getConnection(String user ,String password)
    Connection conn =null;
    try
    DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.driver.OracleDriver").newInstance()));
    catch(Exception e)
    e.printStackTrace();
    try
    conn=null;
    String jdbc_url = "jdbc:oracle:thin:@localhost:1521:sid";
    conn = DriverManager.getConnection(jdbc_url,user,password);
    catch(Exception e)
    e.printStackTrace();
    return conn;
    9_;}GO4B ?!7/ 8^=CAv @T4O4Y..
    log9: ####################### AddPublicationItem ######################
    log1: log_main: SELECT PUBLICATION FROM MOBILEADMIN.C$ALL_TEMPLATE_ITEMS WHERE TEMPLATE = ''PUBLISH01'' AND NAME = ''emp2''
    log1: log_main: SELECT COUNT(*) FROM MOBILEADMIN.C$PUBLICATION_MTD WHERE PUBLICATION_ID = 97
    log1: log_main: Will try to get object type for MOBILEADMIN,emp2
    log1: log_main: Will describe emp2
    log1: log_main: Finished describing emp2
    log1: log_main: NCOLS=0
    log1: log_main: PKS Length=0
    log9: oracle.lite.sync.ConsolidatorException:
    CONS-10032: MOBILEADMIN.emp2?! 4kGQ 1b:; E08& C#@; <v >x1b 6'9.?! 5n7O GW8q PUBLISH01_ITEM01@;(8&) 0;=EGR <v >x@=
    (in english, this message shows can't update PUBLISH01_ITEM01 because there's no primary key to MOBILEADMIN.emp2)
    log9: at oracle.lite.sync.Subscription.CreatePublicationMapInQueue(Subscription.java:2569)
    log9: at oracle.lite.sync.Subscription.AddPublicationItem(Subscription.java:2431)
    log9: at oracle.lite.sync.ConsolidatorManager.AddPublicationItem(ConsolidatorManager.java:730)
    log9: at Publication2.main(Publication2.java:164)
    log9: xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx
    I found primary key to MOBILEADMIN.EMP2 when I query user_constraints table.
    What did I wrong? Pls Help me out..
    Thanks in advance..

  • Error in java code for controlling scorbot

    Hello,
    I work with the educatonal model robot scorbot er III and recently found an interface written in java for controlling it. When executing the code as "java Remote" in my Windows Xp operational system, I receive the foolowing error
    Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
    at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:954)
    at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:997)
    at RemoteCanvas3D.<init>(RemoteCanvas3D.java:50)
    at Remote.<init>(Remote.java:371)
    at Remote.main(Remote.java:282)
    Since I am not very familiar with Java, could anyone explain me how to get over this problem?
    Thank you in advance
    Theodoros

    I had this same error in a 3D game I was making.
    The code needs something like this when initializing the Canvas3D, most likely in a constructor.
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    Canvas3D canvas3D = new Canvas3D(config);
    hope that helps

  • Error in generating a new XSL Transformer from large xslt File

    Good day to all,
    Currently I am facing a problem that whenever i try generating a Transformer object from TransformerFactory, I will have a TransformerConfigurationException threw. I have did some research from the net and understand that it is due to a bug that JVM memory limit of 64kb. However is there any external package or project that has already addressed to this problem? I have checked apache but they already patch the problem in Xalan 2.7.1. However I couldn't find any release of 2.7.1
    Please help
    Regards
    RollinMao

    If you have the transformation rules in a separate XSLT file, then, you can use com.icl.saxon package to get XML files transformed. I have used this package with large XSL files and has worked well.

  • Error in java code for removing messages from a Topic

    Trying to write a code using oracle.jms package to remove messages from Topic. I have a similar code with javax.jms package for removing messages from Queue and it is working well. Whereas i have written this new code for removing messages from topic using oracle.jms package as methods like CreateBrowser and CreateTopicReceiver for topic are provided in oracle package only and can't be used from javax.jms package.
    Error i am getting is JMS-126: Invalid Topic specified at
             receiverTopic   = (Topic) ctx.lookup(((String)receiverProps.get( "Q_NAME")).trim()  );
             System.out.println ("receiverTopic is[" + receiverTopic + "]");
             MBeanHome home = (MBeanHome) Helper.getAdminMBeanHome("username","pwd","url:port");
             ((AQjmsSession)topicSession).grantSystemPrivilege("MANAGE_ANY", "SA", true);
             for(Iterator i = home.getMBeansByType("JMSTopic").iterator();i.hasNext(); )
              WebLogicMBean wmb = (WebLogicMBean)i.next();
              System.out.println("topic name found: " + wmb.getName());
                topicBrowser   = ((AQjmsSession) topicSession).createBrowser(receiverTopic, "Edin");topic handle which i am receiving in receiverTopic is same as what i am expecting but still it says Invalid topic specified on createBrowser method. Anyone who can help me to write this type of code, please reply. If anyone has ready code for this situation, please reply with the same as i am working on a prodcution system and we are in serious situation to resolve this problem.

    Hi,
    I am afraid this is impossible. You need to find another solution like a filtering queue. Your messages can be sent to a queue that is monitored by let say a MDB. This MDB will maintain a map of title and only forward once a given title/message to your topic.
    Hope it helps.
    Arnaud
    www.arjuna.com

  • XSL Transformation error source

    I am using MII 12.0 and I am getting the following error in the log file:
    javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: An attempt to write after the stream had been closed.
    The problem is that I am not using and XSL transforms that I know of. What BLS action might generate this error other than the obvious XSL Transformation Action?
    Thanks.
    ...Sparks

    I found this thread:
    [Re: IDOC error|Re: IDOC error]
    Is your system set up to receive any idocs?
    Edited by: Christian Libich on Feb 8, 2010 10:00 PM

  • Regarding use of java code inside javascript

    Hi ,
    I have doubt regarding how to use java code inside javascript,
    i am giving my application code here
    <%@page import="java.util.*"%>
    <%@ page import="com.suuny.sard.pmt.pat.*"%>
    <SCRIPT LANGUAGE="JavaScript">
    function fun(){
         var ac=document.login.Projectname.options[document.login.Projectname.selectedIndex].value;
         var c = document.login.task1.value;
         alert(ac);
         alert(c);
         return true;
    </SCRIPT>
    <form name="login" action="/pmt/jsp/Leavemanagement/Leave_Ems_HomePage.jsp" method="get" encType="x-www-form-encoded" >
    <table width="100%" Align="Center" cellspacing="0" cellpadding="0" border="0">
    <tr class="tablerow"><td colspan="6" align="center"><font class="pagehead" align="center">Create Tasks</font></td></tr>
         <tr class="tableheader">
              <th>Project
              <th>Task-Id
              <th>TaskName
              <th>Assigned To
              <th>description
              <th>Milestone
         </tr>
         <%
              for(int i=1;i<2;i++){%>
                   <tr class="tablerow"><td align="center">
                   <select class="SELECT" NAME="Projectname" VALUE=" " onchange="return fun();" >
                   <!--<option value=""> </option>-->
                   <%
                        ArrayList ar =null;
                        ArrayList projectids=null;
                        Hashtable ht = new Hashtable();
                        ProjectNames pnames=new ProjectNames();
                   ht = pnames.getProjectNames();
                        ar=(ArrayList)ht.get("projects");
                        projectids=(ArrayList)ht.get("projectIds");
                        for(int j=0;j<ar.size();j++){
                        out.println("<option value=\""+projectids.get(j)+"\">"+ar.get(j)+"</option>");
                   %>
    </select>
         <%
                   out.println("<td align=\"center\"><input type=\"text\" name=\"task"+i+"\"value=\"\" size=\"25\"></td>");
                   out.println("<td align=\"center\"><input type=\"text\" name=\"taskname"+i+"\"value=\"\" size=\"25\"></td>");
              %>
              <td align="center">
                             <select class="SELECT" NAME="Projectname1" VALUE=" ">
                             <!--<option value=""> </option>-->
                             <%
                                  ArrayList ar1 =null;
                             ar1 = pnames.getProjectResource("VXML02");
                                  for(int j=0;j<ar1.size();j++){
                                  out.println("<option value=\""+ar1.get(j)+"\">"+ar1.get(j)+"</option>");
                             %>
    </select>
              <%
                   out.println("<td align=\"center\"><input type=\"text\" name=\"description"+i+"\"value=\"\" size=\"25\"></td>");
                   out.println("<td align=\"center\"><input type=\"text\" name=\"milestone"+i+"\"value=\"\" size=\"25\"></td><tr>");
              out.println("<tr class=\"tablerow\"><td colspan=\"6\" align=\"center\"><input class=\"txtbuttonsmall\" type=\"submit\" value=\"save\"></td>");
         %>
    </Table>
    </form>
    My question is :
    I selected one project from first combo box ,i need project members corresponding to the project.
    In my code "pnames.getProjectResource("VXML02");" in this function iam passing one static projrct value,but i need dynamically selected project from first combo box(<select class="SELECT" NAME="Projectname" VALUE=" " onchange="return fun();" >),so please help me guys.

    Hi Marco,
    I "executed" some java code within XSLs file. I have quoted the word executed because I didn't really run java code, but I used a simply trick that I describe you below.
    Into your XSLs put an iframe which is hided (it has an height of 0 pixel). As src of the iframe put the address of a portal component which execute your code (in my case calculate some PCD URL of some pages into a defined role). As result of component execution, I use the response.write method in order to execute some jscript code, which is able to interact with the HTML generated by XSLs files, for example in my case response.write put the PCD URL into a drop down list placed into the "edit" form.
    This works fine. I don't know if is suitable also for your case, anyway could be a hint, but pay attention to Roland's recommendations.
    Ciao
    Roberto

  • Use of Java Code within the generated XML Forms Stylesheets

    Hello,
    is the use of Java-Code possible with the XSL-Files generated by XML-Forms, as possible in standard XSLs? I know that this would mean a modification.
    kind regards,
    Marco

    Hi Marco,
    I "executed" some java code within XSLs file. I have quoted the word executed because I didn't really run java code, but I used a simply trick that I describe you below.
    Into your XSLs put an iframe which is hided (it has an height of 0 pixel). As src of the iframe put the address of a portal component which execute your code (in my case calculate some PCD URL of some pages into a defined role). As result of component execution, I use the response.write method in order to execute some jscript code, which is able to interact with the HTML generated by XSLs files, for example in my case response.write put the PCD URL into a drop down list placed into the "edit" form.
    This works fine. I don't know if is suitable also for your case, anyway could be a hint, but pay attention to Roland's recommendations.
    Ciao
    Roberto

  • Unable to transform XML with XSL in java code

    Hi,
    Could somebody please tell me what's wrong with my code, why it isn't transform the XML with XSL to the output that I want. If I use the command line to transform the XML, it output perfectly:
    java org.apache.xalan.xslt.Process -in marc.xml -xsl MARC21slim2MODS.xsl -out out.xml
    Here is the code of my program to transform the XML with XSL, I am using xalan-j_2_2-bin:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import javax.xml.transform.dom.*;
    import java.math.BigInteger;
    String xslDoc = "MODS.xsl";
    String xmlResult = "out.xml";
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    dfactory.setNamespaceAware(true);
    DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
    Document xmlDoc = docBuilder.newDocument();
    Element root = xmlDoc.createElement("collection");
    root.setAttribute("xmlns", "http://www.loc.gov/MARC21/slim");
    xmlDoc.appendChild(root);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xslDoc));
    FileWriter fw = new FileWriter(new File(xmlResult));
    StreamResult output = new StreamResult(fw);
    transformer.transform(new DOMSource(xmlDoc), output);
    fw.flush();
    fw.close();
    ========================
    marc.xml -- source XML file
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01488cam 2200337 a 4500</leader><controlfield tag="001">2502929</controlfield><controlfield tag="005">19930521155141.9</controlfield><controlfield tag="008">920219s1993 caua j 000 0 eng </controlfield><datafield ind1=" " ind2=" " tag="035"><subfield code="9">(DLC) 92005291</subfield></datafield><datafield ind1=" " ind2=" " tag="906"><subfield code="a">7</subfield><subfield code="b">cbc</subfield><subfield code="c">orignew</subfield><subfield code="d">1</subfield><subfield code="e">ocip</subfield><subfield code="f">19</subfield><subfield code="g">y-gencatlg</subfield></datafield>
    </record></collection>
    ========================
    out.xml -- result using command line
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/mods/" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/marcxml/schema/mods.xsd">
    <mods>
    <titleInfo>
    <title>Arithmetic</title>
    </titleInfo>
    <name type="personal">
    <namePart>Sandburg, Carl</namePart>
    <namePart type="date">1878-1967</namePart>
    <role>creator</role>
    </name>
    </mods>
    </collection>
    ========================
    out.xml -- result using my java program
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/mods/" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/marcxml/schema/mods.xsd">01488cam 2200337 a 4500250292919930521155141.9920219s1993 caua j 000 0 eng (DLC) 920052917cbcorignew1ocip19y-gencatlgpc16 to br00 02-19-92; br02 to SCD 02-21-92; fd11 02-24-92 (PS3537.A618 A...); fa00 02-26-92; fa05 03-02-92; fm31 03-06-92; CIP ver. pv08 04-16-93; pv01 to CLT 04-20-93; lb10 05-21-93
    </collection>

    I am using the same XSL file. My Java program use the same XSL file I used in the command line.
    It is possible that my Java code is using a different parser, but I developed a seperate program to parse the XML using the same parser that my Java code is using. It output the result I expected. Here is the code for the program:
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Convertor {
    public static void main(String[] args) throws Exception {
    String xslDoc = "MARC21slim2MODS.xsl";
    String xmlResult = "out.xml";
    String xmlDoc = marc.xml";
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xslDoc));
    StreamSource xmlSource = new StreamSource(xmlDoc);
    FileWriter fw = new FileWriter(new File(xmlResult));
    StreamResult output = new StreamResult(fw);
    transformer.transform(xmlSource, output);
    }

  • Error while executing a custom java code from report in BI Publisher

    Hi,
    I have created a custom code added the jar in /opt/oracle/BI_Middleware/user_projects/domains/bifoundation_domain/lib and created a rtf template and added a code in that
      <?namespace:bipext=http://www.oracle.com/XSL/Transform/java/com.test.bi.CustomFunctions?>
      <?for-each:listOfNames?>
      <?bipext:helloFunction(name)?>
      <?end for-each?>
    according to the blog
    Vishal's blog: Using custom transformations in BI Publisher 10G
    I am using BI Publisher 11g and weblogic . But I am getting the below error when running the report . Please help . Its urgent.
    getting the below error from the BI Publisher desktop software
    FOProcessor setLocale: en-us
    oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException
        at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1205)
        at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:276)
        at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:1973)
        at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1117)
        at RTF2PDF.runRTFto(RTF2PDF.java:659)
        at RTF2PDF.runXDO(RTF2PDF.java:452)
        at RTF2PDF.main(RTF2PDF.java:302)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:917)
        at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:609)
        at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:327)
        at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:187)
        at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1181)
        ... 6 more
    Caused by: oracle.xdo11g.xpath.XPathException: Extension function error: Class not found 'com.test.bi.CustomFunctions'
        at oracle.xdo11g.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1850)
        at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:616)
        at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:551)
        at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:341)
        at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:189)
        at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:226)
        at oracle.xdo11g.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:122)
        ... 15 more
    and below error from GUI
    Error 
    The report cannot be rendered because of an error, please contact the administrator.
    Error Detail
    oracle.xdo.XDOException: oracle.xdo.XDOException: XSLT10gR1: Failed Secure Java Extensions check.
    Please help
    Thanks,
    Sahana

    BI Publisher

  • Javax.xml.transform.TransformerException durin XSL Transformation in Java

    Hi,
    Below is my piece of code where i access a web service that returns a xml as a string. I apply a xsl tranformation on it and try to store the result as a string. I get this error message
    javax.xml.transform.TransformerException: Result object passed to ''{0}'' is invalid.
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Unknown Source)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
         at NewService.main(NewService.java:52)My Code:
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.StringReader;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.rmi.RemoteException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceException;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    public class NewService {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String endPoint = "http://localhost:8080/SampleDynamicWebProj/services/SampleClient";
              Service service = new Service();
              Call callOne;
              try {
                   callOne = (Call) service.createCall();
                   callOne.setTargetEndpointAddress(new URL(endPoint));
                   callOne.setOperationName(new QName("http://DefaultNamespace",
                             "getXMLString"));
                   String concated = (String) callOne.invoke(new Object[] { "s" });
                   InputStream xsltFile = new FileInputStream("xslpackage/empTran.xsl");
                   Source xmlSource = new StreamSource(new StringReader(concated));
                 Source xsltSource = new StreamSource(xsltFile);
                 TransformerFactory transFact =
                    TransformerFactory.newInstance();
                 Transformer trans = transFact.newTransformer(xsltSource);
                 Result result = new StreamResult();
                 trans.transform(xmlSource, result);
                 System.out.println(result.toString());
              } catch (ServiceException e) {
                   e.printStackTrace();
              } catch (MalformedURLException e) {
                   e.printStackTrace();
              } catch (RemoteException e) {
                   e.printStackTrace();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (TransformerConfigurationException e) {
                   e.printStackTrace();
              } catch (TransformerException e) {
                   e.printStackTrace();
    }I get the transformed XML into a Result object, but when i do a toString() oon it, i get the above exception.
    any help wil be appreciated,
    Dilip

    Oh well, yes it was a typo in address tag...ok agreed that its a bad example, check this out then,
    i have a XML data that i convert to a html format using xsl transformation, now this converted html has to be shown in a html page(i use the out.write option).
    so my initial xml looks like this ::
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Results>
        <ColumnCount>6</ColumnCount>
        <Columns>
            <column>UID</column>
            <column>UserName</column>
            <column>Password</column>
            <column>LastName</column>
            <column>FirstName</column>
            <column>EmailAddress</column>
        </Columns>
        <Rows>
            <Row>
                <value>1</value>
                <value>userone</value>
                <value>password-1</value>
                <value>Anant</value>
                <value>Dilip</value>
                <value>[email protected]</value>
            </Row>
            <Row>
                <value>2</value>
                <value>usertwo</value>
                <value>password-2</value>
                <value>Palli</value>
                <value>Gilli</value>
                <value>[email protected]</value>
            </Row>
        </Rows>I apply XSL transformation on this to get a HTML which i will be writing into my output screen hoping that the user will see it in a tabular format!
    <[!CDATA["
    <?xml version="1.0" encoding="UTF-8"?>
    <table border="1">
    <tr bgcolor="#9acd32">
    <th align="left">UID</th>
    <th align="left">UserName</th>
    <th align="left">Password</th>
    <th align="left">LastName</th>
    <th align="left">FirstName</th>
    <th align="left">EmailAddress</th>
    </tr>
    <tr>
    <td>1</td>
    <td>userone</td>
    <td>password-1</td>
    <td>Anant</td>
    <td>Dilip</td>
    <td>[email protected]</td>
    </tr>
    <tr>
    <td>2</td>
    <td>usertwo</td>
    <td>password-2</td>
    <td>Palli</td>
    <td>Gilli</td>
    <td>[email protected]</td>
    </tr>
    </table>
    "]]>The entire data is passed to a XML parser . I want the transformed xml data (which will be inside a <status></status> tag to be untouched by this parser. As you see i have put the transformed xml in a CDATA tag, but this aint helping me...
    need urgent help,
    Dilip

Maybe you are looking for

  • Missing Audio When I Play The Whole Movie, But Still in Clip

    I am working on a project in iMovie. I adjusted the audio for all of the clips and it played perfectly. I added a clip, and now if I play the whole movie, the audio of the following clip does not play. If I start playing at that troublesome clip, the

  • Hyperlinks from Excel to PDF

    Hi, I'm using Excel 2003 Pro. In a spreadsheet, I have a list that is distributed to a domain on a weekly basis as a PDF file. The Spreadsheet contains Hyperlinks linking to URL's. I'm using Acrobat 7.0 Standard. When I create the PDF-file from my Ex

  • Changing high and low units while tangosol is running

    Hi,      i've a 3 machine setup. on the first one i've weblogic and tangosol with local storage as false.      on the other two i've have tangosol running with local storage enabled and i'm running a distributed service.      initially i've kept high

  • Desktop Manager software & Windows compatibil​ity

    I've downloaded the latest BlackBerry Desktop Manager software, paired the the Blackberry and desktop and as soon as I press the Synchronise button I get a message from telling me that the Desktop Manager has encountered a problem and needs to close,

  • Is it possible to have a keyboard shortcut run a script with CS6?

    I see there is an option for it to go to "other scripts" with a keyboard shortcut, but that really doesn't help much. I want it to play a specific script that is already loaded. Thanks in advance!!