XSL Transformation between arrays

Dear all
I create to XSD for my variables:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://www.asre-andishe.com/Inspec/General"
targetNamespace="http://www.asre-andishe.com/Inspec/General"
elementFormDefault="qualified">
<xsd:complexType name="AgentArrayType">
<xsd:sequence>
<xsd:element name="Agent" type="ns:AgentType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AgentType">
<xsd:sequence>
<xsd:element name="user" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Agent" type="ns:AgentType"></xsd:element>
<xsd:element name="AgentsArray" type="ns:AgentArrayType"></xsd:element>
</xsd:schema>
and the other one:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://www.asre-andishe.com/Inspec/DetermineInspec/retrive/relam"
targetNamespace="http://www.asre-andishe.com/Inspec/DetermineInspec/retrive/relam"
elementFormDefault="qualified">
<xsd:complexType name="RelamAgentType">
<xsd:sequence>
<xsd:element name="user" type="xsd:string" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RelamAgents" type="ns:RelamAgentType"></xsd:element>
</xsd:schema>
I create two empty variable and then initialized the second variable
<RelamAgents>
<user>john</user>
<user>david</user>
<user>jack</user>
</RelamAgents>
after that i use a transformation XSL and the second variable has been filled without no problem.
<AgentsArray>
<ns0:Agent>
<ns0:user>john</ns0:user>
</ns0:Agent>
<ns0:Agent>
<ns0:user>david</ns0:user>
</ns0:Agent>
<ns0:Agent>
<ns0:user>jack</ns0:user>
</ns0:Agent>
</AgentsArray>
but when i fill the first variable by receiving the output parameter from a service call, the XSL transformation did not work at all and the second variable remains empty.
I have checked the first variable and i am sure that it is not null and it has the same vale:
<RelamAgents>
<user>john</user>
<user>david</user>
<user>jack</user>
</RelamAgents>
Would anybody please help me with this problem?
Thank you very much

Hi,
receiving the output parameter from a service call, the XSL transformation did not workNamespaces... Check the namespaces the service call is using and see if they match with the XSL is expecting...
Cheers,
Vlad

