XSLT hard tranformation

Hi to all.
I have a problem. I have an .aspx page (asp.net) in which I generate (by code) a dynamic number of web addresses. The format of these addresses is:
http://hostname/field1/field2/pagename.aspx?id=idValue
where field2 is not always the same...it changes (generated by code...it'n not important to know what is its value...it's important to know it is always between field1 and pagename.aspx).
I would like to transform this format of address in the following format:
http://hostname/field1/field3/pagename.aspx?id=idValue&idField2=field2
where field3 is fixed and value of field2 (a string) is passed as parameter of querystring.
Could you help me giving some code xslt to do this transformation?
I'm a novice of xslt...
Please help...
Many thanks!!!

XSLT 1.0 or 2.0?
It probably makes a difference so figured I'd ask first.

Similar Messages

  • XMLTYPE Transform works differently in Oracle 10.1 and 11.2

    We are migrating our applications from Oracle 10.1g to 11.2g. We have a number of PL/SQL routines that transform incoming/outgoing XML using the XMLType Transform method. The XSLTs that we use do not seem to work in 11.2. For example, the code below is a simplification of what we're doing. This sample code uses hard-coded input and xslt to illustrate the point. The same code has very different outputs when run in 10.1 and 11.2. In 10.1, the transformation works. It also works using files in an xml tool. In 11.2, none of the input XML is transformed. The only output is the extra <sd:StandardBusinessDocument... that is hard-coded into the xslt as a wrapper.
    E.g.
    {code}
    declare
    out_sbd xmltype := xmltype('<OT_SBD_HEADER>
        <HEADER_VERSION>1.0</HEADER_VERSION>
        <SENDERS>
            <OT_SENDER_RECEIVER>
                <IDENTIFIER>COGSD</IDENTIFIER>
                <IDENTIFIER_AUTHORITY>urn:olgr.qld.gov.au:cogs</IDENTIFIER_AUTHORITY>
            </OT_SENDER_RECEIVER>
        </SENDERS>
        <RECEIVERS>
            <OT_SENDER_RECEIVER>
                <IDENTIFIER>PORTAL</IDENTIFIER>
                <IDENTIFIER_AUTHORITY>urn:olgr.qld.gov.au:portal</IDENTIFIER_AUTHORITY>
            </OT_SENDER_RECEIVER>
        </RECEIVERS>
        <DOCUMENT_INDENTIFICATION>
            <STANDARD>urn:olgr.qld.gov.au</STANDARD>
            <TYPE_VERSION>1.1</TYPE_VERSION>
            <INSTANCE_IDENTIFIER>c11ab0c6-22e7-4132-88f8-f81e88cde75c</INSTANCE_IDENTIFIER>
            <TYPE>licenceInformation</TYPE>
            <CREATION_DATE>2012-05-30T13:55:41.167125+10:00</CREATION_DATE>
        </DOCUMENT_INDENTIFICATION>
        <BUSINESS_SCOPE>
            <OT_SBD_HEADER_SCOPE>
                <SCOPE_TYPE>get</SCOPE_TYPE>
                <SCOPE_INSTANCE_IDENTIFIER>GET_GAMING_STATISTICS_DATA</SCOPE_INSTANCE_IDENTIFIER>
            </OT_SBD_HEADER_SCOPE>
        </BUSINESS_SCOPE>
    </OT_SBD_HEADER>');
    transformed_out_sbd xmltype;
    sbd_header_out_xslt xmltype := xmltype('<?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    This file was generated by Altova MapForce 2011r2sp1
    YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
    OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
    Refer to the Altova MapForce Documentation for further details.
    http://www.altova.com/mapforce
    -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
      <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
      <xsl:template match="/">
        <sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <xsl:for-each select="*[local-name()=&apos;OT_SBD_HEADER&apos; and namespace-uri()=&apos;&apos;]">
            <xsl:variable name="var1_DOCUMENTINDENTIFICATION" select="*[local-name()=&apos;DOCUMENT_INDENTIFICATION&apos; and namespace-uri()=&apos;&apos;]"/>
            <xsl:variable name="var2_MANIFEST" select="*[local-name()=&apos;MANIFEST&apos; and namespace-uri()=&apos;&apos;]"/>
            <xsl:variable name="var3_resultof_cast" select="string($var1_DOCUMENTINDENTIFICATION/*[local-name()=&apos;MULTIPLE_TYPE&apos; and namespace-uri()=&apos;&apos;])"/>
            <StandardBusinessDocumentHeader>
              <HeaderVersion>
                <xsl:value-of select="string(HEADER_VERSION)"/>
              </HeaderVersion>
              <xsl:for-each select="SENDERS">
                <xsl:variable name="var4_OTSENDERRECEIVER" select="OT_SENDER_RECEIVER"/>
                <Sender>
                  <Identifier>
                    <xsl:attribute name="Authority">
                      <xsl:value-of select="string($var4_OTSENDERRECEIVER/IDENTIFIER_AUTHORITY)"/>
                    </xsl:attribute>
                    <xsl:value-of select="string($var4_OTSENDERRECEIVER/IDENTIFIER)"/>
                  </Identifier>
                </Sender>
              </xsl:for-each>
              <xsl:for-each select="RECEIVERS">
                <xsl:variable name="var5_OTSENDERRECEIVER" select="OT_SENDER_RECEIVER"/>
                <Receiver>
                  <Identifier>
                    <xsl:attribute name="Authority">
                      <xsl:value-of select="string($var5_OTSENDERRECEIVER/IDENTIFIER_AUTHORITY)"/>
                    </xsl:attribute>
                    <xsl:value-of select="string($var5_OTSENDERRECEIVER/IDENTIFIER)"/>
                  </Identifier>
                </Receiver>
              </xsl:for-each>
              <DocumentIdentification>
                <Standard>
                  <xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/STANDARD)"/>
                </Standard>
                <TypeVersion>
                  <xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/TYPE_VERSION)"/>
                </TypeVersion>
                <InstanceIdentifier>
                  <xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/INSTANCE_IDENTIFIER)"/>
                </InstanceIdentifier>
                <Type>
                  <xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/TYPE)"/>
                </Type>
                <MultipleType>
                  <xsl:value-of select="string(((normalize-space($var3_resultof_cast) = &apos;true&apos;) or (normalize-space($var3_resultof_cast) = &apos;1&apos;)))"/>
                </MultipleType>
                <CreationDateAndTime>
                  <xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/CREATION_DATE)"/>
                </CreationDateAndTime>
              </DocumentIdentification>
              <Manifest>
                <NumberOfItems>
                  <xsl:value-of select="string((string($var2_MANIFEST/NUMBER_OF_ITEMS)))"/>
                </NumberOfItems>
                <xsl:for-each select="$var2_MANIFEST/MANIFEST_ITEMS">
                  <xsl:variable name="var6_OTMANIFESTITEM" select="OT_MANIFEST_ITEM"/>
                  <ManifestItem>
                    <MimeTypeQualifierCode>
                      <xsl:value-of select="string($var6_OTMANIFESTITEM/MIME_TYPE)"/>
                    </MimeTypeQualifierCode>
                    <UniformResourceIdentifier>
                      <xsl:value-of select="string($var6_OTMANIFESTITEM/RESOURCE_IDENTIFIER)"/>
                    </UniformResourceIdentifier>
                    <Description>
                      <xsl:value-of select="string($var6_OTMANIFESTITEM/DESCRIPTION)"/>
                    </Description>
                  </ManifestItem>
                </xsl:for-each>
              </Manifest>
              <xsl:for-each select="BUSINESS_SCOPE">
                <xsl:variable name="var7_OTSBDHEADERSCOPE" select="OT_SBD_HEADER_SCOPE"/>
                <BusinessScope>
                  <Scope>
                    <Type>
                      <xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_TYPE)"/>
                    </Type>
                    <InstanceIdentifier>
                      <xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_INSTANCE_IDENTIFIER)"/>
                    </InstanceIdentifier>
                    <Identifier>
                      <xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_IDENTIFIER)"/>
                    </Identifier>
                  </Scope>
                </BusinessScope>
              </xsl:for-each>
            </StandardBusinessDocumentHeader>
          </xsl:for-each>
        </sd:StandardBusinessDocument>
      </xsl:template>
    </xsl:stylesheet>
    BEGIN
    transformed_out_sbd := out_sbd.transform (sbd_header_out_xslt); -- transform out_sbd using the xslt hard-coded above
    INSERT INTO z_clob_log (id, clob_name, clob_desc, clob_doc)  --- log the output to a clob column in a table
    SELECT (select nvl(max(id),0)+1 from _clob_log),
                   to_char(sysdate,'yyyymmdd hh24:mi:ss')||' - TRANSFORMED OUT_SBD',
                   transformed_out_sbd.getClobVal
    FROM dual;
    COMMIT;
    END;
    {code}
    In 10.1, the output is as expected, the same as doing the transformation using files in an xml tool.
    {code}
    <sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <StandardBusinessDocumentHeader>
        <HeaderVersion>1.0</HeaderVersion>
        <Sender>
          <Identifier Authority="urn:olgr.qld.gov.au:cogs">COGSD</Identifier>
        </Sender>
        <Receiver>
          <Identifier Authority="urn:olgr.qld.gov.au:portal">PORTAL</Identifier>
        </Receiver>
        <DocumentIdentification>
          <Standard>urn:olgr.qld.gov.au</Standard>
          <TypeVersion>1.1</TypeVersion>
          <InstanceIdentifier>c11ab0c6-22e7-4132-88f8-f81e88cde75c</InstanceIdentifier>
          <Type>licenceInformation</Type>
          <MultipleType>false</MultipleType>
          <CreationDateAndTime>2012-05-30T13:55:41.167125+10:00</CreationDateAndTime>
        </DocumentIdentification>
        <Manifest>
          <NumberOfItems/>
        </Manifest>
        <BusinessScope>
          <Scope>
            <Type>get</Type>
            <InstanceIdentifier>GET_GAMING_STATISTICS_DATA</InstanceIdentifier>
            <Identifier/>
          </Scope>
        </BusinessScope>
      </StandardBusinessDocumentHeader>
    </sd:StandardBusinessDocument>
    {code}
    In 11.2, none of the original xml document is included in the output, only the <sd: StandardBusinessDocument ..../>
    {code}
    <sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    {code}
    The same occurs using the SQL XMLTransform function, e.g. applying the following with the above xml and xslt, except it outputs a separate closing tag </sd:Standard...>
    select xmltransform(out_sbd, sbd_header_out_xslt) into transformed_out_sbd from dual;
    Q: Any ideas? Are there any changes in 11g 11.2 that require major changes to xslt?
    We have a lot of rewriting to do if we cannot get this to work!

    Hi Eduardo,
    Report this as a bug to Oracle Support.
    The problem lies in the namespace-uri() function : the comparison with an empty string is not resolved correctly so no node is ever selected in the first xsl:for-each.
    If you need a workaround, there are a few you can test :
    1) If input documents actually are in no namespace (such as in your sample), remove every namespace-uri() occurrences from the stylesheet.
    2) The other way around, you can give your input document a dummy namespace and now reference it in the stylesheet. The namespace-uri() test will work in this case.
    3) Replace occurrences of namespace-uri() with a slightly more elaborate test that'll handle empty namespace specifically, for example :
    <xsl:variable name="nsuri"></xsl:variable>
    ( namespace-uri()=$nsuri or (not($nsuri) and not(namespace-uri())) )
    Since you're working with generated stylesheets, I understand that none of the above options are really satisfactory.
    If I had to workaround the issue, I'd probably go with the 2nd option which involves a smaller amount of refactoring.

  • Loading multiple tables from one xml-file

    I've got one xml-file containing information which should be loaded into multiple database tables. How can I do that?

    Please use XSLT to tranform to XML file with XSU recognized format and separated for different table input.
    You may refer to Example in book "Building Oracle XML Applications".
    null

  • [OSB] xml to json

    Hi all,
    we need to transform xml into json and as far as we know josn is not supported directly in OSB.
    We found in http://www.bramstein.com/projects/xsltjson/ a stylesheet to transform XML to JSON but when we try to import that XSLT into OSB 10.3.1 we got an error ...
    Do you know/recommend any other XSLT/Xquery tranformation for converting xml into json ?
    Thanks and regards
    ferp

    Hi all,
    found also http://www.bjelic.net/2012/08/01/coding/convert-xml-to-json-using-xslt/ and now the xlst is imported into OSB.
    When we tested directly via test console the xlst, it works ... but when we invokei through the pipeline we don't get any result:
    Assign [ Xslt Resource: xml_to_json_prj/xmlToJson
    Input Document: $body/*
    Variable Names And Bindings:
    to [ result ]
    ... we are trying to understand where is the problem ....
    Thanks and regards
    ferp

  • Webservice returning string (but I need XML for XSLT Tranformation)

    Hello everybody,
    I have configured an ip with a webservice. So far so good - everything works fine.
    Now I want to transform the output of the webservice with xslt. The webservice returns the data as a String in form of XML.
    e.g.
        <!XML>
    <!String>
    <!String> </b>
    </Bill> <!XML>
    But XSLT don't find e.g the node , because it is a String. I think the right way is first to transform the String into XML. I tried this step with Java with the method
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
    but it doesn't work. I am not sure, if this is the right way.I have searched for a code sample, but I didn't find anything.
    What do you think?
    Do you have a code sample?
    This would be great!
    Best regards,
    Jürgen

    Hello Bhavesh,
    thx very much for your help.
    Here is my Java Mapping:
    public class ModusLebenTransformation implements StreamTransformation
    public static byte[] readStream(InputStream in, boolean close)
        throws IOException
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        int c = in.read();
        while (c > -1)
            out.write(c);
            c = in.read();
        out.flush();
        byte[] result = out.toByteArray();
        out.close();
        if (close)
            in.close();
        return result;
    public void setParameter(Map map) {
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
       try {
    TransformerFactory tFactory = TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
       StreamResult result = new StreamResult(outputStream);
    String input = new String(readStream(inputStream,true));
    transformer.transform(new StreamSource(input), result);      
      } catch (Exception e) {
                 throw new StreamTransformationException("Mapping failed", e);
    But I don't know if this code is enough to convert the String( from the webservice) into XML.
    And then I would like to use XSLT for transformation in a new mapping step.
    Do you think this is possible?
    Do you have a code sample, that will tranform the String (from the webservice) into XML?
    This would be very helpful!
    regards,
    Jürgen

  • XSLT Tranformation - XSL in a separate file?

    I'm using XSLT Tranformation service to transform an incoming XML document to a different format.  I've tested this successfully using a literal value for my XSL, but I'd like to store the XSL in a separate file rather than storing it as a literal string in the process properties.  However, I don't see any way to reference an XSL file in the process properties.  The only options are XPath expression, variable (string), literal value, and template.
    Alternatively, maybe there is a way to read the contents of an XSL file into a string variable which can then be used in the XSLT Tranformation?

    Hi Samuli!
    SECXML_DSIGNATURE doesn´t exist in my system  
    I ´m working with .txt files . I sign it with SSF_KRN_SIGN_BY_AS but I need to recover only the sign in a separated file.

  • Any helpers please on JAVA XSLT Tranformation

    I have an XML file and a XSLT file How using a Java class can I tranform the document to XHTML (i.e html in XML format)

    Follow this link:
    http://xml.apache.org/xalan-j/samples.html
    Good luck.

  • Issue in tranforming Idoc structure using XSLT mapping

    Hi,
    I am working on the XSLT Mapping to transform the IDoc xml to the desired format.
    Source structure single Idoc:
    EDI_DC40 record
    E1EDKxx records
    E1EDPxx records
    E1EDSxx records
    suppose I have 4 E1EDP01 records, of which 2 are Original and next two are corresponding Correction E1EDP01 records.
    I want the target Idoc to be:
    EDI_DC40 record
    E1EDKxx records and for (E1EDK14/ORGID = G2O)
    E1EDPxx records  (1st Original E1EDP01 segment)
    E1EDSxx records
    E1EDKxx records for (E1EDK14/ORGID = G2)
    E1EDPxx records  (1st corresponding correction E1EDP01 segment)
    E1EDSxx records
    E1EDKxx records for (E1EDK14/ORGID = G2O)
    E1EDPxx records  (2nd Original E1EDP01 segment)
    E1EDSxx records
    E1EDKxx records for (E1EDK14/ORGID = G2)
    E1EDPxx records  (2nd Corresponding correction E1EDP01segment)
    E1EDSxx records
    so correction segments follows original segments.
    All the E1EDSxx records are identical. remaining all the other segments are Idential except the above changes.
    correlate original and correction E1EDP01 segments is through POSEX of Original = HIPOS of Correction..
    bold segments represents Original records
    Italic segments represents correction records
    How to achieve the above scenario. I am finding issue in generating and correlating the E1EDP01 segments using <key> element. and changing the vales in E1EDK14
    Also does XSLT supports Dynamic Configuration for File Name ?
    Regards
    Edited by: Varun Reddy on Jul 7, 2011 12:44 PM

    Also does XSLT supports Dynamic Configuration for File Name ?=   Yes.
    refer - http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm

  • XSLT Tranformation problem - empty output lines

    Hi experts,
    I have a following problem with the XSLT transformation.
      FIELD-SYMBOLS: <tab> TYPE table,
                     <line> TYPE ANY,
                     <tabz> TYPE ANY TABLE. 
      CREATE DATA a_table LIKE i_table.
      ASSIGN a_table->* TO <tabz>.
      GET REFERENCE OF <tabz> INTO g_xml_l-value.
      g_xml_l-name = a_templid.
      APPEND g_xml_l TO g_xml_t.
      TRY.
          CALL TRANSFORMATION z_ddu_xslt_test
          SOURCE XML g_tab_cal                            "OK file was loaded
          RESULT (g_xml_t).                                     "Seems to be ok, but I am not sure if g_xml_l was referenced OK
        CATCH cx_root INTO a_rif_ex.
          a_text = a_rif_ex->get_text( ).
          MESSAGE a_text TYPE 'E'.
      ENDTRY.
    Result is, that <tabz> have a two (correct) empty lines, but of course the data should be filled ...
    When I replace <tabz> to some kind of simple structured table, result is like above ...
    Thanks for help.

    Problem solved.
    There was internal problem with the I_TABLE structure.
    Regards.
    Edited by: Daniel Duras on Jul 15, 2010 3:34 PM

  • QTI Tranformation with XSLT

    I have a lot of trouble getting Dreamweaver 8 to transform an
    QTI formatted XML. Basically, it just produces an empty page.
    Here is the XSLT sample, it couldn't be simpler, the only XSL
    line is bolded.
    <?xml version="1.0" encoding="iso-8859-1"?><!--
    DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#169;">
    <!ENTITY reg "&#174;">
    <!ENTITY trade "&#8482;">
    <!ENTITY mdash "&#8212;">
    <!ENTITY ldquo "&#8220;">
    <!ENTITY rdquo "&#8221;">
    <!ENTITY pound "&#163;">
    <!ENTITY yen "&#165;">
    <!ENTITY euro "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl
    utput method="html" encoding="iso-8859-1"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1"/>
    <title>Untitled Document</title>
    </head>
    <body>
    <xsl:value-of select="item/@title"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Here is the QTI formatted XML (text.xml). Only one item
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <questestinterop xmlns="
    http://www.imsglobal.org/xsd/ims_qtiasiv1p2">
    <item ident="brgitem_test__1001" title="Commensal
    microbes are commonly found within certain organs in the human
    body, yet they do not cause disease. However, such microbes can act
    as opportunistic pathogens if given access to other human tissue.
    Which of the following species of microbes is fou">
    <itemmetadata>
    <qtimetadata>
    <qtimetadatafield>
    <fieldlabel>Subsubtopic</fieldlabel>
    <fieldentry>Anaerobic flora</fieldentry>
    </qtimetadatafield>
    <qtimetadatafield>
    <fieldlabel>Subtopic</fieldlabel>
    <fieldentry>Microbiology</fieldentry>
    </qtimetadatafield>
    <qtimetadatafield>
    <fieldlabel>Topic</fieldlabel>
    <fieldentry>General Principles</fieldentry>
    </qtimetadatafield>
    </qtimetadata>
    </itemmetadata>
    <presentation>
    <material>
    <mattext>Commensal microbes are commonly found within
    certain organs in the human body, yet they do not cause disease.
    However, such microbes can act as opportunistic pathogens if given
    access to other human tissue. Which of the following species of
    microbes is found only as an opportunistic
    pathogen?</mattext>
    </material>
    <response_lid ident="resp_001_01"
    rcardinality="Single">
    <render_choice shuffle="No">
    <response_label ident="A">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font
    color="#000000"><i>Propionibacterium</i></font>]]>
    </mattext>
    </material>
    </response_label>
    <response_label ident="B">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font
    color="#000000"><i>Bacteroides</i></font>]]>
    </mattext>
    </material>
    </response_label>
    <response_label ident="C">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font
    color="#000000"><i>Pseudomonas</i></font>]]>
    </mattext>
    </material>
    </response_label>
    <response_label ident="D">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font
    color="#000000"><i>Fusobacterium</i></font>]]>
    </mattext>
    </material>
    </response_label>
    <response_label ident="E">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font
    color="#000000"><i>Clostridium</i></font>]]>
    </mattext>
    </material>
    </response_label>
    </render_choice>
    </response_lid>
    </presentation>
    <resprocessing>
    <outcomes>
    <decvar defaultval="0"/>
    </outcomes>
    <respcondition>
    <conditionvar>
    <varequal respident="resp_001_01">A</varequal>
    </conditionvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    <respcondition>
    <conditionvar>
    <varequal respident="resp_001_01">B</varequal>
    </conditionvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    <respcondition>
    <conditionvar>
    <varequal respident="resp_001_01">C</varequal>
    </conditionvar>
    <setvar action="Set">1</setvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    <respcondition>
    <conditionvar>
    <varequal respident="resp_001_01">D</varequal>
    </conditionvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    <respcondition>
    <conditionvar>
    <varequal respident="resp_001_01">E</varequal>
    </conditionvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    <respcondition>
    <conditionvar>
    <other respident="resp_001_01"/>
    </conditionvar>
    <displayfeedback linkrefid="general"/>
    </respcondition>
    </resprocessing>
    <itemfeedback ident="general">
    <material>
    <mattext texttype="text/html">
    <![CDATA[<font color="#000000"><b>The answer
    is C </b></font><font
    color="#000000"><i>Pseudomonas</i></font> are
    gram-negative aerobic motile rods that are not normally found
    within healthy tissue. <i>Propionibacterium</i>
    organisms are anaerobes found in the skin.
    <i>Bacteroides</i> are anaerobes that are found in the
    mouth, colon, and vagina. <i>Fusobacterium</i>
    organisms are anaerobes that live in the mouth.
    <i>Clostridium</i> organisms are anaerobes that are
    found in the colon.]]>
    </mattext>
    </material>
    </itemfeedback>
    </item>
    </questestinterop>
    When I hit preview in the XSLT file, the result is a blank
    page?!?!?!?!?!?
    Help please!!!!!

    Russ,
    Two XSLT 1.0 attributes that might allow you to accomplish what you want are:
    <xsl:output cdata-section-elements="documentation">
    This XSLT element tells the XSLT processor to always output text nodes within documentation elements as CDATA sections. Hence, with this
    <xsl:output> element and the template:
    <xsl:template match="documentation">
      <xsl:copy>
        <xsl:apply-templates/>
      </xsl:copy>
    </xsl:template
    your original example would be output as itself:
    <documentation><![CDATA[<p>Some text</p>]]></documentation>
    It gets more complicated if you want to illustrate CDATA sections in your documentation element.
    <xsl:value-of disable-output-escaping="yes">
    tells the processor to output those special characters that are interpreted by an XML parser as themselves instead of as one of the XML representations of those characters. Thus, you can try:
    <xsl:template match="documentation">
      <xsl:copy>
        <xsl:value-of disable-output-escaping="yes" select="."/>
      </xsl:copy>
    </xsl:template
    --Lynne

  • How to manually write log file when tranform xslt by using Transformer?

    I want to ask experts that are there any way to write the information(such as template name or number of template used) into log file while performing transformation with javax.xml.transform.Transformer.
    Below is my sample code
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    // declare and assign value of transform, source, and result
    transformer.transform(source, result);
    Thanks for advance

    I think it will be from FDM, if I remember correctly FDM will generate a text file in the background and then load data into essbase using the text file.
    The codes at each line are standard essbase generated codes which relate to an operation e.g. 1013162 = Received Command [Calculate] from user [%s] using [%s]
    If you have a search on the web you will be able to find a full list of codes from numerous locations.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • XSLT Mapping on ABAP Engine

    Hi All,
    I am trying to implement an XSLT mapping on the ABAP Engine. I went to the Transformation Workbench(SE80).I have created 4 levels of packages (Structure->Main->then 2 more levels) and  included Package Interface SAI_TOOLS in 'Use Accesses' tab.
    I have also set com.sap.aii.repository.mapping.additionaltypes=R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)
    in the Exchange Profile.
    Now I want to create the tranformation (ST or XSLT) so that I can see it in the Repository.
    At which package level(1st to 4th), should I right-click and go to 'Create->More->Transformations' so that I can see this XSLT  Mapping program in the repository?
    I have followed all the links from help.sap.com but I am unable to get the desired result, i.e. see my Mapping in the Repository when I choose Mapping Program of type  'XSL->ABAP Engine', from the drop-down box in Interface Mapping.
    Kindly help.
    Regards,
    Puloma.

    Hi Naveen,
    I did as you told, i.e. keyed in the name of the ABAP Transformation program (mapping) name.I have not written any namespace for the Mapping program in the Interface Mapping Design, just the Program name.
    When I execute my mapping from se80, it works perfectly.
    I created this Transformation program at the topmost level (i.e. Structure package level).
    But when I execute my scenario, I get the following runtime error in sxmb_moni:
    Error in mapping program zpc_transfom2 (type R3_XSLT, kernel error ID UNCAUGHT_EXCEPTION).
    What is wrong? Did I create the transformation program at the wrong level?
    Regards,
    Puloma.

  • Graphical Mapping Vs XSLT mapping Vs Java Mapping Vs ABAP Mapping

    Hi Experts,
              I have a question regarding different message mapping options available in XI namely
    Graphical Mapping
    XSLT mapping
    Java Mapping
    ABAP Mapping
    Q1: Which amoung the above mappings is the best and why?
    Q2: On what cases Graphical, XSLT, Java and ABAP Mapping should be used?
    Q3: Is it true that graphical and XSLT mappings are converted into Java class internally?
    Kindly help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi,
    There is no hard and fast rule for using the mapping techniques.
    Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve mult hiearchical mapping requirement. and context handling.
    Java and XSLT mapping are used when graphical mapping cannot help you.
    When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks.  XSLT can lead to a bad perfrormance if the Source XML is huge.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
    For further info on each of the mapping, refer to these links,
    Graphical Mapping,
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    XSLT Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    Also, check this thread for more info,
    Different types of Mapping in XI
    Am not sure about XSLT , but , yes graphical mapping is converted into java classes internally and these classes use SAX parsing as well.
    Regards,
    Bhavesh

  • Java ,abap and XSLT mapping

    Hi all,
               can any one provide some material on java ,ABA and XSLT mapping(as i got requirement on my current project)..
    thanks in advance.
    regards
    krish..

    Hi
       All mapping related links
    There is no hard and fast rule for using the mapping techniques.
    Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
    Java and XSLT mapping are used when graphical mapping cannot help you and you have multilevel hierarchy structure data.
    When the choice is between Java and XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perform something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but, DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exactly easy to develop either.
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    And please go through this link which clearly explains the 3 types of mappings.
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    regards
    Prasad

  • XSLT Exception

    Hello,
      I am creating a XSLT Mapping ( ABAP Engine).
    I have created my tranformation, its getting executed successfully when I test it in SE80.
    Now when I am using the same transformation in the Integration Repository I am getting the below error.
    Application Error.
    'R3_XSLT, kernel error ID UNCAUGHT_EXCEPTION '
    How can I catch this exception in XSLT.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm">Error Handling in XSLT</a>
    Above link didnot help me!!!
    Regards,

    Hello,
    Thanks for the quick reply.
      I am calling a method in a class in SAP and then retriving the values from few ZTables and using them further in my mapping.
    I have resolved the issue! error is with my second mapping, XSLT was working fine sort of overlooked the trace.
    Thanks for your time on this.
    Regards,

Maybe you are looking for

  • Russian text not appearing correctly in excel file while needs to be mailed

    Hi all,            I am sending vendor data to each vendor to their email id through excel files in a report. This report does not display any of this data. For this iam using the FM. SO_DOCUMENT_SEND_API1. The excel sheet consists of Russian text. T

  • TA1 Acknowledgement not being generated.

    Hi All, I have a requirement for the Inbound 820 to generate 999 and TA1 Acknowledgement. 999 is fine but TA1 is not being generated. I tried changing the ISA14 element to '1' from '0'(by referring http://docs.oracle.com/cd/E28280_01/user.1111/e10229

  • Does WLS 5.1 support private key passwords like WLS 6 does ?

    WebLogic 6.0 supports private key passwords as described here http://e-docs.bea.com/wls/docs60/adminguide/cnfgsec.html#1053139, summarized here; "When using PKCS-8 encrypted private keys, you need to enable the Use Encrytped Keys field on the SSL tab

  • 12.1.1 NLS and DataInstall

    Dear Hussein, Please confirm me the below steps for applying Arabic NLS, DataInstall and hrglobal patch in 12.1.1 Arabic NLS: 1.Installed 12.1.1 and selected Arabic language during installation as well as Arabic character set 2. Go to OAM and registe

  • Mm01/mm02 different views, bdc

    Hello Abapers, Is there a table that we can query, or a function that we can use to find out what views and only the applicable views (e.g. Basic Data 1, Basic Data 2, Purchasing, MRP 1, etc.) that are available for a certain material? Any help would