Where to put xsl:variable definition

I apologize in advance if this is a really obvious question/answer for most of you.
I want to use this definition code to create a variable called color:
*<xsl:variable name="color" select="'red'"/>*
I want to include this code in my RTF template to display the contents of that variable:
*<?$color?>*
My question is this: where do I put the definition code? I've tried it in several different places, none of which have worked: at the top of my RTF template, on the top row of the table where I'm referring to it, and so forth.
When I run the preview, I get the typical error screen with this key line: Variable not defined: 'color'.

The subtemplate idea works quite well (mostly).
In my subtemplate, I defined this:
<?template:Format1?>
<?if:number(Sales) gt 1000000?><?attribute@incontext:color;'red'?> <?attribute@incontext:font-weight; 'bold'?><?end if?>
<?end Format1?>
In my template field, I call Format1 like this:
<?call@inlines:Format1?><?end call?>
Sure enough, my values are shown in bold red. Yay!!!
But now I've got extra vertical space in the affected cells. I've used table functions to align the values at the bottom of the cell. If I don't apply this conditional formatting, the row is what I'll call a "normal" height. When I apply the conditional formatting, the bold red numbers are displayed at the bottom of the cell as expected, but the row is twice as tall as its "normal" height.
The difference is found in the page source for the browser page. The <tr> tag shows a height of 13.216pt for the "normal" rows, but 25.933pt for the rows affected by the formatting. For some reason, BIP wants to generate a much taller row when it contains these formatted results.
I've experimented with attribute tags such as <?attribute@incontext:linefeed-treatment;'ignore'?> and <?attribute@incontext:height;14?>. I've used Word table formatting to fix the height of the row at exactly .3 inches. I removed the bold tag, and just kept the font color. None of those ideas was successful in removing the extra height.
Thoughts?