Similar Messages

  • Error: "... is not a table ..." XML not correctly interpreted after XSL-transformation. Table row quantity problem.

    Hey guys, this is one of my xml-elements:
    Jaspreet Sohi 12 18 Juliane Lenz 11 17 Sophie Charlotte Stender 10 15 Rosbeh Hamidzadeh Khayyat 12 17 Lion Stoldt 12 17 Mats Lucas Meincke 6 8 Bero Luke Vincent Ernst 6 8 Cedric Roth 6 8 Soner Cantay 6 8 The following XSL Transformation I use once for transforming all "m" tags and once in order to transform all "j" tags. Please imagine the CSL-code below to be duplicated exactly. Only the "jungs"-table-Tag is replaced by "mädchen" and all underscores _j are replace by _m. As well all "select="j[@..." parts are replaced by "select="m[@...". 1 2 3 The code is very easygoing I think and not difficult to understand. As I said, I use it twice - for both transformations. The very, extremely weird thing, my problem, is that one transformation works perfectly in InDesign and a table is created for all "kategorie"-tags (all is set within a for-each loop). But the second script does not work! I simply do not get this I can't understand it. I've tried more than anything. InDesign sais (in German, so translated based on assumption) "jungs is an invalid table element or is displayed in wrong order". The second strange thing is that I can replace my "aid:trows" attribute by any number, e.g. "10" and immediately the script works fine (as there are never more than 6 "j" tags in my XML so that never the table has more than 6 rows"). But it does not want to work correctly with the actual number, my variable "rows_j". These are my variables: They are all defined before the tables for m and j are created. So finally, why (the heck) is one table created and interpreted perfectly whereas the second - immediately following the first in the XSL.script as an EXACT copy of the first - results in an error? As i've already said, I've tried really everything. For example the script works also when one of the parts "" is randomly deleted from the script. Removing one of these parts directly makes the script working. Just one of my attempts to understand the thing but this has only shown that none of these parts "cell to end-for-each" includes an error. I'm really desperate and looking forward to being rescued by one of you geniuses :)

    Hah, No worries. The forum software is, well, different.
    What would be better, though, would be a sample ID file, any XSLT/XLT files you use, and a bit of data exactly as you have it (pre-transform state). ZIP it up, upload to say dropbox.com and feel free to send me a private message for the download link.
    Too many times there is something different between samples pasted into a post and the real thing that it is sometimes less useful time-wise. I'll keep it private, of course. Then we can communicate via PMs or email until we can (hopefully) arrive together at a solution, then post what that solution is in the forum to benefit others.
    Thank you, Mike

  • XSL Transformation Design View

    Hello together,
    we find an issue with design view of xsl transformation. When we use the design view serveral configurations and mappings where edited and deleted. For example <xsl:stylesheet version="2.0" change to version="1.0" and the call of EBMHeader-Template was deleted.
    Has anybody the same problem? Our are everybody a "h a r d c o r e" coder and use the source view ;-)
    Greetings from Karlsruhe
    Marcel
    PS: It's a little bit tricky to show the design view. We must switch between diffent xslt to see the design.

    when you open the imported xsd in the browser, you do get a xsd shown up ?
    and when you download the xsd locally and validate it, it is valid?

  • XSL transformation exception when using it in a subprocess

    Hi all
    I want to use a service task in sub-process that call a function with ref_cursor return type, when i map data association from output parameters to data object with xsl transformation an exception raise.
    in other hand my sub-process properties are : multiInstance, parallel , collection ,loop data input use an array , which create instances according to items of given array like http://www.avioconsulting.com/blog/simultaneous-creation-instances-array-oracle-bpm-11g
    by the way this feature works on service task that placed out of sub-process correctly.
    2.

    Hi Fazel,
    XSLT mapping is not working in the unpatched version of Oracle BPM 12c currently available.
    This work around is not great or even close to it, but the only way I've heard of anyone getting it to work is to right mouse click each of the individual children nodes.
    Know this bug has been reported by many people and has had a significant impact to all of us so it might be worth contacting Support to see if there might be a patch.
    Dan

  • XSL Transformation won't run in Web Start

    Hello,
    I am using the javax.xml.transform.Transformer implementation built into Java 1.5.x to transform an XML document into HTML using an XSLT transformation source. This code works perfectly if I run the app outside of Java Web Start. However, if I run the app in web start, the output is partial. More specifically, the XML and the XSLT load just fine in web start (I've confirmed this), but the end result of the Transformation is a properly formatted HTML document with only part of the data -- a bunch of data is missing.
    I have some loops in the XSLT that print out rows in an HTML table with the data I want to see. These loops don't seem to run when I'm in web start, but the rest of the transformation does run.
    I've confirmed this is not working on both Mac OS and Windows, version 1.5.0_06 and 1.5.0_09. So I don't think it is a bug on any particular platform. I am totally stumped by this. The XSL transformation process is doing something different in web start than it does when run from the command line (either different jars are in play, or system properties are different, etc).
    Has anyone else experienced this?
    Thank You,
    Eric

    One thing I'd like to mention...
    My XML document has no namespace defined, and neither does my XSLT transform document. I am just referencing plain old string element names that simply match between the XML and XSLT. This all works fine when the Transform is run from a java app that is started on the command line. Things break down when the app is run via Java Web Start. Could the namespace issue be the problem, however? I don't see how that could be as the code works from a 'normal' java app, but maybe I'm missing something.

  • Not able to do transformation between two schemas

    I have this two very similar schemas, I tried to do a transform activity between them. I kept getting error says 'Failed to save XSL Map, Make sure XSL Map is valid'. I am not even able to map a single element.
    This two schemas are generated from 'Define Native Format schema' using the same sample file. most of elements have same name and type in both files.
    Here is how they look like:
    Schema one:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/FRead"
    xmlns:tns="http://TargetNamespace.com/FRead"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
    <xsd:element name="RECORD1" nxsd:conditionValue="RH">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ReqHeaderId" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LastUpdateDate" type="xsd:date" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;"
    minOccurs="1">
    </xsd:element>
    <xsd:element name="Description" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="Note" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD2" nxsd:conditionValue="RL">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="LineId" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ReqHeaderIdToLine" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LineDescription" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LineNote" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="Quantity" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ExtendedAmount" type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="TotalAmount" type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Schema 2:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/Fwrite"
    xmlns:tns="http://TargetNamespace.com/Fwrite"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
    <xsd:element name="RECORD1" nxsd:conditionValue="RH">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ReqHeaderId" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LastUpdateDate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="Description" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="Note" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD2" nxsd:conditionValue="RL">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="LineNumber" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ReqHeaderIdtoLine" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LineDescription" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="LineNote" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="Quantity" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ExtendedAmount" type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="TotalAmount" type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

    Coul not reprocduce it:
    - created BPEL process.
    - imported the two XSD schema's
    - Ceated two variables and each pointed to an element in the schema.
    - Create transformation:
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="x1.xsd"/>
    <rootElement name="Root-Element" namespace="http://TargetNamespace.com/FRead"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="xs2.xsd"/>
    <rootElement name="Root-Element" namespace="http://TargetNamespace.com/Fwrite"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.2(build 060111.0746) AT [MON OCT 09 10:32:38 CEST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:ns0="http://TargetNamespace.com/FRead" xmlns:tns="http://TargetNamespace.com/Fwrite" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" exclude-result-prefixes="xsl xsd ns0 nxsd tns ldap xp20 bpws ora orcl">
    <xsl:template match="/">
    <tns:Root-Element>
    <tns:RECORD1>
    <tns:ReqHeaderId>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD1/ns0:ReqHeaderId"/>
    </tns:ReqHeaderId>
    <tns:LastUpdateDate>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD1/ns0:LastUpdateDate"/>
    </tns:LastUpdateDate>
    <tns:Description>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD1/ns0:Description"/>
    </tns:Description>
    <tns:Note>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD1/ns0:Note"/>
    </tns:Note>
    </tns:RECORD1>
    <tns:RECORD2>
    <tns:LineNumber>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:LineId"/>
    </tns:LineNumber>
    <tns:ReqHeaderIdtoLine>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:ReqHeaderIdToLine"/>
    </tns:ReqHeaderIdtoLine>
    <tns:LineDescription>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:LineDescription"/>
    </tns:LineDescription>
    <tns:LineNote>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:LineNote"/>
    </tns:LineNote>
    <tns:Quantity>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:Quantity"/>
    </tns:Quantity>
    <tns:ExtendedAmount>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:ExtendedAmount"/>
    </tns:ExtendedAmount>
    <tns:TotalAmount>
    <xsl:value-of select="/ns0:Root-Element/ns0:RECORD2/ns0:TotalAmount"/>
    </tns:TotalAmount>
    </tns:RECORD2>
    </tns:Root-Element>
    </xsl:template>
    </xsl:stylesheet>

  • Is the transformation between XML document and 2 dimensions table important?

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks!

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks! That is all oracle XDK is for. You can transform query results to xml and xml back into RDBMS. Infact Oracle provides much more flexible way than a DB2 extender does. In DB2 you need to give a DAD before you get any XML. Oracle relies on the direct transformation of query results into XML and adds flexibility of XSL ontop of the data.
    You can get more information on XML technology section of OTN.
    Once you write the article can we get a chance to see it.

  • ' Displays after XSL Transform

    I am converting Oracle XMLDB XMLSchema registered XML documents in an XMLTYPE table into HTML by using the database XSLT engine. The characters for & and quote(') are stored in the document as &amp; and &apos;. Unfortunately, after the transformation to HTML these characters display in a browser window (IE6) as &amp; and &apos; instead of as '&' and single quote('). This appears to be due to the fact that HTML does not recognise &amp; or &apos; but will correctly render &#38; and &#39; as '&' and single quote('). I would like to record these characters in my XML documents in XML DB as &#38; and &#39; so they display correctly when rendered to the web. Oracle's XML parser always seems to swap these for &amp; and &apos; whenever I do an XML document update.
    Can anyone tell me if there is another approach to getting & and single quote to display properly after an XSLT transformation to HTML?
    For reference sake our XML documents are stored in Oracle XMLDB (v9.2.0.5 on Solaris) with encode="ISO-8859-1" and we are doing the transformation in the database with the following code:
    CREATE OR REPLACE FUNCTION get_cu_xml(
    p_unitset_id IN NUMBER,
    p_year IN NUMBER)
    RETURN VARCHAR2
    IS
    CURSOR get_xml_cur(
    p_unitset_id NUMBER,
    p_year NUMBER)
    IS
    SELECT extract(VALUE(p),'/UnitSetYear')
    FROM cu_unit_set_years_xml p
    WHERE extractValue(VALUE(p),'/UnitSetYear/UnitSetID') = p_unitset_id
    AND extractValue(VALUE(p),'/UnitSetYear/Year') = p_year;
    xml_doc xmltype;
    xsl_clob CLOB;
    xml_clob CLOB;
    myParser dbms_xmlparser.Parser;
    indomdoc dbms_xmldom.domdocument;
    xsltdomdoc dbms_xmldom.domdocument;
    xsl dbms_xslprocessor.stylesheet;
    outdomdocf dbms_xmldom.domdocumentfragment;
    outnode dbms_xmldom.domnode;
    proc dbms_xslprocessor.processor;
    buf CLOB;
    BEGIN
    OPEN get_xml_cur(
    p_unitset_id,
    p_year);
    FETCH get_xml_cur INTO xml_doc;
    IF (get_xml_cur%FOUND) THEN
    xml_clob := xml_doc.getClobVal();
    xsl_clob := UriFactory.getUri('/home/cu/xsl/UMDetail.xslt').getXML().getClobVal();
    myParser := dbms_xmlparser.newParser;
    dbms_xmlparser.parseBuffer(myParser, xml_clob);
    indomdoc := dbms_xmlparser.getDocument(myParser);
    dbms_xmlparser.parseBuffer(myParser, xsl_clob);
    xsltdomdoc := dbms_xmlparser.getDocument(myParser);
    xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
    proc := dbms_xslprocessor.newProcessor;
    --apply stylesheet to DOM document
    outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
    outnode := dbms_xmldom.makenode(outdomdocf);
    -- PL/SQL DOM API for XMLType can be used here
    dbms_xmldom.writetoclob(outnode, buf);
    RETURN (buf);
    ELSE
    CLOSE get_xml_cur;
    RETURN (NULL);
    END IF;
    end get_cu_xml;

    Jinyu this is almost as if I need a disable-output-escaping="no" attribute for <xsl:for-each> but that appears not to be supported. The main section concerned in the xsl are the lines:
    <xsl:for-each select="n1:Desc">
    <xsl:apply-templates/>
    </xsl:for-each>
    The content in the Desc tag was edited with an XML editor which replaces quote characters with &apos;
    The full text of my xsl file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="http://www.utas.edu.au/cu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html"/>
         <xsl:template match="/">
              <html>
                   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                   <head/>
                   <body>
                        <xsl:for-each select="n1:UnitSetDetails">
                             <h1 align="center">
                                  <xsl:for-each select="n1:UnitSetLabel">
                                       <xsl:apply-templates/>
                                  </xsl:for-each>&#160;<xsl:for-each select="n1:UnitSetTitle">
                                       <xsl:apply-templates/>
                                  </xsl:for-each>
                             </h1>
                             <xsl:if test="n1:UnitMembers/n1:UnitMember[1]/n1:FPTime != n1:UnitMembers/n1:UnitMember[2]/n1:FPTime">
                                  <h2 align="center">
                                       <xsl:for-each select="n1:UnitMembers">
                                            <xsl:for-each select="n1:UnitMember">
                                                 <xsl:for-each select="n1:UnitCode">
                                                      <xsl:apply-templates/>
                                                 </xsl:for-each>(<xsl:for-each select="n1:FPTime">
                                                      <xsl:apply-templates/>
                                                 </xsl:for-each>)&#160; </xsl:for-each>&#160;</xsl:for-each>
                                  </h2>
                             </xsl:if>
                             <p>
                                  <xsl:if test="string-length( n1:SpecialNote ) &gt; 0">
                                       <span style="font-weight:bold; ">SPECIAL NOTE:</span>&#160;<xsl:for-each select="n1:SpecialNote">
                                            <xsl:apply-templates/>
                                       </xsl:for-each>
                                  </xsl:if>
                             </p>
                             <p>
                                  <span style="font-weight:bold; ">OFFERINGS</span>
                                  <table bgcolor="#F3F3F3" border="1" cellpadding="5" cellspacing="0" width="500">
                                       <tbody>
                                            <tr>
                                                 <td width="535">
                                                      <xsl:if test="n1:Offered = &apos;N&apos;">Not Offered</xsl:if>
                                                      <xsl:if test="n1:Offered = &apos;Y&apos;">
                                                           <xsl:for-each select="n1:UnitMembers">
                                                                <table border="0" cellspacing="1">
                                                                     <thead>
                                                                          <tr bgcolor="silver">
                                                                               <td width="35">Unit</td>
                                                                               <td align="left" width="55">Sem 1</td>
                                                                               <td align="left" width="55">Sem 2</td>
                                                                               <td align="left" width="55">Full Yr</td>
                                                                               <td align="left" width="55">Spring</td>
                                                                               <td align="left" width="55">Summer</td>
                                                                               <td align="left" width="55">Winter</td>
                                                                          </tr>
                                                                     </thead>
                                                                     <tbody>
                                                                          <xsl:for-each select="n1:UnitMember">
                                                                               <tr>
                                                                                    <td width="35">
                                                                                         <xsl:for-each select="n1:UnitCode">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:Sem1">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:Sem2">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:SemF">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:Sem5">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:Sem3">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                                    <td align="left" width="55">
                                                                                         <xsl:for-each select="n1:Sem4">
                                                                                              <xsl:apply-templates/>
                                                                                         </xsl:for-each>
                                                                                    </td>
                                                                               </tr>
                                                                          </xsl:for-each>
                                                                     </tbody>
                                                                </table>
                                                           </xsl:for-each>
    Offered in Courses: <xsl:for-each select="n1:OfferedInCourses">
                                                                <xsl:apply-templates select="n1:Course"/>
                                                           </xsl:for-each>
                                                      </xsl:if>
                                                 </td>
                                            </tr>
                                       </tbody>
                                  </table>
                             </p>
                             <p>
                                  <span style="font-weight:bold; ">DESCRIPTION</span>
                                  <xsl:for-each select="n1:Desc">
                                       <xsl:apply-templates/>
                                  </xsl:for-each>
                             </p>
                             <p>
                                  <span style="font-weight:bold; ">WEIGHT:</span>&#160;<xsl:for-each select="n1:UnitMembers">
                                       <xsl:for-each select="n1:UnitMember">
                                            <xsl:for-each select="n1:UnitCode">
                                                 <xsl:apply-templates/>
                                            </xsl:for-each>&#160;<xsl:for-each select="n1:DefaultWeight">(<xsl:apply-templates/>%)</xsl:for-each>&#160;&#160;&#160;&#160; </xsl:for-each>
                                  </xsl:for-each>
                             </p>
                             <xsl:if test="string-length( n1:Assess ) &gt; 0">
                                  <p>
                                       <span style="font-weight:bold; ">ASSESSMENT: </span>
                                       <xsl:for-each select="n1:Assess">
                                            <xsl:apply-templates/>
                                       </xsl:for-each>
                                  </p>
                             </xsl:if>
                             <xsl:if test="string-length( n1:TeachPattern ) &gt; 0">
                                  <p>
                                       <span style="font-weight:bold; ">TEACHING PATTERN: </span>
                                       <xsl:for-each select="n1:TeachPattern">
                                            <xsl:apply-templates/>
                                       </xsl:for-each>
                                  </p>
                             </xsl:if>
                             <xsl:if test="string-length( n1:UnitMembers/n1:UnitMember/n1:WebSup ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:WebDep ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:FullOn ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:ResSupTL ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:ResDepTL ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:VideoConf ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:FlexSched ) &gt; 0
    or string-length( n1:UnitMembers/n1:UnitMember/n1:WPLearn ) &gt; 0">
                                  <p>
                                       <span style="font-weight:bold; ">FLEXIBLE &amp; ONLINE STUDY OPTIONS</span>
                                       <span style="font-weight:bold; ">Note:</span> Class attendance may still be required
                                       <xsl:for-each select="n1:UnitMembers">
                                            <xsl:for-each select="n1:UnitMember">
                                                 <xsl:for-each select="n1:UnitCode">
                                                      <xsl:apply-templates/>
                                                 </xsl:for-each>
                                                 <xsl:if test="string-length( n1:WebSup ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Web supported - <xsl:for-each select="n1:WebSup">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    Online access to some part of this unit online is optional
    </xsl:if>
                                                 <xsl:if test="string-length( n1:WebDep ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Web dependent - <xsl:for-each select="n1:WebDep">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    Some parts of this unit will be taught online
    </xsl:if>
                                                 <xsl:if test="string-length( n1:FullOn ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Fully online - <xsl:for-each select="n1:FullOn">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    This unit is taught entirely online
    </xsl:if>
                                                 <xsl:if test="string-length( n1:ResSupTL ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Resource supported teaching &amp; learning - <xsl:for-each select="n1:ResSupTL">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    Additional resources are provided for your optional use; e.g. video taped lectures
    </xsl:if>
                                                 <xsl:if test="string-length( n1:ResDepTL ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Resource dependent teaching &amp; learning - <xsl:for-each select="n1:ResDepTL">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    Independent study with provided resources replaces face-to-face or other classes (e.g. lectures)
    </xsl:if>
                                                 <xsl:if test="string-length( n1:VideoConf ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Video conferencing - <xsl:for-each select="n1:VideoConf">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    A live video link between campuses is used for at least some teaching in this unit
    </xsl:if>
                                                 <xsl:if test="string-length( n1:FlexSched ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Flexible scheduling - <xsl:for-each select="n1:FlexSched">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    You can attend some classes out of normal teaching hours; e.g. weekend blocks, summer schools etc
    </xsl:if>
                                                 <xsl:if test="string-length( n1:WPLearning ) &gt; 0">
    &#160; <img border="0">
                                                           <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">http://www.utas.edu.au/courses/images/dotarrowB.gif</xsl:text></xsl:attribute>
                                                      </img>&#160;Workplace learning - <xsl:for-each select="n1:WPLearn">
                                                           <xsl:apply-templates/>
                                                      </xsl:for-each>
    This unit involves study in the workplace
    </xsl:if>
                                            </xsl:for-each>
                                       </xsl:for-each>
                                       About Flexible Study Options
                                  </p>
                             </xsl:if>
                             <xsl:if test="count( /n1:UnitSetDetails/n1:Requisites/n1:Requisite ) &gt; 0">
                                  <p>
                                       <xsl:for-each select="n1:Requisites">
                                            <span style="font-weight:bold; ">REQUISITE INFO</span>
                                            <table border="0" cellpadding="3" cellspacing="0">
                                                 <tbody>
                                                      <xsl:for-each select="n1:Requisite">
                                                           <tr>
                                                                <td>
                                                                     <xsl:for-each select="n1:ReqType">
                                                                          <xsl:choose>
                                                                               <xsl:when test=".='PREREQ'">
                                                                                    <xsl:text>Prereq</xsl:text>
                                                                               </xsl:when>
                                                                               <xsl:when test=".='COREQ'">
                                                                                    <xsl:text>Coreq</xsl:text>
                                                                               </xsl:when>
                                                                               <xsl:when test=".='MEXCL'">
                                                                                    <xsl:text>M.Excl</xsl:text>
                                                                               </xsl:when>
                                                                          </xsl:choose>
                                                                     </xsl:for-each>
                                                                </td>
                                                                <td>
                                                                     <xsl:for-each select="n1:ReqText">
                                                                          <xsl:apply-templates/>
                                                                     </xsl:for-each>
                                                                </td>
                                                           </tr>
                                                      </xsl:for-each>
                                                 </tbody>
                                            </table>
                                       </xsl:for-each>
                                  </p>
                             </xsl:if>
                             <xsl:if test="string-length( n1:RequiredTexts/n1:RequiredText ) &gt; 0 or string-length( n1:RecommendedTexts/n1:RecommendedText ) &gt; 0">
                                  <p>
                                       <span style="font-weight:bold; ">TEXTS</span>
                                       <xsl:if test="string-length( n1:RequiredTexts/n1:RequiredText ) &gt; 0">
                                            <xsl:for-each select="n1:RequiredTexts">
                                                 <span style="font-weight:bold; ">Required</span>
                                                 <xsl:for-each select="n1:RequiredText">
                                                      <xsl:apply-templates/>
                                                 </xsl:for-each>
                                            </xsl:for-each>
                                       </xsl:if>
                                       <xsl:if test="string-length( n1:RecommendedTexts/n1:RecommendedText ) &gt; 0">
                                            <xsl:for-each select="n1:RecommendedTexts">
                                                 <span style="font-weight:bold; ">Recommended Texts</span>
                                                 <xsl:for-each select="n1:RecommendedText">
                                                      <xsl:apply-templates/>
                                                 </xsl:for-each>
                                            </xsl:for-each>
                                       </xsl:if>
                                  </p>
                             </xsl:if>
                             <xsl:if test="string-length( n1:Staff ) &gt; 0">
                                  <p>
                                       <span style="font-weight:bold; ">STAFF: </span>
                                       <xsl:for-each select="n1:Staff">
                                            <xsl:apply-templates/>
                                       </xsl:for-each>
                                  </p>
                             </xsl:if>
                        </xsl:for-each>
                   </body>
              </html>
         </xsl:template>
         <xsl:template match="n1:Bold">
              <span style="font-weight:bold; ">
                   <xsl:apply-templates/>
              </span>
         </xsl:template>
         <xsl:template match="n1:BulletList">
              <ul style="margin-bottom:0; margin-top:0; " start="1" type="disc">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ul>
         </xsl:template>
         <xsl:template match="n1:BulletedList">
              <ul style="margin-bottom:0; margin-top:0; " start="1" type="disc">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ul>
         </xsl:template>
         <xsl:template match="n1:Course">
         [<a>
                   <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">/pls/portal/url/page/COURSE_UNIT/UTAS_COURSE_DETAIL?P_COURSE_CODE=</xsl:text><xsl:value-of select="."/></xsl:attribute>
                   <xsl:apply-templates/>
              </a>
              <xsl:text disable-output-escaping="yes">] </xsl:text>
         </xsl:template>
         <xsl:template match="n1:Italic">
              <span style="font-style:italic; ">
                   <xsl:apply-templates/>
              </span>
         </xsl:template>
         <xsl:template match="n1:ListBullet">
              <ul style="margin-bottom:0; margin-top:0; " start="1" type="disc">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ul>
         </xsl:template>
         <xsl:template match="n1:ListLetter">
              <ol style="margin-bottom:0; margin-top:0; " start="1" type="a">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ol>
         </xsl:template>
         <xsl:template match="n1:ListNumber">
              <ol style="margin-bottom:0; margin-top:0; " start="1" type="1">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ol>
         </xsl:template>
         <xsl:template match="n1:ListRoman">
              <ol style="margin-bottom:0; margin-top:0; " start="1" type="i">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ol>
         </xsl:template>
         <xsl:template match="n1:NumberedList">
              <ol style="margin-bottom:0; margin-top:0; " start="1" type="1">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ol>
         </xsl:template>
         <xsl:template match="n1:Unit">
              <xsl:if test="string-length(.) &gt; 0">
                   <a>
                        <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">/pls/portal/url/page/COURSE_UNIT/UTAS_UNIT_DETAIL?P_UNIT_CODE=</xsl:text><xsl:value-of select="."/></xsl:attribute>
                        <xsl:apply-templates/>
                   </a>
              </xsl:if>
         </xsl:template>
         <xsl:template match="n1:ol">
              <ol style="margin-bottom:0; margin-top:0; " start="1" type="1">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ol>
         </xsl:template>
         <xsl:template match="n1:para">
              <p style="padding-bottom:0; padding-top:0; ">
                   <xsl:apply-templates/>
              </p>
         </xsl:template>
         <xsl:template match="n1:table">
              <xsl:apply-templates/>
         </xsl:template>
         <xsl:template match="n1:ul">
              <ul style="margin-bottom:0; margin-top:0; " start="1" type="disc">
                   <xsl:for-each select="n1:li">
                        <li>
                             <xsl:apply-templates/>
                        </li>
                   </xsl:for-each>
              </ul>
         </xsl:template>
    </xsl:stylesheet>

  • Transformation between DS and DSO missing Non-cumulative KYF

    Hi SDN,
    I installed the business content for CML, and am working with 0CML_DELTA_CAP datasource.  I would like to create a transformation between this datasource and DSO 0CML_O03.
    By default, when you install the CML business content, the datasources use the 3.x dataflow concept (transfer rules, infosources, and update rules).
    I would like to use the 7.x dataflow concept and created a transformation between the 0CML_DELTA_CAP datasource and the 0CML_O03 DSO.  In the transformation, it is missing the fields 0CML_B330, 0CML_B340, 0CML_B360, 0CML_B380 in the datatarget.  These key figures are non-cumulative with NCum Value change (0CML_B330 uses 0CML_B331 as value change).  The value change key figures show up in the transformation, but the non-culmulative key figures do not. 
    Does anyone have any ideas why the non-cuml. kyf are not showing up in the transformation?
    Thanks,

    Hi Brendon,
    The non- cumulative key figures are not mapped in the transformation. Only the 'Inflow' and 'Outflow' key figures for the non- cumulative key figure are mapped.
    You can check the property for the non- *** KF in RSD1, where you would find the corresponding inflow and outflow kf. If both of these are mapped in the transformation, the non- *** kf would calculate the value in the report in which it is included as:
    Non-*** KF value = Inflow value - Outflow value.
    Hope this helps.
    Regards,
    Abhishek.

  • XSL Transformation breaks encoding declaration

    The first line in my XML:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    The first line in my XSL:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    Once I do the transformation, I end up with this in my XSL-FO
    file:
    <?xml version="1.0" encoding="ISO8859-1"?> where it
    should be ISO-8859-1.

    You need to watch out for the namespace in the source document:
    You can either specify the namespace and use it when locating paths in the source document (as below) or specify it as the default namespace.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         version="1.0"
         xmlns:xalan="http://xml.apache.org/xslt"
         xmlns:n="http://sirius/xml/common">
    <xsl:template match="/">          
         <SiebelMessage IntObjectFormat="Siebel Hierarchical" IntObjectName="TBS2 OHS Reply" MessageType="Integration Object">
              <TBS2OHSReply>                    
                   <OrderEntry-Orders>                         
                        <BackOfficeErrorText><xsl:value-of select="n:OrderResponseComplex/n:RejectionReasonCode"/></BackOfficeErrorText>
                        <Status><xsl:value-of select="n:OrderResponseComplex/n:AcceptedIndicator"/></Status>
                   </OrderEntry-Orders>
              </TBS2OHSReply>
         </SiebelMessage>
    </xsl:template>
    </xsl:stylesheet>

  • XSL transformation with xsl:import generates exceptions

    I am using the Schematron's basic XSL file basic-schematron.xsl to validate the XML format of one of our data files. The XSL file looks something like this
    ================
    <xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias">
    <xsl:import href="skeleton1-5.xsl"/>
    <xsl:template name="process-prolog">
    <axsl:output method="text" />
    </xsl:template>
    ==================
    But, the validation fails while trying to run the transformation on my Schematron input file using this basic-schematron.xsl with java.lang.NoSuchMethodError:
    ======= OUTPUT ============
    Markup Error: no match attribute on <key> outside <rule>
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: GregorSamsa.process$dash$root(Lcom/sun/org/apache/xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;ILjava/lang/Object;)V
         at GregorSamsa.applyTemplates()
         at GregorSamsa.applyTemplates()
         at GregorSamsa.transform()
         at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:594)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
         at com.solipsa.xsdvalidator.XSDValidator.validateSchematron(XSDValidator.java:137)
         at com.solipsa.xsdvalidator.XSDValidator.validate(XSDValidator.java:181)
         at com.solipsa.xsdvalidator.XSDValidatorUI.jButton1ActionPerformed(XSDValidatorUI.java:244)
         at com.solipsa.xsdvalidator.XSDValidatorUI.access$300(XSDValidatorUI.java:21)
         at com.solipsa.xsdvalidator.XSDValidatorUI$4.actionPerformed(XSDValidatorUI.java:140)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1766)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ============= OUTPUT ==============
    I tried the individual JAXP 1.3 for J2SDK 1.4.2 (Using the -Djava.endorsed.dirs JVM param) and tried the JDK 1.5.0_02 which has JAXP 1.3 inbuilt and they all fail.
    I tried the above with separate Xalan/Xerces jar files, and then it works fine.
    The problem seems to be somthing specific to the JAXP 1.3 environment. I can provide more details, if required. Any help is highly appreciated.

    One morning your code woke up and found it had been transformed into a giant insect.
    But seriously, here's the name of the method that doesn't exist:GregorSamsa.process$dash$rootIs GregorSamsa your class? Maybe your server has an old version of it which is missing that method? (Or: those $ signs look strange to me, maybe they are a mistranslation of some other character?)

  • 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

  • XSL Transformation failure

    Here is a sample of my code:
    I initially have one (non-null & valid - checked that !) node (dataNode). I need to do a XSL transformation on this one using an xsl (non-null & valid String). I can do manually the transform using a program such as XMLSpy and everything's fine !!!
    If I pass the initial Node to transform as a String to the following function it works fine:
    * Return the transformation of an XML through an XSL
    public static String getTransformedXML(String xmlSourceString, String xslSourceString) {
    StreamSource xmlSource;
    StreamSource xslSource;
    StreamResult xmlDestination;
    StringWriter sw;
    try {
    xmlSource = new StreamSource(new StringReader(xmlSourceString));
    xslSource = new StreamSource(new StringReader(xslSourceString));
    xmlDestination = new StreamResult(sw = new StringWriter());
    Transformer thisTransformer = tFactory.newTransformer(xslSource);
    thisTransformer.transform(xmlSource, xmlDestination);
    System.out.println("xxxxx = " + sw.getBuffer());
    return sw.getBuffer().toString();
    } catch (TransformerConfigurationException e) {
    System.out.println("TRANSFORMATION CONFIGURATION ERROR:" + e.getMessage());
    return null;
    } catch (TransformerException e) {
    System.out.println("TRANSFORMATION ERROR:" + e.getMessage());
    return null;
    But I CANNOT get working this code (instead of giving a String, I give a Node):
    * Return the transformation of an XML through an XSL
    public static Node getTransformedXML(Node xmlSourceNode, String xslSourceString) {
    DOMSource xmlSource;
    StreamSource xslSource;
    DOMResult xmlDestination;
    try {
    xmlSource = new DOMSource(xmlSourceNode);
    xslSource = new StreamSource(new StringReader(xslSourceString));
    xmlDestination = new DOMResult();
    Transformer thisTransformer = tFactory.newTransformer(xslSource);
    System.out.println("avant");
    thisTransformer.transform(xmlSource, xmlDestination); // HERE IS WHERE IT CRASHES !!!!
    System.out.println("apres");
    return xmlDestination.getNode();
    } catch (TransformerConfigurationException e) {
    System.out.println("TRANSFORMATION CONFIGURATION ERROR:" + e.getMessage());
    return null;
    } catch (TransformerException e) {
    System.out.println("TRANSFORMATION ERROR:" + e.getMessage());
    return null;
    While using this function, I'm receiving the DOM Exception 3
    TRANSFORMATION ERROR:org.apache.crimson.tree.DomEx: HIERARCHY_REQUEST_ERR : This node is not allowed here !
    Also, does someone knows a way to convert a Node in a String ??? I'd like just to be able to println a node in the form "<parentNode><node1>value</node1><node2>value</node2></parentNode>" for example.
    Please help !!!!
    Thanks a lot in advance to any Java/XML Guru for helping.
    Eg\\*

    Come on ... I cannot believe that nobody saw that before. Isn't there any java/dom guru in here ;-) ?
    Could it be a possibly a bug in the API ?
    Thank you very much.
    Eg\\*

  • XSL Transformation enconding problem?

    Hi everybody.
    I have a strange problem with JDev 9.0.2.829 concerning XSL Transformation:
    I just tried to make the step from JDev 3.2.3 to 9i, imported my existing project and set up JDev 9 for use with XalanJ2 and Xerces2. Everything works fine except:
    If I transform XML data to HTML that contains characters with an ASCII code >127 the whole string appears multiple times (2x or 3x) in the generated HTML.
    The data is read from an Oracle DB with UTF8 encoding, all my stylesheets and JSPs are UTF-8 encoded. JDev9 is set to use UTF-8 encoding.
    No compilation errors, no warnings.
    The same code and stylesheets work perfectly in JDev 3.2.3, deployed into Topmcat 4.0.4 and IBM WebSphere 3.5.4.
    What am I missing?
    Thanks in advance!
    Ralf Steppacher

    OK, I found the culprit.
    The JSPWriter is broken and produces the faulty output when fed with UTF-8 encoded character data. The problem disappears when all character data is buffered in a ByteArrayOutputStream first (without a special encodung schema given) and then written as a string through the JSPWriter.
    Ralf

  • XSL transformation with java binding

    Hi everyone!
    I am trying to implement na XSL transformation that uses java code binding.
    My XSL looks as follows:
    <i><xsl:stylesheet xmlns:myobj="java.lang.System"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms">
    <xsl:param name="myobj"/>
    <xsl:value-of select="string(myobj:currentTimeMillis())"/>
    </xsl:stylesheet></i>
    Everything works fine - current time is displayed.
    But when I try to use my custom java class the compiler returns an exception:
    <i>com.sapportals.wcm.WcmException: com.sap.engine.lib.xml.util.NestedException: Could not load class: ep.UmeLookup required for execution of 'UmeLookup.isReady'</i>
    My second xsl stytesheet with a reference to custom class looks as follows:
    <i><xsl:stylesheet xmlns:ume="ep.UmeLookup" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms">
    <xsl:param name="ume"/>
    <xsl:value-of select="string(ume:UmeLookup.isReady())"/>
    </xsl:stylesheet></i>
    I developed java class (ep.UmeLookup), made a .jar from it, included the jar archive in a Library project and deployed the library to the J2EE engine.
    It looks like my class is not 'visible' in J2EE engine, while in my opinion it should be. Does anyone know how to change that??
    BR / marek

    Ask this lady a question. Maybe she could answer your question.
    XSLT Mapping With JAVA Enhancement ( For Beginners)

Maybe you are looking for

  • How to implement cdc when there are 2 source tbls to populate one trge tb

    I am new to ODI and trying to implement CDC. Using Oracle 10g as source and 11g as target. For one to one source and target all works fine. Problem arises then I try to use two tables as source joined by PK-FK and one TRGT table. In the interface its

  • Syncing problems with Itunes and Ipod Help?

    Okay..I don't even know what's been happening with the newest Ios 5 update for apple products, but since the update, my ipod hasn't been able to synch with Itunes. For example, I manually organize all my music and when I edit the album artist or the

  • Missing JServ parameters in OAS ?

    Hi there, Why doesn't the JServ in OAS support the ApJServEnvVar parameter ? Its supposed to work with JServ 1.1, but using it in the JServ that comes with OAS9i only produces an error message on startup (syntax error). Could it be that, although it

  • LOST old THEMES in iMovie

    After installing iLife 06 I have lost all my old themes in my iMovie. What do I do about it??? G4 15" PB 1.67 Ghz   Mac OS X (10.4.6)  

  • When and Why Did Apple Drop The 160GB Classic Ipod

    Hi I was going to go and finally buy a 160GB Ipod tomrrow.I see they don't even list it anymore on Apples site and Future-shop doesn't even list it on the site. They only make a 120GB Now When Did they Drop this and why??? Also Do any stores still ha