Calling an xsl file in another

Hi,
I have 2 xsl files
nested_flow.xsl
and substring_flow.xsl.
my query is how can i call 1 xsl file in another.
i need to perform a mapping whixh is actually present in the other file(substring_flow.xsl)
im calling substring_flow.xsl in nested_flow.xsl
so i'm using
<xsl:include href="substring_flow.xsl"/>
when i use it in xi it gives me an error.
Is there any other way by means of which i can call one xsl in another.
<u>nested_flow.xsl:</u>
<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
<xsl:include href="substring_flow.xsl" />
- <xsl:template match="/">
- <substring_node_input>
- <InputString>
<xsl:value-of select="ns0:nested_node_input/Person/LName" />
</InputString>
</substring_node_input>
- <nested_node_output>
- <Emp>
- <Innitial>
<xsl:value-of select="ns0:substring_node_output/OutputString" />
</Innitial>
</Emp>
</nested_node_output>
</xsl:template>
</xsl:stylesheet>
<u>substring_flow.xsl:</u>
<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
- <xsl:template match="/">
- <substring_node_output>
- <OutputString>
<xsl:value-of select="substring(ns0:substring_node_input/InputString,0,1)" />
</OutputString>
</substring_node_output>
</xsl:template>
</xsl:stylesheet>

Hi,
I have 2 xsl files
nested_flow.xsl
and substring_flow.xsl.
my query is how can i call 1 xsl file in another.
i need to perform a mapping whixh is actually present in the other file(substring_flow.xsl)
im calling substring_flow.xsl in nested_flow.xsl
so i'm using
<xsl:include href="substring_flow.xsl"/>
when i use it in xi it gives me an error.
Is there any other way by means of which i can call one xsl in another.
<u>nested_flow.xsl:</u>
<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
<xsl:include href="substring_flow.xsl" />
- <xsl:template match="/">
- <substring_node_input>
- <InputString>
<xsl:value-of select="ns0:nested_node_input/Person/LName" />
</InputString>
</substring_node_input>
- <nested_node_output>
- <Emp>
- <Innitial>
<xsl:value-of select="ns0:substring_node_output/OutputString" />
</Innitial>
</Emp>
</nested_node_output>
</xsl:template>
</xsl:stylesheet>
<u>substring_flow.xsl:</u>
<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
- <xsl:template match="/">
- <substring_node_output>
- <OutputString>
<xsl:value-of select="substring(ns0:substring_node_input/InputString,0,1)" />
</OutputString>
</substring_node_output>
</xsl:template>
</xsl:stylesheet>