Similar Messages

  • Quick question, where to put global variables

    Very quick question:
    where is the best place to put global variables,
    (e.g. a flag that turns on debug mode)
    if they are needed by the entire application?
    I'm guessing they should be placed in their own class.
    But should I make them public static final constants,
    and just do Globals.MYCONSTANT
    OR should i do "implements Globals" in all my other classes?
    The first way seems simpler and more logical,
    but in the examples for JSDT, they use the second technique.
    Any thoughts?
    thanks! =)

    I would suggest either creating a properties file for your globals, or adding them to the system properties at startup. Placing items like debugging tags in your code means that you have to change the code, recompile, and rejar before your change is implemented. Using system properties means that you simply have to change your command-line options (i.e., from -Dmyapp.debug=true to -Dmyapp.debug=false).
    Shaun

  • Where did DW put the site definitions?

    Hi all.  Just started with DW in CS 5.5, and I'm perplexed as to where it put the definitions for two sites I created.  The directories that correspond to the two sites reside on an external drive.  I took the drive and plugged it into another machine, launched Dreamweaver, and tried to open the sites there.  Nope.  I would expect the definitions to have been stored in the corresponding directories, along with the source files for the site (to accommodate this very scenario).
    Where are they?  Can I move them to the source directories on the external drive and access them on multiple machines without a hassle?  If not, DW is out.
    Thanks!

    Duplicate posts?  I don't see any other post on this topic.
    Yes, sorry - it was a shot from the hip.
    Where are the .ste files though?  I'd rather not have to continually synchronize files between machines by importing and exporting.  Why not just store the site definitions with the site contents?
    There are NO *.ste files until you export them.  Then they go where you selected as the destination for them.  Once you have defined a site and exported the definition, there would be no need to ever export again unless you changed something in the definition. 
    You'd have to ask your other question of the DW Dev team.

  • Where to put the Transform.xsl File

    Good evening!
    I am trying to execute a bpel:doXslTransform(xslURI,$a) and i dont know where to put the transform.xsl file for this operation.
    Can anybody tell me?
    Greetz,
    RaRu

    It needs to be in the same folder as the .bpel process - the bpel folder of your project.
    Hope this helps,
    Shanmuhanathan Thiagaraja

  • Where do PATH and MANPATH definitions go for OSS12.4 in Solaris 11.2?

    ** Newbie alert **
    Hello,
    This link says what to add to PATH and MANPATH for a new Solaris Studio 12.4 installation
    but not where to put the PATH and MANPATH entries (preferably for all users).
    Setting Up Access to the Developer Tools and Man Pages - Oracle® Solaris Studio 12.4: InstallationGuide
    Note that my "installation" consisted of downloading the appropriate Tarfile and then unpacking it - so this comment is confusing:
    "If you did not enable the installer to create symbolic links in /usr/bin and /usr/share/man, you might    need to change your PATH   and MANPATH  environment variables to enable use of the Oracle Solaris Studio 12.4 software."
    Another confusing entry in the Solaris 11.2 documentation says "the MANPATH definition is no longer required in Solaris 11".
    Sincerely,
    Kent

    Hi Kent,
    If you installed from the tar file you will need to add the directory to your PATH and MANPATH variables.   The steps are platform specific and are listed below:
    On Oracle Solaris platforms
    Add the path /install-dir/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/solarisstudio12.4/man to your MANPATH environment variable.
    On Linux platforms
    Add the path /install-dir/oracle/solarisstudio12.4/bin to your PATH environment variable.
    Add the path /install-dir/oracle/solarisstudio12.4/man to your MANPATH environment variable.
    For a more detailed discussion PATH and MANPATH you can review the Solaris documentation on "Setting Environment Variables".  The location to that information is located here:
    https://docs.oracle.com/cd/E19683-01/806-7612/customize-8/index.html
    You might find this link helpful too:
    https://docs.oracle.com/cd/E36784_01/html/E36818/userconcept-39855.html#scrolltoc
    Note - When you install from a tar file you cannot get support or patches for the product from Oracle. If you want such support you must use a package installer. See Chapter 2, Installing Oracle Solaris Studio 12.4 on Oracle Solaris 10 and Linux or Chapter 3, Installing Oracle Solaris Studio 12.4 On Oracle Solaris 11.
    Also, if you haven't installed the latest Solaris 11.2 SRU then you will also need to install the required system libraries.   Here's a link to the instructions:
    https://docs.oracle.com/cd/E37069_01/html/E37072/gouaw.html#scrolltoc
    HTH

  • Where to put java code - Best Practice

    Hello. I am working with the Jdeveloper 11.2.2. I am trying to figure out the best practice for where to put code. After reviewing http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf it seemed like the application module was the preferred spot (although many of the examples in the pdf are in main methods). After coding a while though, I noticed that there were quite a few libraries imported, and wondered whether this would impact performance.
    I reviewed postings on the forum, especially Re: Access service method (client interface) programmatically . This link mentions accessing code from a backing bean -- and the gist of the recommendations seems to be to use the data control to drag it to the JSF, or use the bindings to access code.
    My interest lies in where to put java code in the first place; In the View Object, Entity Object, and Am object, backing bean.....other?
    I can outline several best guesses about where to put code and the pros and cons:
    1. In the application module
    Pros: Centralized location for code makes development and support more simple as there are not multiple access points. Much like a data control centralizes services, the application module can act as a conduit for different pieces of code you have in objects in your model.
    Cons: Everything in one place means the application module becomes bloated. I am not sure how memory works in java -- if the app module has tons of different libraries are they all called when even a simple query re-execute method is called? Memory hog?
    2. Write code in the objects it affects. If you are writing code that accesses a view object, write it in a view object. Then make it visible to the client.
    pros: The code is accessed via fewer conduits (for example, I would expect that if you call the application module from a JSF backing bean, then the application module calls the view object, you have three different pieces of code --
    conts: The code gets spread out, harder to locate etc.
    I would greatly appreciate your thoughts on the matter.
    Regards,
    Stuart
    Edited by: Stuart Fleming on May 20, 2012 5:25 AM
    Edited by: Stuart Fleming on May 20, 2012 5:27 AM

    First point here is when you say "where to put the java code" and you're referring to ADF BC, the point is you put "business logic java code" in the ADF Business Components. It's fine of course to have Java code in the ViewController layer that deals with the UI layer. Just don't put business logic in the UI layer, and don't put UI logic in the model layer. In your 2 examples you seem to be considering the ADF BC layer only, so I'll assume you mean business logic java code only.
    Meanwhile I'm not keen on the term best practice as people follow best practices without thinking, typically best practices come with conditions and people forget to apply them. Luckily you're not doing that here as you've thought through the pros and cons of each (nice work).
    Anyway, back on topic and off my soap box, as for where to put your code, my thoughts:
    1) If you only have 1 or 2 methods put it in the AppModuleImpl
    2) If you have hundreds of methods, or there's a chance #1 above will morph into #2, split the code up between the AppModuleImpl, ViewImpl and ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Instead put the code where it should logically go. Methods that work on a specific VO row go into the associated ViewRowImpl, methods that work across rows in a VO go into the ViewImpl, and methods that work across VOs in the associated AppModuleImpl.
    To be honest which you ever option you choose, one thing I do recommend as a best practice is be consistent and document the standard so your other programmers know.
    Btw there isn't an issue about loading lots of libraries/imports into a class, it has no runtime cost. However if your methods require lots of class variables, then yes this will have a memory cost.
    On a side note if you're interested in more ideas around how to build ADF apps correctly think about joining the "ADF EMG", a free online forum which discusses ADF architecture, best practices (cough), deployment architectures and more.
    Regards,
    CM.

  • Xsl:param or xsl:variable gets reset.

    Hi, I'm trying to keep a counter using a top level variable in xsl.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="rownumber">1</xsl:variable>
    And every time my xsl calls a specific template, i want to keep a counter.
    <xsl:template match="row">
    <xsl:variable name="rownumber">     
    <xsl:number value="$rownumber+1"/>     
    </xsl:variable>     
    <xsl:variable value="$rownumber"/>
    </xsl:template>
    However, my variable $rownumber always gets reset to the default value of "1" everytime the template is called and returns a value of "2".
    Is there a work around for this? Is there a way to keep a counter in xsl? Can top level variable change?
    I don't want to count the nodes either....
    Thanks in advanced,
    jon

    You can't do that. Variables can't change. And there is no "workaround", as you put it. XSLT is not that kind of programming language. If you want to count something, you need to figure out an expression that looks at the incoming XML and determines the answer. This is often surprisingly easy once you stop writing programs that assume that statements are executed one after the other. For example, in your case it appears that you just want to count the number of "row" elements in the document. The XPath expression for that is "count(//row)". Or perhaps you want to count the number of "row" elements below the current node; that's "count(row)".

  • Where to put removeChild (Away3d 4.x)

    Hey guys i need some help on how to change primitives and removing the previous primitive showing in the scene and also changing materials on the primitive with a click of a button.
    Mainly just where to put removeChild.
    This is for Away3d
    package
        import away3d.cameras.*;
        import away3d.containers.*;
        import away3d.controllers.*;
        import away3d.core.base.SubGeometry;
        import away3d.core.base.data.Vertex;
        import away3d.debug.*;
        import away3d.entities.Mesh;
        import away3d.extrusions.*;
        import away3d.filters.*;
        import away3d.lights.*;
        import away3d.materials.*;
        import away3d.materials.lightpickers.*;
        import away3d.materials.methods.*;
        import away3d.primitives.*;
        import away3d.textures.*;
        import away3dplus.controllers.SimpleHoverController;
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.geom.Vector3D;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        [SWF(backgroundColor="#000000",frameRate="30",quality="LOW")]
        public class Main extends Sprite
        //engine variables
        private var view:View3D;
        private var scene:Scene3D;
        // debug
        private var awayStats:AwayStats;
        //light objects
        private var pointLight:PointLight;
        private var lightPicker:StaticLightPicker;
        //material objects
        private var redColorMaterial:ColorMaterial;
        private var skyBoxCubeTexture:BitmapCubeTexture;
        //Buttons   
        private var btnCube:Sprite = new Sprite
        private var btnSphere:Sprite = new Sprite
        private var btnCylinder:Sprite = new Sprite
        private var btnTorus:Sprite = new Sprite   
        private var btnMaterial:Sprite = new Sprite   
        private var btnWireframe:Sprite = new Sprite
            public function Main() {
                init();
                private function init():void {
                    initEngine();
                    initLights();
                    initCamera();
                    initMaterials();
                    initObjects();
                    initListeners();
                    drawButton()
                    btnCube.addEventListener(MouseEvent.CLICK, changeCube);
                    btnCube.x = 400;
                    btnCube.y = 25;
                    addChild(btnCube);
                    btnSphere.addEventListener(MouseEvent.CLICK, changeSphere);
                    btnSphere.x = 400;
                    btnSphere.y = 60;
                    addChild(btnSphere);
                    btnCylinder.addEventListener(MouseEvent.CLICK, changeCylinder);
                    btnCylinder.x = 400;
                    btnCylinder.y = 95;
                    addChild(btnCylinder);
                    btnTorus.addEventListener(MouseEvent.CLICK, changeTorus);
                    btnTorus.x = 400;
                    btnTorus.y = 130;
                    addChild(btnTorus);
                    //btnMaterial.addEventListener(MouseEvent.CLICK, changeMaterial);
                    btnMaterial.x = 15;
                    btnMaterial.y = 95;
                    addChild(btnMaterial);
                    btnWireframe.addEventListener(MouseEvent.CLICK, changeWireframe);
                    btnWireframe.x = 15;
                    btnWireframe.y = 130;
                    addChild(btnWireframe);
                 * Initialise the engine
                private function initEngine():void {
                    //stage setup
                    stage.scaleMode = StageScaleMode.NO_SCALE;
                    stage.align = StageAlign.TOP_LEFT;
                    // 3d view - window into 3d scene
                    view = new View3D();
                    addChild(view);
                    // 3d scene.
                    scene = view.scene;
                    // stats
                    awayStats = new AwayStats(view);
                    addChild(awayStats);
                 * Initialise the lights
                private function initLights():void {
                    //point light
                    pointLight = new PointLight();
                    scene.addChild(pointLight);
                    lightPicker = new StaticLightPicker([pointLight]);
                private function initCamera():void {
                    var hoverCameraManager:SimpleHoverController = new SimpleHoverController(view, 700, [pointLight]);
                 * Initialise Buttons
                private function drawButton():void {
                    var textLabel:TextField = new TextField()
                    btnCube.graphics.clear();
                    btnCube.graphics.beginFill(0xFFFFFF); // white
                    btnCube.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH
                    textLabel.text = "CUBE";
                    textLabel.x = 22;
                    textLabel.y = 4;
                    textLabel.selectable = false;
                    btnCube.addChild(textLabel)
                var textLabel01:TextField = new TextField()   
                btnSphere.graphics.clear();
                btnSphere.graphics.beginFill(0xFFFFFF); // white
                btnSphere.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel01.text = "SPHERE";
                textLabel01.x = 18;
                textLabel01.y = 3;
                textLabel01.selectable = false;
                btnSphere.addChild(textLabel01)
                var textLabel03:TextField = new TextField()   
                btnCylinder.graphics.clear();
                btnCylinder.graphics.beginFill(0xFFFFFF); // white
                btnCylinder.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel03.text = "CYLINDER";
                textLabel03.x = 10;
                textLabel03.y = 3;
                textLabel03.selectable = false;
                btnCylinder.addChild(textLabel03)   
                var textLabel04:TextField = new TextField()   
                btnTorus.graphics.clear();
                btnTorus.graphics.beginFill(0xFFFFFF); // white
                btnTorus.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel04.text = "TORUS";
                textLabel04.x = 17;
                textLabel04.y = 3;
                textLabel04.selectable = false;
                btnTorus.addChild(textLabel04)   
                var textLabel05:TextField = new TextField()   
                btnMaterial.graphics.clear();
                btnMaterial.graphics.beginFill(0xFFFFFF); // white
                btnMaterial.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel05.text = "MATERIAL";
                textLabel05.x = 6;
                textLabel05.y = 3;
                textLabel05.selectable = false;
                btnMaterial.addChild(textLabel05)       
                var textLabel06:TextField = new TextField()   
                btnWireframe.graphics.clear();
                btnWireframe.graphics.beginFill(0xFFFFFF); // white
                btnWireframe.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel06.text = "WIREFRAME";
                textLabel06.x = 2;
                textLabel06.y = 3;
                textLabel06.selectable = false;
                btnWireframe.addChild(textLabel06)       
                 * Initialise the materials
                private function initMaterials():void {
                    // red color
                    redColorMaterial = new ColorMaterial(0xFF0000, 0.8);
                    redColorMaterial.lightPicker = lightPicker;
                    skyBoxCubeTexture = new BitmapCubeTexture(new EnvPosX().bitmapData, new EnvNegX().bitmapData, new EnvPosY().bitmapData, new EnvNegY().bitmapData, new EnvPosZ().bitmapData, new EnvNegZ().bitmapData);
                 * Initialise the scene objects
                private function initObjects():void {
                    var trident:Trident = new Trident(100);
                    trident.x = 0;
                    trident.y = 0;
                    scene.addChild(trident);
                    //Geometry - Geometry is a collection of SubGeometries, each of which contain the actual geometrical data such as vertices, normals, uvs, etc.
                        ////PrimitiveBase    - PrimitiveBase is an abstract base class for mesh primitives, which are prebuilt simple meshes.
                            //CubeGeometry     A Cube primitive mesh.
                            var newCubeGeometry:CubeGeometry = new CubeGeometry(200, 200, 200, 50, 50, 50, true);
                            //SphereGeometry - A UV Sphere primitive mesh.
                            var newSphereGeometry:SphereGeometry = new SphereGeometry(50, 16, 12, true);
                            //CapsuleGeometry     A UV Capsule primitive mesh.
                            var newCapsuleGeometry:CapsuleGeometry = new CapsuleGeometry(50, 100, 16, 12, true);
                            //ConeGeometry     A UV Cone primitive mesh.
                            //var newConeGeometry:ConeGeometry = new ConeGeometry(50, 100, 16, 1, true, true);
                            //CylinderGeometry     A UV Cylinder primitive mesh.
                            var newCylinderGeometry:CylinderGeometry = new CylinderGeometry(50, 50, 100, 16, 1, true, true);
                            //PlaneGeometry     A Plane primitive mesh.
                            var newPlaneGeometry:PlaneGeometry = new PlaneGeometry(100, 100, 1, 1, true);
                            //RegularPolygonGeometry     A UV RegularPolygon primitive mesh.
                            var newRegularPoligonGeometry:RegularPolygonGeometry = new RegularPolygonGeometry(100, 16, true);
                            //TorusGeometry     A UV Torus primitive mesh.
                            var newTorusGeomentry:TorusGeometry = new TorusGeometry(50, 50, 15, 8, true);
                    // Entity - The Entity class provides an abstract base class for all scene graph objects that are considered having a "presence" in the scene,
                    //            in the sense that it can be considered an actual object with a position and a size (even if infinite or idealised), rather than a grouping.
                        //Mesh - Mesh agregates instance of a Geometry, augmenting it with a presence in the scene graph, a material, and an animations tate.
                        //            It consists out of SubMeshes, which in turn correspond to SubGeometries. SubMeshes allow different parts of the geometry to be assigned different materials.
                        //var cube:Mesh = new Mesh(newCubeGeometry, redColorMaterial);
                        //cube.x = 100;
                        //cube.y = 100;   
                        //cube.z = 100;
                        //scene.addChild(cube);
                        //var sphere:Mesh = new Mesh(newSphereGeometry, redColorMaterial);
                        //sphere.x = -75;
                        //sphere.y = -150;
                        //scene.addChild(sphere);
                        //var capsule:Mesh = new Mesh(newCapsuleGeometry, redColorMaterial);
                        //capsule.x = -200;
                        //capsule.y = -150
                        //scene.addChild(capsule);
                        //var cone:Mesh = new Mesh(newConeGeometry, redColorMaterial);
                        //cone.x = -200;
                        //cone.y = 150;
                        //cone.showBounds = true;
                        //scene.addChild(cone);
                        //var cylinder:Mesh = new Mesh(newCylinderGeometry, redColorMaterial);
                        //cylinder.x = -75;
                        //cylinder.y = 150;
                        //scene.addChild(cylinder);
                        //var plane:Mesh = new Mesh(newPlaneGeometry, redColorMaterial);
                        //plane.x = -75;
                        //plane.y = 275;
                        //scene.addChild(plane);
                        //var poligon:Mesh = new Mesh(newRegularPoligonGeometry, redColorMaterial);
                        //poligon.x = -275;
                        //poligon.y = 275;
                        //scene.addChild(poligon);
                        //var torus:Mesh = new Mesh(newTorusGeomentry, redColorMaterial);
                        //torus.x = -275;           
                        //scene.addChild(torus);
                        //SkyBox     A SkyBox class is used to render a sky in the scene.
                        //var skyBox:SkyBox = new SkyBox(skyBoxCubeTexture);
                        //scene.addChild(skyBox);
                        // SegmentSet
                            //WireframeAxesGrid - Class WireframeAxesGrid generates a grid of lines on a given planeWireframeAxesGrid
                            //var wireFrameAxesGrid:WireframeAxesGrid = new WireframeAxesGrid(4, 400, 1);
                            //scene.addChild(wireFrameAxesGrid);
                            //WireframeGrid     Class WireframeGrid generates a grid of lines on a given planeWireframeGrid
                            //var wireframeGrid:WireframeGrid = new WireframeGrid(10, 100, 5, 0x0000FF);
                            //wireframeGrid.x = 75;
                            //wireframeGrid.y = 275;
                            //scene.addChild(wireframeGrid);
                            //WireframePrimitiveBase
                                //WireframeCube    - Class WireFrameGrid generates a grid of lines on a given planeWireFrameGrid
                                //var wireFrameCube:WireframeCube = new WireframeCube(100, 100, 100, 0x0000FF, 5);
                                //wireFrameCube.x = 75;
                                //scene.addChild(wireFrameCube);
                                //WireframeSphere - Class WireFrameGrid generates a grid of lines on a given planeWireFrameGrid
                                //var wireFrameSphere:WireframeSphere = new WireframeSphere(50, 16, 12, 0x0000FF, 5);
                                //wireFrameSphere.x = 75;
                                //wireFrameSphere.y = -150;
                                //scene.addChild(wireFrameSphere);
                                //WireframePlane
                                //var wireframePlane:WireframePlane = new WireframePlane(100, 100, 10, 10, 0x0000FF, 5);
                                //wireframePlane.x = 175;
                                //wireframePlane.y = 275;
                                //scene.addChild(wireframePlane);
                 * Initialise the listeners
                private function initListeners():void {
                    addEventListener(Event.ENTER_FRAME, onEnterFrame);
                 * render loop
                private function onEnterFrame(event:Event):void {
                    view.render();
                 * Intialise the buttons events
                private function changeCube(event:MouseEvent):void {
                    var newCubeGeometry:CubeGeometry = new CubeGeometry(200, 200, 200, 50, 50, 50, true);
                    var cube:Mesh = new Mesh(newCubeGeometry, redColorMaterial);
                    cube.x = 100;
                    cube.y = 100;   
                    cube.z = 100;
                    scene.addChild(cube);
                    private function changeSphere(event:MouseEvent):void {   
                         var newSphereGeometry:SphereGeometry = new SphereGeometry(50, 16, 12, true);
                         var sphere:Mesh = new Mesh(newSphereGeometry, redColorMaterial);
                         scene.addChild(sphere);
                    private function changeCylinder(event:MouseEvent):void {   
                        var newCylinderGeometry:CylinderGeometry = new CylinderGeometry(50, 50, 100, 16, 1, true, true);
                        var cylinder:Mesh = new Mesh(newCylinderGeometry, redColorMaterial);
                        scene.addChild(cylinder);
                    private function changeTorus(event:MouseEvent):void {   
                        var newTorusGeomentry:TorusGeometry = new TorusGeometry(50, 50, 15, 8, true);
                        var torus:Mesh = new Mesh(newTorusGeomentry, redColorMaterial);
                        scene.addChild(torus);
                    private function changeWireframe(event:MouseEvent):void {   
                        var wireFrameCube:WireframeCube = new WireframeCube(100, 100, 100, 0x0000FF, 5);
                        scene.addChild(wireFrameCube);
    Thanks, Matthew

    Fraudulent seller.
    I received an empty package.- - 
    Back to the drawing board.
    Thanks for your replies.
    eBay is going through their required steps.
    It will take a week or better to get my refund.
    Thanks
    Shopping for another "Mac Pro Late 2013" or I might settle for my "Mac Mini 2012 i7 16 Gig 256 SSD Intel 4000" refurb with warranty bought from Apple that I already have on hand.
    Thank You
    I don't know how this ended upon two threads.
    I'm pretty sure I'm going to go with my 2012 Mac Mini i7 16 gig 256 SSD and Lacie Little Big Thunderbolt 1 512 SSD
    That will be pretty punchy for me.
    I'll only have about $1,000 in the computer itself with a three year Apple Care Warranty.
    It should sell for $500 a year from now if I choose too.
    I think it's going to work great.
    I'm going to load it up with all of the software just like I was going to do on the Mac Pro.
    It's good for three computers in the future so no money lost on the software
    I'll probably just keep the Mini indefinitely for a backup even after I upgrade to the newer 2015 Mac Pro later next year.
    Thanks

  • Where to put js that should show on every page, like Appex have?

    In every page header there are entry like:
    <+html lang="hr" xmlns:htmldb="http://htmldb.oracle.com">
    <+head>
    <+script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <+script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
    <+script language="JavaScript" type="text/javascript">
    <+!--
    /*Global JS Variables*/
    +var htmldb_Img_Dir = "/i/";1) I would like to know where to put some of my js to be loaded automatically on every page regardless current theme (like in above example).
    2) If I want to some js be shown on template based filter.
    What is bothering me is that i would like to put some js on every page where for instance report template is loaded...what is the best way for that?
    THX!

    Hello,
    If you only want it to load on pages with a certain template on way to do it just put the link into the footer of the template itself.
    So the end of you report template would look like
    ....&lt;/table>
    &lt;script src="/i/mystuff/my.js" type="text/javascript">&lt;/script>
    It doesn't make for the best html code but the effect is what you want without having to do any conditions or run a separate page template or do to much on a bunch of different pages.
    Carl

  • XMLTRANSORM - LPX-00607: Invalid reference - xsl:variable

    Hi,
    I'm working on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit.
    I have a problem using XMLTRANSFORM method with variable (ie. SenderDN).
    There is a table "ma_table" with three columns : "id", "data_xml" and "data_xsl".
    Here is the query used :
    SELECT XMLTRANSFORM (data_xml, data_xsl) FROM ma_table WHERE id = 64;Here is the data to transform :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <SOSTA xmlns="http://www.xxxxxx.com/yyyy/pipo">
         <infos>
              <generated>2009-08-19T16:23:56</generated>
              <reference_tech>ABCD123456789</reference_tech>
         </infos>
         <RECEDEP>AAAAAAAA</RECEDEP>
         <SENDERM>BBB</SENDERM>
         <REFSEND>5100161753</REFSEND>
         <QUALIFI>N</QUALIFI>
         <REFINTE>0010000934487</REFINTE>
         <TYPSTAT>IPRC</TYPSTAT>
         <STAREMT>REJT</STAREMT>
         <RAISON>DSEC</RAISON>
         <NARRA>blablabla</NARRA>
         <NARRA1>blablabla</NARRA1>
         <NARRA2/>
         <CENTRDT>20090819</CENTRDT>
         <STTLMDT>00000000</STTLMDT>
         <TYPSORA>SOU</TYPSORA>
         <INDMONT>O</INDMONT>
         <QUANTFI/>
         <SEAMMNT>10941,19</SEAMMNT>
         <CLIEDEV>EUR</CLIEDEV>
         <IFICODI>EEEEEEEEEE</IFICODI>
         <IFILIBE/>
         <IDCPTIT>123456789456132</IDCPTIT>
         <routage>
              <feuille name="tagada">
                   <Destinataire>dest</Destinataire>
                   <Priority>Normal</Priority>
                   <IsNotificationRequested>false</IsNotificationRequested>
                   <Service>dervice</Service>
              </feuille>
         </routage>
    </SOSTA>And here is the stylesheet :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
         xmlns:yyyy="http://www.xxxxxx.com/yyyy/pipo">
         <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
         <xsl:variable name="SenderDN">sender dn</xsl:variable>
         <xsl:variable name="SenderBIC8">bic height</xsl:variable>
         <xsl:template match="/*">
              <DataPDU xmlns="urn:swift:saa:xsd:saa.2.0">
                   <Header>
                        <Message>
                             <SenderReference>
                                  <xsl:value-of select="./yyyy:infos/yyyy:reference_tech"/>
                             </SenderReference>
                             <MessageIdentifier>
                                  <xsl:value-of select="./yyyy:routage/yyyy:feuille/yyyy:MessageIdentifier"/>
                             </MessageIdentifier>
                             <Format>MX</Format>
                             <Sender>
                                  <DN>
                                       <xsl:value-of select="$SenderDN"/>
                                  </DN>
                                  <FullName>
                                       <X1>
                                            <xsl:value-of select="$SenderBIC8"/>
                                            <xsl:value-of select="./yyyy:routage/yyyy:feuille/yyyy:SenderBranchCode"/>
                                       </X1>
                                  </FullName>
                             </Sender>
                             <Receiver>
                                  <DN>
                                       <xsl:value-of select="./yyyy:routage/yyyy:feuille/yyyy:ReceiverDN"/>
                                  </DN>
                                  <FullName>
                                       <X1>
                                            <xsl:value-of select="./yyyy:routage/yyyy:feuille/yyyy:ReceiverBIC11"/>
                                       </X1>
                                  </FullName>
                             </Receiver>
                             <InterfaceInfo>
                                  <UserReference>
                                       <xsl:value-of select="./yyyy:infos/yyyy:reference_tech"/>
                                  </UserReference>
                             </InterfaceInfo>
                             <NetworkInfo>
                                  <Service>
                                       <xsl:value-of select="./yyyy:routage/yyyy:feuille/yyyy:Service"/>
                                  </Service>
                             </NetworkInfo>
                        </Message>
                   </Header>
                   <Body>
                        <AppHdr>
                             <MsgRef>
                                  <xsl:value-of select="./yyyy:infos/yyyy:reference_tech"/>
                             </MsgRef>
                             <CrDate>
                                  <xsl:value-of select="./yyyy:infos/yyyy:generated"/>
                             </CrDate>
                        </AppHdr>
                        <Document> </Document>
                   </Body>
              </DataPDU>
         </xsl:template>
    </xsl:stylesheet>And I get this error message :
    ORA-31011: XML parsing failed
    ORA-19202: Erroroccured in XML processing
    LPX-00607: Invalid reference: 'SenderDN'Why this error?
    How to use this variable?
    Thanks,
    -Dominique

    Hi,
    I'va found the solution by modifying the <xsl:stylesheet> like this :
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
         xmlns:yyyy="http://www.xxxxxx.com/yyyy/pipo"
         xmlns="urn:swift:saa:xsd:saa.2.0">(adding xmlns="urn:swift:saa:xsd:saa.2.0")
    But I don't understand why it work fine now ???
    If anyone have an explanation?
    Thanks,
    -Dominique

  • Where to put .txt file with SimpleInput

    Hello everyone,
    I'm rather new to Java and have a slight problem. The thing is that I need to write an app that can read a text file in this format:
    2
    Orc
    name = Gnorck
    experience = 20
    maxHealthPoints = 50
    healthPoints = 30
    maxBerserk = 9
    berserk = 7
    Human
    name = Aragorn
    experience = 45
    maxHealthPoints = 40
    healthPoints = 30
    maxGreed = 20
    greed = 10
    The first number is de number of characters in the file and after that every character is described in 7 lines.
    Now the application has to be able to read the file. I've choosen to first just make a list of characters. A friend helped me with this code but I'm not completely sure if I know how it works. The code:
    package RPGApplicatie;
    import java.util.*;
    public class Karakters {
         //Constructor
         public Karakters(int size){
              karakters = new ArrayList(size);
         //Methode voor het toevoegen van een karakter
         public void voegToe(Karakter k){
              karakters.add(k);
         public static Karakters readFile(String filename) throws ClassNotFoundException, RuntimeException, InstantiationException, IllegalAccessException{
              SimpleInput file = new SimpleInput(filename);
              int size = file.nextInt();
              Karakters result = new Karakters(size);
              for(int i = 0; i < size ; i++) {
                   Class c = Class.forName(file.nextLine());
                   result.voegToe((Karakter)c.newInstance());
              return result;
         //Variabelen aanmaken
         private ArrayList<Karakter> karakters;
    }First question: I have the classes Karakter (which is the superclass for class Human and Orc), Human and Orc. So does the method forName scan for strings that are also classes? Like so it scans the file and when it comes across a line that says either 'Orc' or 'Human' it adds it to the list?
    Second question: Where to put the text file that holds the data? I now have it in the same folder called test.txt. I use this code to run it:
    package RPGApplicatie;
    public class RPGApplicatie {
         public static void main(String[] args) throws ClassNotFoundException, RuntimeException, InstantiationException, IllegalAccessException {
              Karakters.readFile("test.txt");
    }Thanks in advance! If more info is needed I can post that.
    Regards,
    Sander

    I assume you have defined your Human and Orc classes to include fields name, experience, etc and a constructor that takes these values as parameters?
    You can remove the Class.forName() method altogether. Example:
    int count = file.readInt();
    // define variables for Karakter values (name, experience etc.)
    for (int i = 0; i < count; i++)
      String characterClass = file.readLine();
      // read common character components
      if (characterClass.equals("Human")
        // read human specific components
        karakters.add(new Human(...));
      if (characterClass.equals("Orc")
        // create Orc
    //...Cheers

  • Pacman variable definitions

    I develop pajman. a boosted bash based package manager.
    What I found is that it would be easier to understand and implement pacman alternatives if variable names where in a concrete file to be able to check them.
    Pacman should have a file in which we have all the variables that sit in configuration or information files (/etc/pacman.conf, /var/lib/pacman/local/*/depends, etc).
    Right now if we look for %DEPENDS% we get that it is inlined in the code:
    [root@patito src]# busca %DEPENDS%
    gensync
    129: echo "%DEPENDS%" >>depends
    updatesync
    132: echo "%DEPENDS%" >>depends
    convertdb.c
    102: fputs("%DEPENDS%nn", fp);
    db.c
    450: if(!strcmp(line, "%DEPENDS%")) {
    581: fputs("%DEPENDS%n", fp);
    [root@patito src]#
    if there was a file with all variables, pajman would be able to check if there is something new to keep in mind and tell me.
    I could check if the vesion of pacman changed and then using cvs download this new version of the variable definitions.
    This file could also implement a clear explanation of what is what every variable means and what it does. This way I could also check if the explanation changed and know that i have to update pajman, because the few things that it does may not work anymore.
    i suggest having something like:
    definitions.c
    23: VARNAME_DEPENDS="%DEPENDS%";
    24: // DEPENDS CONTAINS A LIST OF PACKAGES THAT ARE NEEDED FOR THIS PACKAGE TO RUN
    25: // ASSOCIATED TO EACH PACKAGE YOU CAN FIND REQUIRED VERSION INFORMATION (ex: kdelibs>=3.2.3)
    I post this in the forum first to see other opinions about it.

    fputs("%DEPENDS%n", fp);
    %*% = %DEPENDS%
    read until end of line:
    n", fp);
    what's the point of that?
    what i want to do is to be able to know when pacman has new/modified features.

  • Where i Put my swing application jar file in jboss

    Hi experts...
    I develope swing application and convert it into jar file....I know jnlp deployment using tomcat..In tomcat i
    put my appcation.jar in webapps/root folder...This is not similar in jboss..I dont know where i put my applcation.jar in jboss.If any body know the idea please let me know..

    Hi
    You have to put your jar file in
    server/default/deploy
    Regards
    M Fazal Ur Rehman

  • I changed my iPhone lately but i can't restore my last backup since it keeps saying "itunes could not restore backup because the password was incorrect" but I don't know where to put the password to make it happen... Any suggestions?

    Hey guys,
    I just bought a new iPhone but i can't restore my backup files beacuse it keeps saying "itunes could not restore backup because the password was incorrect" but I really don't know where to put the password to restore it. I really have some files that are meaningful for me so I really need help. Any suggestions anyone?

    Select your iDevice in the iTunes.
    Choose the Summary screen (tab) and scroll to the bottom of the screen.
    Then un-select Encrypt iPhone backup.
    iTunes will then prompt you to “Enter the password to unlock your iPhone backup”, enter the password you set originally.

  • My computer screen keeps going blank and then going back to the box where I put my password in to start my comp. Why is this happening?

    My computer (Macbook) was working fine this am. I left it for an hour and then came back and the screen was black (always does that as the screensaver hardly ever works). I moved the mouse to wake it up and everything was normal. I went to adjust the volume and the screen went blank and the main page with the box where I put my password in when I first start my comp appeared. I put my password in and everything was normal again. I opened a window in Safari and before it loaded completely the same thing happened, the screen went blank and went back to the password box. Does anyone know why this is happening? I don't have an external hard drive or any blank flash drives so I can't back anything up right now and am afraid I'm going to lose everything. Thank you

    Sounds like hardware failure, called boot loop. Call Apple and or go on apple.com and make Genius Bar appointment to have your iphone reviewed by a Tech. Provided you iphone shows no physical or liquid damage they will take care of you, or if you have Apple Care Plus
    Genius Bar Rerservation :  http://www.apple.com/retail/geniusbar/

Maybe you are looking for

  • Function module needed for customer exit variable need to use in Bex report

    Hi Experts, I have a requirement where i need to get Cummulative result between two interval periods. If user gives single mandatory input value - 002-2009 for one Scenario:- Project start Date   untill Pervious year i.e  December 2008 Where project

  • How can I get Lightroom 5.7 into the "Open With" menu on an external Harddrive?

    Using Lightroom 5.7, I imported photo images as a .dng.  I edited the images in lightroom.  Then I dragged the file from the local Disk (C) to an external Hard drive (left panel of Library).  When I look in the External harddrive, I would like to see

  • How do I import video from Canon Legria HF20 to iPad 2?

    I have the camera connection kit, and iMovie App. The kit will import photos, but the iPad does not react at all when trying to send video files to iPad 2. Is there a utility App for iPad that will make the file format recognisable? Or is it possible

  • Regarding usage of java script in adobe forms

    Hello experts,                 Please any body help me out with what events i should use in java script / formcalc . send links for java scripting and formcalc. Thanxs, adi.

  • Parallel Query on Views or MV or snapshot?

    Hi All, I'm in oracle 10gr2 and moving to 11gr2 soon... I have a view ( has over a million records) that is created on a view ....basically has 5 layers of views beneath...and the performance as been painfully slow. Is it possible to have parallel se