Parallax and 3d transformations

Hi all,
I'm looking for a way to do the following:
* define position of elements onscreen  by x,y and z coords (in xml to apply to loaded images later)
* position loaded images at those coords _without_ the scaling but with other 3D effects still showing
The client wants parallax effect but does nog want to draw with scaling in mind that a 3d transformation normally does. Thus by simply setting the z property in a file sprites should move relative to one another as in 3d space but just not scale.
Suppose I could use the Matrix3D but can't get my head around it... Can someone point me in the proper direction or to a nice tut?
Thanks in advance,
Manno

Hi all,
I'm looking for a way to do the following:
* define position of elements onscreen  by x,y and z coords (in xml to apply to loaded images later)
* position loaded images at those coords _without_ the scaling but with other 3D effects still showing
The client wants parallax effect but does nog want to draw with scaling in mind that a 3d transformation normally does. Thus by simply setting the z property in a file sprites should move relative to one another as in 3d space but just not scale.
Suppose I could use the Matrix3D but can't get my head around it... Can someone point me in the proper direction or to a nice tut?
Thanks in advance,
Manno

Similar Messages

  • Parallax and Polarization

    Thanks to Terri and Grant I have been following The Radiant Vista's wonderful Daily Critiques. The one for January 29 at
    http://www.radiantvista.com/dailyCritique/index.php
    speaks about parallax and polarization in this straight-on photo of a flat-fronted, Spanish style church at high noon. But the photo, as submitted, has a dark sky, which the critiquer attributes to use of polarization. Obviously this has to do with contrast. But, what does "polarization" mean exactly?
    The critiquer then performs a very neat trick of correcting the minor parallax to the left and right. He is using Photoshop. Is there a way to do this in PSE 3 for Mac?
    Gordon McGilvray

    Gordon,
    Yes, Trish is correct. He's referring to the photographer having used a
    polarizing filter on the camera. If you want to read a bit more about
    polarization, see
    http://www.luminous-landscape.com/tutorials/polarizers.shtml
    The fellow doing the critique frequently mixes up the terminology. In this
    photo, for example, he says "parallax correction" when he should have said
    "perspective correction". In another video, I heard him repeatedly say
    "high key" when it was clear he meant "high contrast". I don't try to keep
    track of the flubs. It's generally clear what he means through his actions,
    don't let the terminology flubs confuse you.
    Now for your question about "Perspective correction" in Elements. Yes, you
    can do it. Elements has several Transform options. The two most useful
    for perspective correction are the "Perspective" transform and the "Distort"
    transform. You could probably use "skew" also but my personal preference
    would be to use distort rather than skew. Feel free to use what feels right
    to you.
    The Perspective transform is intended to make perspective corrections easy
    to do. You get eight transform handles (the little squares on the bounding
    box) -- one at each corner and one in the middle of each side. Drag the
    side handles, and the image skews. Drag a corner handle and the opposite
    sides tilt in or out depending on the direction of drag. If the shot is
    relative simple, this transform will do what's needed with a little
    practice. I find it easier to use if I zoom down the image size and leave
    the gray matte area to show the changes in the bounding box.
    The distort transform is trickier to use but more flexible. Sometimes, I
    find that a different correction is needed on each side (more than one
    principle plane usually). In this case, the perspective transform won't
    quite work as it makes the same adjustment on each side. But, using
    Distort, I can adjust each corner independently and, by one at a time top to
    bottom, and left to right, get the lines to straighten out and be parallel.
    It's a little tricky as one adjustment can affect the others, but a little
    rework and you can home in on the desired result. When you get used to it,
    it's pretty quick and easy.
    One note: If you are working with only a background layer, you have to
    convert it to a regular layer to use the transform tools.
    Have fun,
    Bob

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • Parallax and Battery

    I have a 3 week old iPhone 5s running iOS 7.1. I've always been puzzled at whether or not the parallax effect drains battery. I like it and all, but I have it off because I think that it drains battery, but I absolutely love the transition effects that it has. However, if "Reduce Motion" is turned on, the transitions, along with parallax, go away.
    My question is: Does parallax drain battery?

    The old reduce motion option simply turned off the home screen animation (this is called parallax). The new reduce motion setting in iOS 7.0.3 turns off parallax AND ALL OTHER ANIMATIONS. Now it is all or nothing. I and many others enjoy the animations but dislike the parallax effect. We have submitted feedback to Apple suggesting that they include options for BOTH. You should too!
    http://www.apple.com/feedback/iphone.html

  • Synchronous and asynchronous transformations in SSIS

    Hi Can someone pls tell, when and in what scenarios it is better to use synchronous and asynchronous transformations in SSIS. And what are the pros and cons of using transformations that falls under above mentioned category.

    A good and well documented resource is available at Technet Library which will determine better about your concern. Please check this :
    http://technet.microsoft.com/en-us/library/aa337074.aspx

  • Audit and rowcount transformations

    Hi,
    can  anyone tell me the difference between Audit transformation and rowcount transformation.
    Because audit and rowcount transformation will provide the environment variables.
    Only difference i am finding is rowcount returns the count of rows its updating .
    Apart from these is there anyother diffrence?
    Tell me the scenario where i need to use the audit transformation
    priyanka

    Hi Priyanka, 
    Audit transformation is transformation that you can use to get some system information such as Package Name, User Name, Package Start time etc. This information can also be get by using Derived column transformation and you can use system variables to build
    new columns. 
    Here is link for Demo
    Audit Transformation in SSIS Package
    Row count Transformation give us the Number of rows that pass through it and save into a variable. It will be used inside the Data Flow Task. 
    Here is link for Demo and example where to use it.
    Row Count Transformation in SSIS
    http://sqlage.blogspot.com/

  • Selective repaint() and Graphics2D transform?

    Hi all,
    I am programming a graphic 2D simulation consisting of moving circles in the plane. I am trying to go for efficient repaint() invocations by repainting only those areas that need refreshing, i.e., the previous and new location (bounding box, to be exact) of each circle. This is similar to what is demonstrated somewhere in the Java Tutorial, where a small red square is dragged by the mouse and repainted efficiently. So far so good.
    However, I would like to support transforming the view, to enable zooming and panning (as well as auto-fitting) in the simulation window (or panel or whatever). Transforming is typically also straightforward - just concatenate the desired transform onto the Graphics2D object in my paintComponent() override and that's it.
    The typical flow in Java is to issue a repaint() somewhere in the application code (e.g., mouse listener, or in my case - when updating the simulation, panning, or zooming). This request is later addressed by a Swing thread in a call to paintComponent() which also passes the Graphics2D object on which the actual drawing and transforming is performed.
    Now to the thing that puzzles me: What coordinates should I pass to repaint()? At that moment I do not possess the Graphics2D object, so I don't know the transform from user coordinates (in the graphics context) to the component's coordinates. Do I have to somehow query the current transform assigned to the control, add my pan/zoom transform to it, and then manually transform the coordinates of my circles before feeding them to my repaint() calls? This feels inelegant and inefficient to me: Basically all transformation will be calculated twice: Once by me for the repaint calls, and again by paintComponent() when actually rendering the circles. Perhaps I could save the redundant calculations by keeping
    the manually transformed coordinates (or transformed copies of my Shapes), and then draw them in paintComponent() without applying the transform to the Graphics2D object.
    These solutions don't look right to me. Does anybody have a better idea? It seems to me like a fairly common scenario: Efficient painting of a 2D animation supporting view transformation (e.g. zoom/pan). There must already exist a known "correct" way to do this!
    Hopefully...
    Noam

    You can drag the frame sides/bottom to see what happens to the clip and transform of the graphics context of the white panel. The clip seems to be in white panel coordinates and the transform translation values are relative to the parent component.
    Each parent component passes its graphics context on to its children to use to paint themselves.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class GraphicsTest extends JPanel {
        public GraphicsTest() {
            setBackground(Color.white);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            inspect(g2);
            Shape clip = g2.getClip();
            Rectangle r = clip.getBounds();
            g2.setPaint(Color.red);
            g2.drawRect(r.x, r.y, r.width-1, r.height-1);
        public Dimension getPreferredSize() {
            return new Dimension(360, 300);
        private void inspect(Graphics2D g2) {
            Shape clip = g2.getClip();
            Rectangle r = clip.getBounds();
            System.out.printf("clip = [%d, %d, %d, %d]%n",
                               r.x, r.y, r.width, r.height);
            //    [  m00  m01  m02  ]
            //    [  m10  m11  m12  ]
            //    [   0    0    1   ]
            AffineTransform at = g2.getTransform();
            double[] matrix = new double[6];
            at.getMatrix(matrix);  // { m00 m10 m01 m11 m02 m12 }
            int[] loRow = { 0, 0, 1 };
            for(int i = 0; i < 2; i++) {
                System.out.print("[ ");
                for(int j = i; j < matrix.length; j += 2) {
                    System.out.printf("%5.1f ", matrix[j]);
                System.out.print("]\n");
            System.out.print("[ ");
            for(int i = 0; i < loRow.length; i++) {
                System.out.printf("%3d   ", loRow);
    System.out.print("]\n");
    System.out.println("---------------------");
    private JScrollPane getContent() {
    // Show the graphic component at a smaller size
    // so we can investigate space issues.
    JPanel panel = new JPanel(new GridBagLayout());
    panel.add(this, new GridBagConstraints());
    return new JScrollPane(panel);
    public static void main(String[] args) {
    GraphicsTest test = new GraphicsTest();
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.add(test.getContent());
    f.setSize(500,500);
    f.setLocation(100,100);
    f.setVisible(true);

  • [svn] 4112: Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type .

    Revision: 4112
    Author: [email protected]
    Date: 2008-11-14 10:05:42 -0800 (Fri, 14 Nov 2008)
    Log Message:
    Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type.
    QE: Not yet.
    Doc: No
    Checkintests: Pass
    Reviewer: Kaushal
    Modified Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicContentNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/LinearGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/RadialGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/LinearGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/RadialGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TypeHelper.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/ScalableGradientNode.java

  • All of a sudden the transform tool and free transform tool are grayed out and will not allow me to scale, rotate, or do anything to an image I just scaled?

    I've been using Photoshop for years, but tonight I ran into an issue that I don't understand. I was working with a file that I had been working with for months. I added a new image and resized it to fit as I needed just as I always have (select layer with image > EDIT > TRANSFORM > SCALE.) All was working fine. I added a second image to the file I was working on (I added it by dragging it into the file from another window just as I had added the first image.) However, this time when I tried to select EDIT > TRANSFORM > SCALE this option was not available to me. Only the FREE TRANSFORM PATH or TRANSFORM PATH options were available. When I selected the SCALE in the TRANSFORM PATH menu (just to see what would happen) it started to scale a completely unrelated layer that DID have a path to it. However, the layer of my image was still selected and NOT the layer with the path. This image layer has no path even on it or around it in any way.  I tried to select the folder layer and the same thing happened. It selected this one path and tried to scale it. I selected the layer I just previously scaled and tried to scale it again and it will only allow me to select the transform path option. I selected it to see again what would happen and once again it selected this completely unrelated path on a completely different layer. WHAT?????  This makes absolutely no sense! I have tried restarting both my computer and PS and it won't stop happening! I really need to get this file finished and uploaded to my developer ASAP so I really hope that someone has some insight as to why this is happening.

    hedger,
    How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Remote Desktop Access with Mac and Asus Transformer Prime

    I have an E2000 router with the most current firmware. I have a Sony VAio laptop with Windows 7 Home Premium 64bit,a Macbook with 10.6.8, and a new Asus Transformer Prime with ICS.My work desktop is a Dell Optiplex 380 with Windows 7 Pro 32bit. I frequently work from home and have no issues remoting into to my work PC from by Sony laptop via VPN and RDP.However I have never been able to connect successfully to my work PC with my Macbook(using Remote Desktop Connection 2.1 for Mac OS) or Asus tablet(using WYSE Pocket Cloud RDP app for Android). I can however connect to the VPN itself on the Macbook and tablet without issue same as my Windows laptop. The other interesting part is I can connect via RDP when I am connected to a Mi-Fi 3g hotspot. So it is definitely something in the my Linksys E2000 blocking the connection for some reason. I have even set Port forwarding of 3389 with the ip's of both the Macbook and Asus tablet.I have also tried connecting via ethernet to the router with the same outcome. I cannot ping my work pc from either device as well.In addition the firewall on my work PC is completely disabled and all services related to Remote desktop access are enabled and running.Does anyone have any ideas?

    For my tablet its own ip assigned by the router. Same with the macbook.the Pocketcloud RDP app also uses 3389.I have port 3389 set for both internal and external port and protocol "both" under the Single Port Forwarding tab in the router config.

  • A Designer with a H/Parallax and a bag of goodies

    Hello, hopefully theres a person who knows the location to these - or can answer them???
    Started using EA last week, and from a PS and AI background and I love it.
    But I have an issue with the concept that is taken shape, and now I cannot complete it for client on time.
    So I have all the artwork for a:
    Horizontal Parallax moving Interactive Inforgraphic -
    My stage is 600px H and 4000px W, with 5 seperate background colours 800px w each, which I would like to scroll though (horizontally ---no vertical movement)
    So how do I activate horizontal scrolling???
    I would also like a Next & Previous (forwards - backwards) button on each page which are clickable (mine aren't doing that!)
    And finally on the base of the inforgraphic I require a contant measurement of your location and the page your on, so you can click 2 pages back if you wish.
    I was thinking about Adobe Muse - but I don't want a seperate URL - client wants this to be embeded on their website.
    If someone can provide a similar example, and tell me how to adapt to draw in my elements and symbols?
    Many thanks,
    PS - I've been added script from EdgeCommons on Parallax....am I doing it wrong?
    yepnope({
        load: "http://cdn.edgecommons.org/an/1.1.2/js/min/EdgeCommons.Parallax.js",
              callback: function() {
                        EC.centerStage(sym);
                        EC.Parallax.setup(sym);
                        EC.Parallax.setup(sym, "horizontal");
    // Show an Element
    Many thanks!!!!

    Sample here: https://app.box.com/s/fj9w3walfoo2b3cfn2u2
    Add this plugin:
    http://css-tricks.com/examples/HorzScrolling/jquery.mousewheel.js
    and
    add this code:
    $(function() {
       $("body").mousewheel(function(event, delta) {
          this.scrollLeft -= (delta * 30);
          event.preventDefault();

  • BI Admin Tool and XSLT transformation for XML data source - How it works ?

    Hello,
    There is a possibility to import data from XML data source using BI Admin Tool.
    In the import window we can point XSLT file. What is the purpose of that XSLT field?
    Why I am asking ?
    I thought it is smth like XSLT processor, but simply it doesnt work.
    What I did:
    - I pointed XML data source file
    - I pointed XSLT transformation file
    - Click OK, and still get the message that the XML file structure is not supported
    After that I transformed that XML file with some desktop XSLT processor using the same XSLT file, and I tried to connect that file directly using BI Admin tool.Then it works. So it means that the transformation is ok.
    So basically one question comes to my mind in that situation:
    What is the purpose of XSLT field in BI Admin Tool when it comes to XML data source ?
    (it doesnt look like XSLT processor)
    Greetings
    /Michal

    Hi Mariano
    Why you need to use XSLT for transforming XML file into ABAP table
    Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
    If you have requirement like you need to read XML file and then insert the data into a SAP table
    You can use
    File to RFC
    File to Proxy scenario using SAP PI.
    Please provide more inputs on requirement to help
    Thanks
    Gaurav

  • Testcase problem using two file adapter and a transformation

    We've got an input which looks like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    </rows>
    I've created an XSD for this message which looks like this ( straightforward ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.nl/testschema" xmlns:test="http://www.test.nl/testschema" elementFormDefault="unqualified">
         <element name="row">
              <complexType>
                   <sequence>
                        <element ref="test:id"/>
                        <element ref="test:naam"/>
                   </sequence>
              </complexType>
         </element>
         <element name="rows">
              <complexType>
                   <sequence>
                        <element ref="test:row" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="naam">
              <simpleType>
                   <restriction base="string">
                   </restriction>
              </simpleType>
         </element>
         <element name="id">
              <simpleType>
                   <restriction base="byte">
                   </restriction>
              </simpleType>
         </element>
    </schema>
    I've imported this XSD in my ESB project and created a file adapter which reads this type op files.
    I've created another file adapter to write the files 1:1 to an output dir.
    In the routingservice I've created a very straightforward XSL mapping which maps everything 1:1.
    Now the problem
    When I use this input :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    my output result is:
    <?xml version="1.0" ?><imp1:rows xmlns:imp1="http://www.test.nl/testschema"/>
    I know this is a namespace issue. When I add the namespace
    <?xml version="1.0" encoding="UTF-8"?>
    <rows xmlns="http://www.test.nl/testschema">
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    I get the correct ( and 1:1 output ).
    The problem is. In the scenario I'm about to build the input xml messages do not have an namespace. How can I alter my xsd file or anything within my ESB project that all files will be picked up correctly and processed without having an default namespace?
    Any help is appreciated!

    True,
    But its the other way around what is causing my problem.
    Because the input xml files contain no namespace at all the xml messages are transformed but result in an almost empty xml message. ( e.g. the root element is there and thats it ).
    This is because the XML transformation mapper in ESB ( as well as BPEL ) excplicitly needs a namespace.
    I solved it by editing the XSL by hand, removing the :imp1 namespace prefixes in the select="" tags. e.g.
    <xsl:for-each select="/imp1:rows/imp1:row"> is updated in
    <xsl:for-each select="/rows/row">
    As far as I know this is the only workaround at the moment that I could find.

  • XSLT and ABAP Transformation Deep Structure

    Hello Everyone,
    While I've read the forums and the links of a number of folks doing the same thing. I am stuck in that I cannot figure out how to populate a deep structure via XSLT.  Not sure what is going wrong, but I suspect it is obvious. The simple problem is that my structure is not getting populated. It is blank.  The transformation works in testing STRANS (and in Stylus Studio). 
    I cannot figure out what is wrong that makes the t_pexr2002 table blank.  Thanks for any insight. 
    Greg
    The simple program is:
    TYPES: BEGIN OF ty_head,
              sndprn TYPE string,
              bgmref TYPE string,
              moabetrh TYPE string,
              create_date TYPE string,
              settlement_date TYPE string,
              no_lines TYPE string,
           END OF ty_head.
    TYPES: BEGIN OF ty_pricing,
            moabetr TYPE string,
           END OF ty_pricing.
    TYPES: BEGIN OF ty_item,
              docname TYPE string,
              docnummr TYPE string,
              pricing TYPE ty_pricing,
            END OF ty_item.
    TYPES: BEGIN OF ty_summary,
              status_message TYPE string,
           END OF ty_summary.
    TYPES: BEGIN OF ty_mn,
            header_data  TYPE ty_head,
            item_data    TYPE ty_item,
            summary_data TYPE ty_summary,
           END OF ty_mn.
    DATA: t_pexr2002 TYPE STANDARD TABLE OF ty_mn.
    DATA: xml_doc TYPE REF TO cl_xml_document, xml TYPE string.
    CREATE OBJECT xml_doc.
    CALL METHOD xml_doc->import_from_file
      EXPORTING
        filename = 'C:\temp\2640273.xml'.
    CALL METHOD xml_doc->render_2_string
      EXPORTING
        pretty_print = 'X'
      IMPORTING
        stream       = xml.
    CALL TRANSFORMATION zusl_pexr2002_v1
    SOURCE XML xml
    RESULT output = t_pexr2002.
    Edited by: Thomas Zloch on Jun 9, 2010 6:05 PM

    Here is my XSLT:
    Here is the transformation: Also pretty simple...
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... >
      <xsl:strip-space elements="*"/>
      <xsl:template match="/PEXR2002/IDOC">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <OUTPUT>
                <HEADER_DATA>
                  <SNDPRN>
                    <xsl:value-of select="EDI_DC40/SNDPRN"/>
                  </SNDPRN>
                  <BGMREF>
                    <xsl:value-of select="E1IDKU1/BGMREF"/>
                  </BGMREF>
                  <MOABETRH>
                    <xsl:value-of select="E1IDKU5/MOABETR"/>
                  </MOABETRH>
                  <CREATE_DATE>
                    <xsl:value-of select="EDI_DC40/CREDAT"/>
                  </CREATE_DATE>
                  <SETTLEMENT_DATE>
                    <xsl:value-of select="E1EDK03/DATUM"/>
                  </SETTLEMENT_DATE>
                  <NO_LINES>
                    <xsl:value-of select="count(E1IDPU1)"/>
                  </NO_LINES>
                </HEADER_DATA>
                <ITEM_DATA>
                  <xsl:for-each select="E1IDPU1">
                    <DOCNAME>
                      <xsl:value-of select="DOCNAME"/>
                    </DOCNAME>
                    <DOCNUMMR>
                      <xsl:value-of select="DOCNUMMR"/>
                    </DOCNUMMR>
                    <PRICING_DATA>
                      <xsl:for-each select="E1IDPU5[MOAQUAL = '006']">
                        <MOABETR>
                          <xsl:value-of select="MOABETR"/>
                        </MOABETR>
                      </xsl:for-each>
                    </PRICING_DATA>
                  </xsl:for-each>
                </ITEM_DATA>
                <SUMMARY_DATA>
                  <xsl:for-each select="EDI_DS40">
                    <STATUS_MESSAGE>
                      <xsl:value-of select="STAPA1"/>
                    </STATUS_MESSAGE>
                  </xsl:for-each>
                </SUMMARY_DATA>
            </OUTPUT>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>
    Edited by: Thomas Zloch on Jun 9, 2010 6:05 PM

  • XSLT and Call transformation

    Hi
    Using <b>XSLT</b> and <b>Call transformation</b> (XSLT scheme) to convert XML file to html the problem is that line breaks in xml are ignored when passing the call tranformation.
    <b>Note in xml look like:</b>
    <com:Note><![CDATA[
    Serie 87% 0,000000
    Amount in this period 01-01-2006 - 01-07-2006 - 180 days
    Currency 16.267.117,38 DKK
    Loan DKK 14.332.700,00
    Debt 7.358.534,23
    Indexsfactor 226,230
    ]]></com:Note>
    <b>When HTML displayed in sap, - note is just a long string which continue out of the screen. Note looks like:</b>Serie 87% 0,000000Amount in this period 01-01-2006 - 01-07-2006 - 180 daysCurrency 16.267.117,38 DKKDebt 7.358.534,23Indexsfactor 226,230
    What to do ? Any ideas ?

    hi Jan,
    Check out the link
    http://www.topxml.com/code/default.asp?p=3&id=v20031025170911&ms=20&l=xsl&sw=categ
    This link contains a file that contains an importable xslt stylesheet with two templates. The first is a text wrap template that breaks texts at carriage returns. You need to modify the xslt.
    [code]<xsl:template name="text.wrap">
            <xsl:param name="texttowrap"/>
            <xsl:variable name="textlength" select="string-length($texttowrap)"/>
            <!-- don't waste time if no text supplied or remaining from recursion-->
            <xsl:if test="$textlength > 0">
                <xsl:choose>
                    <xsl:when test="contains($texttowrap,$CR)">
                        <!-- get the text before the first instance of a carriage return character-->
                        <xsl:variable name="<span  style="background-color:yellow;color:red;font-weight:bold;">line</span>beforefirst<span  style="background-color:yellow;color:red;font-weight:bold;">break</span>" select="substring-before($texttowrap,$CR)"/>
    .................[/code]
    Hope this helps.
    Regards,
    Richa

Maybe you are looking for

  • How to remove credit card information when the none button is not available?

    The None button doesn't show up when I edit my billing information. Help?

  • Question about 10.2.0.5.1 Patch Set Update (Patch 9952230)

    Hello, I just installed the latest patchset update, without any errors. I followed carefully the README, nothing too much complicated. So, when I log in my instance with SQL*Plus the banner message is: Connected to: Oracle Database 10g Enterprise Edi

  • Need to re-install Element 7

    Hello, I had to fe-format I had Element 7 on in doing so I lost it I started out with Element 5 which i have the cd, then I paid for and downloaded for 7. I have looked in My Order History which does not show the download.  I have the order number an

  • Problems with android account

    Hi there, we actually have one adobe account to distribute our content to ios and android. Now we want to split these two worlds and create one account for ios and one for android. I´ve created a new adobe account for android, put the correct Android

  • Daily Decline in ranking score

    Dear Moderators:                           I want to know the criteria or method which is used to change the daily points. I am top contributor at ERP financial , Yesterday my points in last 30 days were 638 but today i found them 588. Overall points