Similar Messages

  • How do you call two actionscript files in another as3

    My problem is that i what to call two actionscript files in another one, but cant do it.
    This is are the two codes i want to play at the same time in my scene:
    Code 1
    * Inventory System Manager
    * DATE: 07/24/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.Sprite;
        import com.freeactionscript.inventorySystem.InventorySystem;
        public class Main extends Sprite
            private var _inventorySystem:InventorySystem;
            public function Main()
                //InventorySystem(reference to stage in the fla)
                _inventorySystem = new InventorySystem(this);
    Code 2
    * Player Movement - 8-way keyboard
    * VERSION: 1.0
    * DATE: 9/23/2010
    * AS3
    * UPDATES AND DOCUMENTATION AT: http://www.FreeActionScript.com
    package 
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.KeyboardEvent;
        import flash.ui.Keyboard;
        public class Main extends MovieClip
            // player
            private var _player:MovieClip;
            // player settings
            private var _playerSpeed:Number = 4;
            // movement flags
            private var _movingUp:Boolean = false;
            private var _movingDown:Boolean = false;
            private var _movingLeft:Boolean = false;
            private var _movingRight:Boolean = false;
             * Constructor
            public function Main()
                createPlayer();
                // add listeners
                stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);           
                stage.addEventListener(KeyboardEvent.KEY_DOWN, myOnPress);
                stage.addEventListener(KeyboardEvent.KEY_UP, myOnRelease);
             * Creates player
            private function createPlayer():void
                _player = new Player();
                _player.x = stage.stageWidth / 2;
                _player.y = stage.stageHeight / 2;
                stage.addChild(_player);
             * EnterFrame Handlers
            private function enterFrameHandler(event:Event):void
                // Move up, down, left, or right
                if ( _movingLeft && !_movingRight )
                    _player.x -= _playerSpeed;
                    _player.rotation = 270;
                if ( _movingRight && !_movingLeft )
                    _player.x += _playerSpeed;
                    _player.rotation = 90;
                if ( _movingUp && !_movingDown )
                    _player.y -= _playerSpeed;
                    _player.rotation = 0;
                if ( _movingDown && !_movingUp )
                    _player.y += _playerSpeed;
                    _player.rotation = 180;
                // Move diagonally
                if ( _movingLeft && _movingUp && !_movingRight && !_movingDown )
                    _player.rotation = 315;
                if ( _movingRight && _movingUp && !_movingLeft && !_movingDown )
                    _player.rotation = 45;
                if ( _movingLeft && _movingDown && !_movingRight && !_movingUp )
                    _player.rotation = 225;
                if ( _movingRight && _movingDown && !_movingLeft && !_movingUp )
                    _player.rotation = 135;
                //i will do
                if (_player.x > 550)
                    _player.x = 550;
                    _player.x = +_player.x;
                else if (_player.x < 50)
                    _player.x = 50;
                    _player.x = +_player.x;
                if (_player.y > 350)
                    _player.y = 350;
                    _player.y = +_player.y;
                else if (_player.y < 50)
                    _player.y = 50;
                    _player.y = +_player.y;
                trace ("Valor en x: " + _player.x);
                trace ("Valor en y: " + _player.y);
             * Key Press Handlers
            public function myOnPress(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = true;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = true;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = true;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = true;
                        break;
             * Key Release Handlers
            public function myOnRelease(event:KeyboardEvent):void
                switch( event.keyCode )
                    case Keyboard.UP:
                        _movingUp = false;
                        break;
                    case Keyboard.DOWN:
                        _movingDown = false;
                        break;
                    case Keyboard.LEFT:
                        _movingLeft = false;
                        break;
                    case Keyboard.RIGHT:
                        _movingRight = false;
                        break;
    Hope you help me =)

    You need to have a reference to an instance of one class in the other class or the other way round in order to communicate between the two. Alternatively you can call a static function of one class from an instance of the other class.
    Anyway, I suggest reading about object-oriented programming first (can be even a Java book) to understand how things work. Such basics really help and it's never shame to read it.
    Good luck

  • Error in interface mapping  when calling a xsl file

    Hi,
    Using XSLT I am calling another XSL file  into my main xsl file.I have added both the zip files into  a single zip file and imported in my imported archive.But when i do the interface mapping testing i get an error 'Transformer configuration exception occurred when loading XSLT xslt1.xsl'.
    What should i do?

    Dear Sidhvin,
    First test your XSLT in the editor (for example STYLUS STUDIO). In Editor run your mapping and have a look whether you are getting the required result.
    if you are  getting the required result of XSLT then use it in the scenario and after importing this activate it and then run the interface.
    hope this time you will not get any error
    Thanks
    Sandeep
    PS: if helpful Reward points

  • Calling an XSL file in an XSL file

    Hi,
    I'm importing xsl file into xi and uisng it for mapping.
    My query is im using a function in my mapping which is actually present in another xsl file
    how can i call the other xsl file in my present xsl file which is the base file for the mapping

    i'll be a bit more specific
    i'm using
    xsl mapping
    i have 2 map files
    nested_flow.xsl is my main map file
    and substring_flow.xsl is the map file im calling
    <u>nested_floe.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
      <xsl:include href="substring_flow.xsl" />
    - <xsl:template match="/">
    - <substring_node_input>
    - <InputString>
      <xsl:value-of select="ns0:nested_node_input/Person/LName" />
      </InputString>
      </substring_node_input>
    - <nested_node_output>
    - <Emp>
    - <Innitial>
      <xsl:value-of select="ns0:substring_node_output/OutputString" />
      </Innitial>
      </Emp>
      </nested_node_output>
      </xsl:template>
      </xsl:stylesheet>
    <u>substring_flow.xsl:</u>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:Testns" xmlns:javamap="java:com.satyam.Javaclass">
    - <xsl:template match="/">
    - <substring_node_output>
    - <OutputString>
      <xsl:value-of select="substring(ns0:substring_node_input/InputString,0,1)" />
      </OutputString>
      </substring_node_output>
      </xsl:template>
      </xsl:stylesheet>
    im trying to use the substring function present in the second xsl file in the master xsl
    if u can observe the first xsl (nested_flow.xsl)
    i included substring_flow.xsl using the xsl:include and and i tried to map the input to this substring function(Person/LName to InputString) and inturn oputput from substring to the output side field (Output string to Emp/Innitial)
    but when i test the mapping it throws a Transformer error.
    "Transformer configuration exception occurred when loading XSLT"
    I'm importing both the map files in a single zip file into xi. and i'm using the master xsl file(nested_flow.xsl) in the interface mapping where it is reqd to specify the mapping.
    Message was edited by: Sidharth Velagapudi
    Message was edited by: Sidharth Velagapudi

  • How to call a .swf file in another .swf file?

    Hi all,
    I am new to flash and ActionScript3.0. Presently, I am using
    flash CS3 and the code I need is in ActionScript 3.0.
    Suppose, I have a .swf file(viz., file1.swf). Now, i am
    developing one more .swf file(viz., file2.swf), in which I need
    to execute file1.swf when a CLICK event is listened on button
    present in second file(i.e., file2.swf).
    In how many ways, we can get this.
    And, please I need code very urgently.
    Help me.

    You use the Loader class to load external content like swf's
    or images. If
    you click the main entry for Loader Class in the AS3 help,
    there's an
    example of loading an external swf.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Process include XSL file

    when use XSLProcessor.processXSL method process a xsl file include another XSL file
    error message:
    Error while processing include XSL file (no protocol: eprice.xsl)

    in the main xsl file i write:
    <xsl:import href="eprice.xsl"/>
    to import a xsl file.
    in the java program XSLTransform.java i write:
    XSLTransform.class.getResourceAsStream("mainxslfile");
    to load the main xsl file.
    null

  • How to load xsl-files out of jar-files

    Hi,
    I have included some xsl-files into a jar-file. I can access this files with the following code-snipped if the jar-file is local on my harddisk:
    ClassLoader.getSystemClassLoader().getResource("pcodeliste.xsl").openStream()
    But the problem is that I use this jar-file as a part of a j2ee-application (it's a ear-file). After deploying this ear-file to my application-server (oc4j) I get a null-pointer exception if I call the xsl-file with the code above.
    Can anybody help me how to change this code or how to change the j2ee-application to have access to this files??
    Thank you very much
    Tobias

    Hi Rykk!
    Thanks for the answer, but it does not work since the jar, containing my file is inside an ear.
    Greets,
    Jay

  • Calling a thread from a cvi code file to another code file

                Hello, 
                I want to call a thread from a labwindows/cvi code file to another labwindows/cvi code file. Namely, my thread function (GraphLoop) is in 'TestsModel.c' ; but I will call the thread in 'Tests.c' .  My code in 'Tests.c' is in the following;
    int CVICALLBACK GraphLoop (void *functionData);
    int GraphLoopId;
    int callbackDataGraphLoop;
    int CVICALLBACK CBBasla (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    switch (event)
    case EVENT_COMMIT:
    CmtInstallThreadPoolCallback (poolHandle, EVENT_TP_THREAD_BEGIN, GraphLoop, callbackDataGraphLoop, GraphLoopId);
    if (tiklandiE3631ACihazinaBaglan == 0 && tiklandi34401ACihazinaBaglan == 0) // 'E3631A Cihazına Bağlan' ve '34401A Cihazına Bağlan' tuşlarına basılmamışsa uyarı verir.
    MessagePopup ("Uyarı", "Lütfen cihaz bağlantısını kontrol ediniz.");
    else
    if (tiklandiKaydet == 0)
    MessagePopup ("Uyarı", "Lütfen ayarları kaydediniz.");
    else
    SetCtrlAttribute (Testler, PnlTestler_BASLA, ATTR_DIMMED, 1); // 'Başla' tuşunu pasif hale getirir.
    SetCtrlAttribute (Testler, PnlTestler_BASLA, ATTR_DISABLE_PANEL_THEME, 1); // 'Başla' tuşunun etiketini pasif hale getirir.
    SetCtrlAttribute (Testler, PnlTestler_BITIR, ATTR_DIMMED, 0); // 'Bitir' tuşunu aktif hale getirir.
    SetCtrlAttribute (Testler, PnlTestler_BITIR, ATTR_DISABLE_PANEL_THEME, 0); // 'Bitir' tuşunun etiketini aktif hale getirir.
    CmtNewThreadPool (DEFAULT_THREAD_POOL_HANDLE, &poolHandle); //Yeni bir thread oluşturur.
    CmtScheduleThreadPoolFunction (poolHandle, GraphLoop, NULL, &GraphLoopId); // GrapLoop thread fonksiyonunu başlatır.
    break;
    case EVENT_RIGHT_CLICK:
    break;
    return 0;
              I take that errror after executing this code;
      error:Undefined symbol '_GraphLoop' referenced in "f:\Tests.obj"
             Please, can you help me for my question?
             Regards...

    Hello Eren,
    I assume this is a link error.
    Do you have TestsModel.c file included in your project?
    Constantin.

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How to call swf file within another swf file using xml

    hii,
    I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3. i need some logics. thanks in advance

    This is the AS3 forum and your posting involves AS2 code.  You should repost in the AS2 forum...
    http://forums.adobe.com/community/flash/flash_actionscript
    Aside from that, your problem might lie in the following lines...
    _root.createEmptyMovieClip("sub_container1", 1);
    loadMovie(sub_SWFPath[1].attributes.url, "sub_container1");
    You create the new movieclip, sub_container1,  in the _root, but you do not assign the loadMovie to load into that same movieclip (unless you have a _lockroot = true assigned in your sub-swf).  In any case, you should repost in the AS2 forum to pursue resolution.

  • Getting error can not find xsl file at esb:///esb_projects/...

    Hi,
    I have one esb project 'A' that is invoking another esb 'B' that contains transformation. Routing rules are defined from server deployed service no soap service call. So in esbsvc file it puts xsl url as esb:///esb_projects/....
    When i deploy A and test it, i get error unable to find xsl file in path esb:///esb_projects/...
    I tried to look into this issue, it looks like all files are stored under temp_xxx_localhost directory.
    did any one find solution for it?
    Note: this issue will come only if you have transformation at B service.

    Have you checked the logs in enterprise manager on deployment?
    Can you run esb B independently? Again via the em choose the web service end point to test.
    I have not had a problem with a missing xsl. You can create test cases for xsl transformations within JDeveloper which will enable to test the validity of you transformation. But, it sound like you are already beyond this point.

  • Getting error can not find xsl file esb:///ESB_PROJECTS/...

    Hi,
    I have one esb project 'A' that is invoking another esb 'B' that contains transformation. Routing rules are defined from server deployed service no soap service call. So in esbsvc file it puts xsl url as esb:///esb_projects/....
    When i deploy A and test it, i get error unable to find xsl file in path esb:///esb_projects/...
    I tried to look into this issue, it looks like all files are stored under temp_xxx_localhost directory.
    did any one find solution for it?
    Note: this issue will come only if you have transformation at B service.

    Have you checked the logs in enterprise manager on deployment?
    Can you run esb B independently? Again via the em choose the web service end point to test.
    I have not had a problem with a missing xsl. You can create test cases for xsl transformations within JDeveloper which will enable to test the validity of you transformation. But, it sound like you are already beyond this point.

  • I had two files named graphics and I replaced one graphics file with another which was the wrong one.  Can I undo my replacement?  I move the wrong one, which was on my desktop into another one and that is when it as me if I wanted to replace the file.

    I accidently replaced a file with another.  Can I undo my action? 
    I had two files named graphics.  One was on my desktop and another was within another file called solitarie.  I move the one on my desktop (wrong file) into the solitarie file and was asked if I wanted to replace the graphics file in the solitarie folder (the correct one).  I said yes accidently and then remembered that I had made a mistake.  If I use undo, it only move the wrong file back to the desktop.  Is there an undo of replace?

    Sorry, but's that's why you get the warning. "Replace" means just that - the new file over-writes the old one. There is no undo.

  • How to call a help file from a WAD Template button

    Hi All
    I need to implement a button in a web template when I press the button it displays another HTML or text file it is mainly on help on the report.
    I am just wondering how to store this HTML or text file in the system and what function to implement in the web template button ti display this text or HTML when the button is pressed.
    Thanks
    Karen

    Hi Karen,
    Please try this out:
    With WAD 3.5 it's easy. You could use javascript function: window.open().
    window.open("/sap/bw/Mime/Customer/.../file.htm","NewWindow","width=750,height=700,left=100,top=100");
    Try using the SCRIPT Item in WAD 7.0. You can use the same code within the SCRIPT Item and call the function which has been defined in the Script Item, in the XHTML part of the Template.
    It may help.
    Or put the file in another web template and on click of a button, the new template opens up and displays the content of the file.
    Not sure though if the latter one would be useful, its just a thought.
    Hope it Helps,
    Regards,
    Amit

  • How do I move content from one file to another ?

    Hi,
    I have two separate DVD Studio Pro files that I created a while back (single-sided DVD).
    Now I want to put them both on a dual layer DVD. However, I can't figure out for the life of me how to copy content between files. I don't want to "recreate" one of the DVDs from scratch.
    How do I move the menus, tracks, stories, etc from one DVD Studio Pro file to another ?
    Thanks,
    Damon

    You do not need to move the media into the new project assuming all the media is available and on the same hard drive. Usually I keep all DVD SP projects and media on an external drive so it is easy-ish to do. Of course if you copy the assets into the folder for a project it makes thingss easier to move around to other drives. In other words I will create a Poject folder called "MYPROJECT" and in there I will placefolders "MYPROJECTM2Vs", "MYPROJECTAC3S", "MYPROJECTGRAPHICS" etc so if I have to move projects to other computers easier to re-link. Takes up a bit more room if you use the same asset in more than one project but with the costs of Drives so low right now it is worth the lkess hassle to me...
    What is the error you are getting?

Maybe you are looking for

  • Problem watching trailers in Apple Web Site only

    hi, suddenly i have an odd prolbem in watching trailers at Apple's web site. when im loading a trailer, it just indicating that the trailer is loaded and nothing happens, and the QuickTime Player is not even starting. i have the latest version of qui

  • Excel spreadsheet formatting

    I'm looking at an indesign document with a fully formatted table that has come from excel.  All cell styles and colours are correct and each cell is editable.  I did this 2 years probably in ID CS4 (or2).  I'm now in CS5. I go to place - choose the x

  • Syntax error in Merge Query

    This is the first time i am using Merge Query and the query is ;MERGE saSalesStockRecevedSub AS T    USING @tableSRN AS S    ON (T.prodCode=S.prodCode AND T.packtypeID=S.packtypeID AND T.batchCode=S.batchCode and T.stockReceiveMainID=S.stockReceiveMa

  • Concern during the creation of a menu contextual

    Hello has all, I am a french developer using Flex/ActionScript for the development of application to work. I have a concern during the creation of a menu contextual. I have could contater that a contextMenuItem with the value "delete" is not posted i

  • External sound Mac OSX 10.9.2

    Hello, I have a very strange problem. The following is happening: I received some mp4 files which I want to show on a projector and I want to hear the sound from an amplifier with the minijack plug. When I DO NOT plug in the minijack there is sound f