White space not preserved with XSL Mapping

Hello
Is there a problem with preserving white space when using a XSL mapping? My schema has the following included:
              <xs:element name="FileVersion" minOccurs="1" maxOccurs="1">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:length value="5"/>
                    <xs:whiteSpace value="preserve"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>             
The whiteSpace attribute alone didn't do it, so I've added length as well which didn't help either.
My imported XSL mapping writes a fix value of " 6.00" (having a leading space) into the field:
     <FileVersion>
          <xsl:value-of select="' 6.00'"/>
     </FileVersion>
Processing the mapping with an external tool provides the correct output with a leading space.
The leading space is missing in the output file or when I do testing in the integration builder. Looking at the target payload in sxmb_moni also shows me the value without leading space:
  <FileVersion>6.00</FileVersion>
What do I miss? I haven't really found a posting regarding the issue, hence I assume it isn't really one!? Any feedback is appreciated.
Thanks,
Daniel

My XSLT mapping does not have a preserve-space declaration. I am using Altova MapForce, and apparently preserve-space is not a declaration that is supported by MapForce. I would need to manually add it to the mapping after generating it in the tool. Nevertheless, isn't preserve-space the default anyway if nothing is declared, and therefore not necessary?.

Similar Messages

  • Footer text-alignment in fluid grid layout and another color in white space, not the body

    I'm working in a fluit grid layout. Everythings works almost perfekt. Accept for de alignment in Opera mini. Mini works not with %. So it must be padding, line-height and something else. But then the footer does not stick.
    In Opera mini
    If i want the footer to stick to for example the bottom. I'm may not use padding in de footer.
    De <p> i used for alignment in from the text. Now my footer must have a alignment in the middle of the footer (center). With padding in footer, it wil work, but then my footer will not stick to the bottom anymore.
    and i have also another question, about the white spaces in de fluid grid. I don't want to give the header, body, footer another color. But that outside of my website.
    With a normal website you give the html and the body grey and the content white. But if i do this with the fluid grid. The content because grey. Is there also a code for.
    This is what it must be. It is a example, not for real. But i really want to know the code for it.

    I found the wright code for the footer. Thanks a lot. I'm happy.
    I'm also searching for a code for max-height. For example one page i have less text, so the page is not filled to the bottom. I want for designing reasons this. So the page is always fitt from header to footer.
    It must not scrolled. Just complete for the desktop-computer and laptop. Is there a code for. Because there is already internet-tv and that are big-screens. It must be for all the browser also ie7, ie 6, opera, safari, chrome and more.

  • Spaces not working with Mice

    For some reason, I can no longer active Spaces with my mice. It says it's on, but for some reason when I try to assign a button my mouse doesn't respond at all. I can only active it with a manual keyboard key such as F17.
    Any ideas, why it's not working with both of my mice?

    I am having the same issue.
    I have website for my 7th Grade class. Over the weekend, I updated to iWeb'09. Today, when my students (using IE7 tried to access the site, I noticed loading pages takes much longer and the tech guy tells me that IE doesn't work with Mobile.Me.
    http://web.me.com/socialstudies8/SullivanClasswebsite/MrSullivansWebSite.html
    Are there really issues with IE and Mobile.Me servers?

  • Space not preserving for span elements

    Hi,
    I am using TLF version 442 for my application.
    When i am doing some changes like making text bold like below:
    "For Flash 10" to "For Flash 10". Then it shows it correctly.
    But again if I export this and and reimport it shows "ForFlash10" i.e. It eliminates the spaces.
    I have tried for "XML.ignoreWhitespace", it solves this but if I am having multiple span elements with this then it will take each one on next line. As it preserves the spaces now.
    I want it on same line. Is there any way of doing this, ignoreWhiteSpaces is also not as per the expectation as it leaves unneccessary spaces for lines.
    Regards,
    Rajesh

    Hi Richard,
    while loading for the first time I have below markup:
    <TextFlow whiteSpaceCollapse="preserve" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10" lineBreak="inherit" verticalAlign="middle" xmlns="http://ns.adobe.com/textLayout/2008">
      <p textAlign="center">
        <span fontFamily="Verdana" fontSize="41" color="0x0" LETTERSPACING="0" KERNING="0">
          For Flash 10 Please Do not Delete This Template
        </span>
      </p>
    </TextFlow>
    after I make "Flash" Italic the markup becomes:
    <TextFlow whiteSpaceCollapse="preserve" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10" lineBreak="inherit" verticalAlign="middle" xmlns="http://ns.adobe.com/textLayout/2008">
      <p textAlign="center">
        <span fontFamily="Verdana" fontSize="41" color="0x0" LETTERSPACING="0" KERNING="0">
          For
        </span>
        <span fontFamily="Verdana" fontStyle="italic" fontSize="41" color="0x0" LETTERSPACING="0" KERNING="0">
          Flash
        </span>
        <span fontFamily="Verdana" fontSize="41" color="0x0" LETTERSPACING="0" KERNING="0">
          10 Please Do not Delete This Template
        </span>
      </p>
    </TextFlow>
    If we notice here it removes the space after "For" in first <span> and space before "10" in last <span>.
    I am getting these after I export this when I am done with Italic on word "Flash".
    For exporting I am using  below code:
    var exportXML:XML = XML(TextFilter.export(textFlow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE));
    Please let me know if I am making any mistake in this. My TLF version is 442 and Flex SDK is 3.2.
    Regards,
    Rajesh

  • White screen, not syncing with computer- tried holding buttons please help?

    Please help. The screen of my daughters 4th gen ipod has frozen white. Have tried syncing the frozen ipod with computer but it is not recognised. I have treid holding home and sleep button at the same time but no change. Would be prepared to do a reset but the computer cannot recognise it. Have read various other responses to questions and am currently leaving the batteries to drain. None of this is helped by the fact that my daughter is sobbing about it in my ear! Ahhhhh

    Phil, did you have a hard Saturday night?  The ling you provided is for "regular" iPod, not iOS devises,  You link stated:
    "If you have an iPod touch, see iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows."
    Philly_Phan wrote:
    Have you been here?
    http://support.apple.com/kb/TS1369
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • Procedure Transformation not executing with a Mapping

    I have a mapping that uses a number of procedure and function transformations.
    Basically the flow is as follows source data from an external table, push into a funtion transformation for validation output from this is feed into a splitter.
    Where validation fails flow from splitter is pushed into another function transformation and output from that get pushed into an error table.
    Where validation passes output flow from splitter combined with flow from a procedure transformation is pushed into a target table.
    The issue is where validation passes it appears not be execute the procedure - hence appropriate values to the target table is null, executing this procedure in SQLPLUS works fine.
    The strange thing is where validation fails the data flows nicely to the error table.
    Is there an issue in using procedure transformations in this way?
    Thanks in advance for any help.
    Message was edited by:
    kayvic01

    Hi,
    The flow looks ok...when the validation passes the output attributes from the splitter outgroup are not properly taken in by the procedure. Since u have executed the procedure seperately you will manually give the IN attributes for the procedure...check whether ur manual IN for the procedure matches with the outgroup from the splitter. Generate an internediate script and check...it will give you the solution,
    Regards
    Bharath

  • White spaces not appearing

    Hi.
    The last field in the file is not populated to its fullest length and extra spaces from the last field are removed automatically when we download file from XI application server.Example : If the last field is of length 6 and the output would be fine if i fill Pass123 but if i fill Pass1 then the output would appear as Pass1 but i need the output as "Pass1  ".
    Please let me know the solution.
    Regards,
    Sidhvin

    U may try to concatenate the string Pass1 with two spaces "  ". By the way, what is ur scenario?
    Regards,
    Prateek

  • XML data not displayed with XSL

    I have just started learning XML so bear with me. I have a xml document that I created and want to use a stylesheet to display it in html but it doesn't seem to be working. Here is the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet href="XSL\myXSL.xsl" type="text/xsl"?>
    <GstBk:Book xmlns:GstBk="http://www.testurl.com">
    <GstBk:Guest>
    <GstBk:Address>
    <GstBk:Name>John Doe</GstBk:Name><GstBk:From>Anywhere USA</GstBk:From>
    </GstBk:Address>
    </GstBk:Guest>
    </GstBk:Book>
    And here is the xsl document:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:GstBk="http://www.testurl.com"
    version="1.0"
    >
    <xsl:template match="GstBk:Book">
    <html>
    <head>
    <title>Guest Book</title>
    </head>
    <body>
    <xsl:apply-templates />
    </body>
    </html>
    </xsl:template>
    <xsl:template match="GstBk:Guest">
    Name = <xsl:value-of select="GstBk:Name" />
    </xsl:template>
    </xsl:stylesheet>
    But the only data I get on the browser is:
    Name =
    Can anyone see something wrong with my files? I have downloaded examples from the net and they seem to work. I even compared them to my files and can't see anything obviously different. Any ideas?
    Thanks

    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:GstBk="http://www.testurl.com">
       <xsl:template match="GstBk:Book">
          <html>
             <head>
                <title>Guest Book</title>
             </head>
             <body>
                <xsl:apply-templates />
             </body>
          </html>
       </xsl:template>
       <xsl:template match="GstBk:Guest">
          Name = <xsl:value-of select="GstBk:Address/GstBk:Name" />
       </xsl:template>
    </xsl:stylesheet>This style sheet with the xml you provided works for me. I use Xalan 2.1.0 for the transformation with the command line: java org.apache.xalan.xslt.Process -in your.xml -xsl your.xsl
    and I get this for the output:
    <html xmlns:GstBk="http://www.testurl.com">
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Guest Book</title>
    </head>
    <body>
          Name = John Doe
    </body>
    </html>If you still see a different result, let me know what your environment is.

  • Cleaning white space not working?

    Select ltrim(offer description) from offer. top  4 records not working rest is fine.
    Offer Description
    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $20 postage / Free Scale / Welcome Kit 2PC
    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $20 postage / Free Scale / Welcome Kit 2PC
    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $40 postage / Free Scale 4 Postage Coupon Welcome Kit
    Stamps.com Pro - HP Customers $17.99 monthly / 4-week Trial / $5 free postage / $60 postage / Free Scale Welcome Kit - 6 Postage Coupons
    Stamps.com Enterprise Premier Distributed - 3 Users $29.99 Monthly $5 free postage / Scale immediately 3.5 Welcome Kit

    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $20 postage / Free Scale / Welcome Kit 2PC
    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $20 postage / Free Scale / Welcome Kit 2PC
    Stamps.com Pro $15.99 monthly / 4-week Trial / $5 free postage / $40 postage / Free Scale 4 Postage Coupon Welcome Kit
    Stamps.com Pro - HP Customers $17.99 monthly / 4-week Trial / $5 free postage / $60 postage / Free Scale Welcome Kit - 6 Postage Coupons
    Stamps.com Enterprise Premier Distributed - 3 Users $29.99 Monthly $5 free postage / Scale immediately 3.5 Welcome Kit

  • XSL Mapping Problem

    Hi,
    I'm not familiar with XSL mapping for XI, and currently, it is needed in a project. The problem is there are some fields that are not mapped correctly so I have to modify the XSL. I was able to map it somehow using the existing XSL as basis, but when it reaches the target destination, it returns an error that the field mapped is a lookup field, and its target is not.
    Just want to ask how to go about this error? How do you define a certain field in the XSL so that it doesn't turn into a lookup field?
    Thanks!

    Hi Angelo,
    Pleae check folowinbg links
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    Also this tehnical article
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/how%20to%20create%20an%20xslt%20mapping%20file
    Regards,
    Divya

  • Oracle XSLT Transformation not preserving space in text element

    If we have a BPEL process which is calling a XSLT transformation contains the code similar as below:
    for Populating an element with white space only
    <tns:TargetField>
    <xsl:text disable-output-escaping="yes"> </xsl:text> <!--Note the whitespace , also tried with disable-output-escaping =”no” -->
    </tns: TargetField>
    Our expected result / output would be:
    <tns:TargetField> </tns: TargetField> <!--Note the whitespace -->
    But, we get:
    <tns:TargetField/>
    Oracle XSLT is ignoring the white space even if we try with preserve space in XSD, or in XSLT this is not producing the expected output.
    This looks a BUG with Oracle XSLT Transformation .
    For a workaround solution we can use below XSLT snippet:
    *<tns:TargetField>*
    *<xsl:value-of select="string(' ')"/> <!--Note the whitespace -->*
    *</tns:TargetField>*
    This is returning Output:
    *<tns:TargetField> </tns:TargetField> <!--Note the whitespace -->*
    Any other work around do you find?
    Edited by: panks on Jul 29, 2011 12:37 PM

    The workaround only works with one white space, if one put more white spaces, it do not work.
    <tns:TargetField>
    <xsl:value-of select="string(' ')"/> <!--Note the whitespaces -->
    </tns:TargetField>
    This is returning Output:
    <tns:TargetField> </tns:TargetField> <!--Note the only one whitespace -->
    Edited by: user10697506 on Aug 10, 2011 3:27 PM

  • Need help with gradient map

    Hello All,
    Please can someone please advice me how to get the following gradient, I have tried but with no luck I am not good with gradient map!

    Hello!
    What part do you have trouble with? the recreation of the gradient, or how it affects the image?
    In the gradient map editor, you can double-click on the bottom markers (called gradients stops) to change their color, and drag them around to re-create what you see... Click between two markers to add one, drag a gradient stop down to remove it.
    In fact, you do not need the fourth gradient stop, the white one on the right side.
    The top markers control the transparency (in regular gradients, gradient maps are unaffected)
    With such a gradient map, the dark areas of the image will be white, neutrals will be black and light areas will be white.

  • Filters not working with Tomcat 5

    Hi,
    I've attempted to implement a filter in my JSP program. Below is the web.xml I'm using and the filter implementation.
    The problem is doFilter simply isn't being called. init is called because when I do an ant reload it print my error into the log but doPost never prints anything anywhere. Please help!!! I'm completely foxed.
    I thought it might be something to do with the FilterConfig as I don't understand how its set or called but as I don't understand, I don't know?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>themoves.co.uk Content Management System</description>
        <display-name>themoves.co.uk CMS</display-name>
        <filter>
             <filter-name>authFilter</filter-name>
             <filter-class>uk.co.themoves.AuthenticationFilter</filter-class>
        </filter>
        <filter-mapper>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
        </filter-mapper>
        <servlet>
            <servlet-name>Controller</servlet-name>
            <servlet-class>uk.co.themoves.Controller</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Controller</servlet-name>
            <url-pattern>/Controller</url-pattern>
        </servlet-mapping>   
        <session-config>
            <session-timeout>15</session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>/WEB-INF/welcome.jsp</welcome-file>
        </welcome-file-list>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
          <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
          <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
          <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
          <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
          <taglib-location>/WEB-INF/sql.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
          <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
          <taglib-location>/WEB-INF/x.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
          <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
        </taglib>
    </web-app>Filter implementation
    package uk.co.themoves;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.io.IOException;
    public class AuthenticationFilter implements Filter{
         private static final String LOGIN_PAGE = "/login.jsp";
         private FilterConfig config = null;
         private Connection db = null;
         public void init(FilterConfig _config) throws ServletException{
              System.err.println("init successful");
              this.config = _config;
              //do a database connection here
              if(db == null){
                   try{
                        Class.forName("org.gjt.mm.mysql.Driver");
                        this.db = DriverManager.getConnection("jdbc:mysql://localhost:3306/themoves", "cwaig", "UUyGiRPE");
                   } catch (Exception e){
                        System.out.println("error Connecting to themoves DB: " + e.toString());
         public void doFilter(ServletRequest _req, ServletResponse _res, FilterChain _chain) throws IOException, ServletException{
              System.err.println("doFilter");
              //cast the Servlet to a httpServlet
              HttpServletRequest httpReq = (HttpServletRequest) _req;
              HttpSession session = httpReq.getSession();
              String uid = httpReq.getParameter("uid");
              String password = httpReq.getParameter("pass");
              //if action is login then login else check
              String action = (String) httpReq.getParameter("action");
              if(action.equals("login")){
                   //check the username and password
                   UserManager userManager = new UserManager(this.db, uid, password);
                   if(userManager.auth()){
                        //set session variable and carry on
                        session.setAttribute("uid", uid);
                        _chain.doFilter(_req, _res);
                   } else {
                        //go back to the login page
                        RequestDispatcher rd = httpReq.getRequestDispatcher(LOGIN_PAGE);
                        rd.forward(_req, _res);
              } else {
                   //check the session to make sure they are logged in
                   String session_uid = (String) session.getAttribute("uid");
                   if(session_uid == null){
                        RequestDispatcher rd = httpReq.getRequestDispatcher(LOGIN_PAGE);
                        rd.forward(_req, _res);     
                   } else {
                        //set session variable and carry on
                        session.setAttribute("uid", uid);
                        _chain.doFilter(_req, _res);
         public void destroy(){
              this.config = null;
              //clean up the database connection here
    }

    First of all this is not correct:
    <filter-mapper>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
    </filter-mapper>It is:
    <filter-mapping>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
    </filter-mapping>
    Also note that with this mapping configured onlt Servlets/JSPs called using the URL <your_domain>/<your_context>/Controller will be called.
    Any other urls will not be subject to the filter.
    I don't know all there is to know about filters, but I would be concerned that maybe your connection object is not thread safe being defined in the scope that it is.

  • How can I evaluate the count of a query I'd like to execute with a map...

    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

    Hi John,
    You should be able to executeWithMap that query, too. Is that giving you
    problems?
    Note that there may be an easier solution. What do you do if there are more
    than 200 results? If, e.g., you just get the first N, then one option is to
    set the FetchBatchSize on the query to N (thus activating large result set
    support), and then call size () on the resulting Collection. This will
    issue a SELECT COUNT(*) to the database to determine the size automatically.
    Thanks,
    Greg
    "John" <[email protected]> wrote in message
    news:ctq9a8$4gr$[email protected]..
    >
    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

  • How to use Google Maps with dvt:map ?

    http://www.oracle.com/technology/software/products/mapviewer/text_files/mapviewer1112_readme.txt
    http://www.oracle.com/technology/software/products/mapviewer/index.html
    Native support of Google Maps and Bing Maps API. You can now display
    Google and Bing maps natively in your Oracle Maps (JavaScript)
    applications. Please check out the online Oracle Maps JSDoc API on
    how to use the new classes.Unfortunatly it looks like it's not possible with dvt:map
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12418/tagdoc/dvt_map.html
    It's an important requirement for our project and probably for many ADF customers.
    I would like to know if :
    Is there any way to use Google Maps with dvt:map ?
    Otherwise, is there any plan to support it ? Should we expect it within a year ?
    Else, I think we will use directly the Javascript Oracle Maps API but we will miss the built-in functionnalities of dvt:map
    Thanks in advance,
    JP

    Any news about this theme?

Maybe you are looking for