Transformation XSLT to an XMLList Flex object

Hello list,

I ask a structure quite complex xml from my Web server via a Web service method.
This xml file is received in flex as an XMLList object. Now I need transform the complex structure
in a more simple, that serves as a dataProvider to a tree.

I'm new on XSL and almost had no idea, I just found out that you must specify the template.xsl file in the original xml file... So now I got no xml file but an xmllist object. How to make this work? do I have to call another function, when I received my xml that does the work somehow?

Thanks for your help.

Best regards
DZihan

I don't think Flex no matter what support for XSL - XSL is not part of the XML language, it is a separate technology. It is your browser has an XSL Transformer, but this is something different.

Your options are: apply a transformation server-side or use the features of E4X in Flex (which are quite powerful and will be probably enough). Refer to the XML of the manual «Programming Actionscript 3»

Tim

Tags: Flex

Similar Questions

  • AMFPHP-> flex object remote Manager error events

    I use amfphp and I want that it returns an error that the flex object handler remote error will resume. At the moment I can only get the result Manager to do whatever it is in flex.

    Hello

    Try to throw an exception in the remote method. For example,.

    function inverse($x) {
        if (!$x) {
            throw new Exception('Division by zero.');
        }
        else return 1/$x;
    }

  • Could not parse the file to start. Error on line 15. at the start of Transformation XSLT generator

    I am running PeopleTools 8.55 but when I try to run XSLT Transformation Builder I get error not able to analyze the startup file. Error on line 15...

    What is the problem?

    the solution is to edit the jnlp file locally:

    glance to the argument of the tag:

    http://myhost.net:8500/PSIGW/HttpListeningConnector? = GETXSLT operation &program = CUST_V1. PRINCIPAL. V2TOV1

    the problem is that this parameter is incorrect XML... due to the &, replace by the following text and you will not have the error:

    http://myhost.net:8500/PSIGW/HttpListeningConnector? = GETXSLT operation &program = CUST_V1. PRINCIPAL. V2TOV1

  • Transformation XSLT Mapper in PeopleTools 8.55 Builder

    Any changes to the XSLT Transform Builder in PeopleTools 8.55 Mapper?

    Here are the mistakes in the screenshots:

    2016-01-13_16h24_53.png

    2016-01-13_16h24_33.png

    2016-01-13_16h24_26.png

    It was a long trip, but here is my final solution:

    -One - Install JDeveloper Studio

    1. install Jdeveloper Studio 11.1.1.9.0

    2. install SOA Composite Editor 11.1.1.0.0.99.99

    3. copy C:\JDeveloper11g\Middleware\jdk160_29 in C:\JDeveloper11g\Middleware\jdeveloper\jdk

    4. copy C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xdk_11.1.0 to C:\JDeveloper11g\Middleware\jdeveloper\modules\oracle.xdk_11.1.0 to

    5. copy C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xmlef_11.1.1 to C:\JDeveloper11g\Middleware\jdeveloper\modules\oracle.xmlef_11.1.1

    6. copy C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.javatools_11.1.1 to C:\JDeveloper11g\Middleware\jdeveloper\modules\oracle.javatools_11.1.1

    --B - go XSLT Mapper Application Designer

    1. configure PeopleTools

    Start Manager Configuration PeopleTools

    Click on Crystal/Bus. Interlink/JDeveloper tab

    Define Jdeveloper home: C:\JDeveloper11g\Middleware\jdeveloper

    place JDeveloper launch Mapper Classpath: C:\JDeveloper11g\Middleware\jdeveloper\ide\extensions\oracle.ide.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\extensions\oracle. IDE.xmlef.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\extensions\oracle. BPM.mapper.jar; C:\JDeveloper11g\Middleware\jdeveloper\integration\lib\bpm-IDE-common.jar; C:\JDeveloper11g\Middleware\jdeveloper\ide\lib\javatools.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\lib\xmleditor.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar

    --C - XSLT Mapper from your browser from XSLT Transform Builder (PeopleTools > Integration Broker > Service Utilities > XSLT Transform Builder)

    1 configure system variables

    Click Control Panel > system > advanced system settings

    Click Environment Variables

    In the section system variables, create a set following variables 2

    JDEV_HOME = C:\JDeveloper11g\Middleware\jdeveloper

    JDEV_MAPPER_CLASSPATH = C:\JDeveloper11g\Middleware\jdeveloper\ide\extensions\oracle.ide.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\extensions\oracle. IDE.xmlef.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\extensions\oracle. BPM.mapper.jar; C:\JDeveloper11g\Middleware\jdeveloper\integration\lib\bpm-IDE-common.jar; C:\JDeveloper11g\Middleware\jdeveloper\ide\lib\javatools.jar; C:\JDeveloper11g\Middleware\jdeveloper\jdev\lib\xmleditor.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar; C:\JDeveloper11g\Middleware\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar

    2 configure the Java security

    Make sure you have jdk 1.8.0_72 or more (jre 1.8.0_72, but has not been tested)

    Click on Control Panel > Java

    Click the Security tab

    You can select the level of security 'Very high' or 'high '.

    but you must add the url of your application in the list of Site exceptions

    example for FIPSMOD1, add http://Host

  • Transformation XSLT of OSB dynamically

    Hello!

    XSLT is stored in the database.
    I get xslt db via EJB.
    How to use the xslt for transformation in osb? Can use standard preview for the transformation?

    Thank you
    Lam

    Already discussed here.

    OSB: Dynamic XSLT

    Thank you
    Vijay

  • How to get into an "if" clause condition in the transformation XSLT mapping window?

    Suppose I opened a window of XSLT transformation Mapper and draw a "line" of a source to an element element target.
    Now I have a right-click on the target element and select "Add XSL Node-> 'if' in the context menu. The 'if' node appears the target of packaging item.

    Fine so far. Now, I want to clarify the 'if' condition (for example, that the copy should be done only if the source of the string value contains a 'aaa' pattern)

    How can I get it? I (double-) clicked on all the "if" clause line icons
    Context menu don't watch either entered no "enter the condition.

    So EXACTLY how can I enter the 'if' condition otherwise?

    Peter

    You must do this on the source code. Click on the source, there is "".

    "Define your test condition =" "/ tns:input1 = / tns:input2 ' or check if you string source contains"abcd", i.e. xsl: if test =" contain(/tns:source_column1,'abcd'). "

    hope this will help

  • Transformation XSLT in JDeveloper?

    I am trying to use JDeveloper to create a XML stylesheet along the lines of this example here , but I'm running a problem when I try to set the XML file as the execution target. When you add project properties, I don't get the option of XSLT under Run as in the tutorial. I can get to an XSLT transformation under settings launch when I edit Run, but then she'll tell me that the XML file is not a target executable. I just want to use JDeveloper to apply a style sheet to an XML file and display the results. This tutorial assumes that this is feasible. Can someone tell me how to make this happen? Maybe my project needs to be of a certain type? I'm making it a generic project for the moment. I use JDeveloper 10.1.3.4.0

    Thank you

    Don't click the XML file and choose run - click XSL and choose run.

  • JDeveloper Studio or JDeveloper Java Edition for the Transformation XSLT generator?

    Do you need to 'JDeveloper Studio' or 'JDeveloper Java Edition' for the manufacturer of processing XSLT?

    The fact is that the Java edition is much smaller, so if you just use it to run the XSL Mapper, then, the Java edition could be a better option.

    Here is the solution, if you install JDeveloper 11 g 'Java Edition' and check the version installed in 'About' you will see (example):

    -Oracle IDE 11.1.1.9.40.66.73

    If you try to install any version of the SOA Composite Editor, you will get the message:

    Impossible to install this update. It requires other extensions that are not installed, or that are installed, but incompatible:

    -oracle.studio min 11.1.1.9.40.66.73 = not installed

    -oracle.j2ee min 11.1.1.9.40.66.73 = not installed

    So the conclusion is that you must install JDeveloper 'Studio' version.

    / Stéphane.

  • Photoshop CC 2014.2.2 transforms the video layers in linked objects?

    Hi guys,.

    I recently in a project for a client that consisted of a series of video adjustments that had to be delivered in the format psd for reasons of adaptability.

    But when, on their end, I put all the video layers turned out be the missing links. I never intend to create linked objects, I wanted everything included in the psd itself.

    The small logo of the string does not appear in the layers panel, I didn't 'place' all files (in the menu) and I do not press any keys while dragging the layers (lock shift is usually enabled).

    I'm on the 2014.2.2 CC, there is a update out, but I would like to understand what I did wrong before the update. Here's a screenshot I think can help (or not at all).

    Screen Shot 2015-07-17 at 15.10.57.png

    I really want to understand what I did wrong and not to repeat it in the future. I have my customer has caused serious delays and lost a lot of credibility because of this. Is there a way I can turn off the related feature and only works with embedded video material?

    Any response will be highly appreciated!

    Thanks to all in advance.

    Best,

    Daniel

    Video is always connected, never incorporated into Photoshop. Because video files can easily reach terabytes and tend to be modified several times outside of Photoshop, they are related.

    The only time where you can have all the embedded video is if you use diapers for executives (i.e.: simple image animations).

  • Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

    Hello!
    I m facing a problem with the help of oraext: query-database.

    In my transformation im try the following (Simplified):
    <xsl:template match="*">
      <xsl:variable sqlQuery="select ....."/>
      <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    {code}
    
    This always results in +some+ +other+ +val+ !!
    I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.
    
    {code}
    <xsl:template match="*">
      <xsl:variable sqlQuery=select ....."/>
      <xsl:variable name="storeSec">
        <ROWSET>
         <ROW num="1">
           <STORE_PART_SECTION>A100</STORE_PART_SECTION>
         </ROW>
         <ROW num="2">
           <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
         </ROW>
        </ROWSET>
      </xsl:variable>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    How to get the correct value when you use oraext:query - database?

    How should you exit? Several item ID with each having a value of the result set?
    If Yes, then you can try following:

     
                        
                            
                        
                             
                                  
                             
                        
                            
    
  • Transform a slide with interaction of objects (hide/show) as a result of the quiz?

    I have a slide with some interactions.  The user will click Yes/No and will reveal an object.  This turns into a quiz - or at least be the subject of a follow-up?

    Thank you!

    Jay

    12-9-2013 11-49-03 AM.png

    Each interactive object can have a fixed score (see reports accordion). All marked objects will be visible in the Panel Advanced Interaction (F9) and the total score as well. I think that you will have to implement advanced certain actions to be sure to have the correct score. I've been blogging a lot about custom questions.

  • ORA: getPreference in an xslt file to transform the activity as input.

    Hello
    We have the following situation:

    We send input to a system fields target via a transformation (xslt) the value is '01486 '. We want to use an ora:getPreference('myPrefSecurityCode') to add the field to the plan of the configuration when we deploy the process. Because the field will change to test environment for the prod environment.

    "I assigned the ora:getPreference('myPrefSecurityCode') to a variable of type string named ' < SubscriberCode > < SubscriberCode xmlns =" "" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:ns = "http://www.w3.org/2001/XMLSchema" xsi: type = "ns:string" > 01486 < / SubscriberCode > < / SubscriberCode >.
    As you can see above, the field is assigned without any problem.


    But when I try to assign the field in a Transform (xslt), I get the following error:


    < bpelFault > < faultType > 0 < / faultType > < selectionFailure xmlns = "http://schemas.xmlsoap.org/ws/2003/03/business-process/" > < a name = "summary" part > < summary > query string XPath returns zero node.
    The activity assign the query node returns zero node.
    Either the data node or in the node xpath query was invalid.
    According to BPEL4WS 1.1 spec section 14.3, check the value of line number 371 node in the BPEL source.
    < / Summary > < / piece > < / selectionFailure > < / bpelFault >

    Edited by: 849200 29/04/2013 06:43

    Hello

    To pass the values of variables in the XSLT file, create an element in one of the schema of the source of your XSLT.
    Use an action entitled before this transformation, and assigns the value of var preferably to the newly created variable.
    Use this value to the variable to map to the required target node.

    I hope this helps.

    Kind regards
    Karan
    http://learn-oraclesoa.blogspot.com/

  • By passing a Flex SWC object

    I have no problem passing a query to my Flex application object and use it to fill a datagrid (collection arraycollection)... However, I want to use same data for updating the database when the user clicks on save and instead of a loop through each line (call my remoteobject each time) is it possible that I can format the information in a table, table collection or another form of flex object and pass the ti to another cfc function to do the update?

    I've read elsewhere that its possible to do with a remoteobject, however, my attempts were futile and I can't find an example of anywhere.

    I can't find a solution anywhere and help would be appreciated.

    Here is a simple example, just to write real quick. That's how I normally go on something by passing an array of elements to Coldfusion. I hope this helps.


    http://www.Adobe.com/2006/mxml"layout ="absolute">


    Import mx.controls.Alert;
    Import mx.managers.CursorManager;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;

    [Bindable] private var apples: Array = new Array)
    {name: "Apple Normal", color: "Red"},
    {name: 'Sweet Apple', color: 'GOL'},
    ({name: 'Bad Apple', color: 'Brown'}) ;

    private function createApples (): void {}
    AppleManager.Create_Apples (apples);
    }

    private void createApplesResult(event:ResultEvent):void {}
    Alert.Show ("You have successfully added of apples in our system.", "Notice of system");
    }

    ]]>

    <>
    ID = "AppleManager".
    destination = "ColdFusion".
    source = "CFCs. AppleManager ".
    point endpoint = "your end here point."
    showBusyCursor = "true".
    Fault = "CursorManager.removeBusyCursor (); Alert.Show (event.fault.message, "Reporting system")">








  • Communication between objects separate flex

    Hello

    I want to have an invisible flex object as part of the menu of my website and have a certain page, shown in the other context, in which there will be an another flex control with all the necessary controls to control the object invisible flex. Is this possbile and how do I go about this?

    Thank you.

    Yes! It is possible, that you can use the ExternallInterface class and some javascript functions to communicate with each other.

  • Passing parameter (s) to the fLex SWF compiled object

    Recently, I found that by copying sources HTML generated by Flex in my own CFM page, I could add some process on the server side.

    Now, I wonder if it is possible to change a parameter - or more than one - to the SWF object generated and compiled with Flex?

    In the example; Let's say that I work in ColdFusion with a range of Session variable to store the current wording of the navigation of the user. I want to transmit this information in the SWF (Flex) in order to use this information through the different components of Flex that I use in the same SWF.

    I found some little help on the NET talking flashvars. I don't really understand how to use what he has a name for the parameter variable.

    I also found another link which talked about the addition of parameter at the end of the file name of the SWF file:

    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    ID = "home" width = "100%" height = "100%".
    codebase =" http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" > "
    < param name = "movie" value = "accueil.swf? "SessionLang = #session.lang #" / >
    < param name = "quality" value = "high" / >
    < param name = "bgcolor" value = "#869ca 7" / >
    < param name = "allowScriptAccess" value = "sameDomain" / >
    < embed src = "accueil.swf? ' Quality SessionLang = #session.lang # "="high"bgcolor =" # ca 869, 7.
    Width = "100%" height = "100%" name = "home" align = "middle".
    play = "true".
    Loop = "false".
    allowScriptAccess = "sameDomain".
    Type = "application/x-shockwave-flash".
    pluginspage =" http://www.adobe.com/go/getflashplayer_fr" > "
    < / embed >
    < / object >

    That's what I tried, but by forcing another value for Session.Lang, nothing happens. I'm suspicious that this is really working this way!

    If anyone has any information on the passage of a SWF Flex object setting, let me know.

    You should be able to use the flashvars to do this. This means that you need to change the code page of the flashplayer hosting html javascript.

    There is a JavaScript method called AC_FL_RunContent script that must be modified as follows:

    NOTE: This is not an example of ColdFusion, so please make changes accordingly.

    AC_FL_RunContent)
    'src', "Flex/CorporationContactDataEntry,"
    "width", "100%."
    "height", "100%."
    "align", "middle",
    'id', 'CorporationContactDataEntry ',.
    'quality', 'high ',.
    "bgcolor", "#869ca 7."
    'name', 'CorporationContactDataEntry ',.
    "flashvars", " < %="" #="" flashvars="" %=""> ,"
    "allowScriptAccess", "sameDomain",.
    'type', "application/x-shockwave-flash"
    "pluginspage", "" http://www.adobe.com/go/getflashplayer_fr " "
    );

    the tag < %#flashvars="" %=""> finally is resolved to a string of name/value pairs as follows:

    name1 = value1 & name2 = value2 & name3 = value3

    In your Flex Application, you then have access to these settings as follows:

    Application.application.Parameters.name1

    and so on.

    Shiv.

Maybe you are looking for

  • PS Express im iPhoto

    ICH really ps express die Fotos zu bearbeiten. iPhoto more sharp Bilder nicht doch in der Mediathek. Was muss ich machen?

  • Update 3/3 does not

    My mobile son works on vista professional and he did an automatic update, the other day, however, when he started the next time he did updates 1 and 2 but got to 3 and a 0% complete and guard just starting and stopping down.  For the hard drive light

  • How to synchronize the Contacts for Dell Axim X 3 with Windows Vista.

    Original title: synchronization I have a Dell Axim X 3 with lots of contacts I want to sync with my Windows Vista laptop.  How can I do this?

  • Windows Media Player/Center hangs or does not

    wimdows media player/Center Windows media player hangs up most of the time

  • Slow logon due to errors with PNShell

    Hello I'm in the process of slow logon caused bij pnshell when I was able to connect a VDI. The versions that I use are: Looking for immediate Provisioning Service x 64 8.0.306.1427 Tools of quest for the managed desktop (64-bit) I have generated a l