Validation issues with form (was: Validation)

I am having validation issues with my form.  Even after I put in a name and last name it says the entries are invalid.  Could this be a hosting problem?  www.bussmanncomputers.net/Nx

Below is mail form from my isp, which is Godaddy:
This is the form that I am having some problems with configuring.
<?php
if ( !isset($_SERVER['SPI'])) {
        die();
if (!isset($_SERVER['DOCUMENT_ROOT'])) {
        echo("CRITICAL: we seem to be running outside of the norm.\n");
        header("Location: http://".$_SERVER["HTTP_HOST"]."/");
        die("CRITICAL: Document root unavailable.\n");
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET") {
        $query_vars = $_GET;
elseif ($request_method == "POST") {
        $query_vars = $_POST;
reset($query_vars);
function customsort($a,$b) {
        // $a is array for form vars, $b is comma seperated case sensitive field order
        // this is case sensitive -- good idea to hrc that.
        $data = array();
        if ( strstr($b,',') == FALSE )  {
                $b = $b.",";
        $ordering = split(',',$b);
        foreach ($ordering as $orderitem) {
                if ( ($orderitem != null) && ($orderitem != "") ) {
                        if (isset($a[$orderitem])) {
                                $data[$orderitem] = $a[$orderitem];
        foreach ($a as $key=>$val) {
                $data[$key] = $a[$key];
        return $data;
function xmlentities($string) {
        return str_replace ( array('&', '"', "'", '<', '>'), array('&amp;', '&quot;', '&apos;', '&lt;', '&gt;'), $string);
$t = date("U");
$formhomedir = preg_replace('/.*\/home\/content/','',$_SERVER['DOCUMENT_ROOT']);
$formhomedir = explode('/',$formhomedir);
if (count($formhomedir) <= 4) {
        $formhome="/home/content/".$formhomedir[1]."/".$formhomedir[2]."/data/";
else {
        $formhome="/home/content/".$formhomedir[1]."/".$formhomedir[2]."/".$formhomedir[3]."/".$f ormhomedir[4]."/data/";
$file_order = ".default";
$file_format = ".text";
$file_interval = ".15m";
$field_order = "";
if (isset($query_vars['form_order'])) {
        if ($query_vars['form_order'] != "alpha") {
                $field_order=$query_vars['form_order'];
                $file_order=".custom";
                $query_vars = customsort($query_vars,$field_order);
        else {
                switch ($query_vars['form_order']) {
                        case "alpha":
                                uksort($query_vars,'strnatcasecmp');
                                $file_order=".alpha";
                        break;
                        default:
                                $file_order=".default";
                        break;
if (isset($query_vars['form_format'])) {
        switch ($query_vars['form_format']) {
                case "csv":
                        $file_format = ".csv";
                break;
                case "html":
                        $file_format = ".html";
                break;
                case "xml":
                        $file_format = ".xml";
                break;
                case "text":
                case "default":
                default:
                        $file_format = ".text";
                break;
if (isset($query_vars['form_delivery'])) {
        switch ($query_vars['form_delivery']) {
                case "hourly":
                        $file_interval = ".60m";
                break;
                case "hourly_digest":
                        $file_interval = ".60mc";
                break;
                case "daily":
                        $file_interval = ".24h";
                break;
                case "daily_digest":
                        $file_interval = ".24hc";
                break;
                case "digest":
                        $file_interval = ".15mc";
                break;
                case "default":
                default:
                        $file_interval = ".15m";
                break;
$file = $formhome."form_".$t.$file_order.$file_format.$file_interval;
$fp = fopen($file,"w");
reset($query_vars);
switch ($file_format) {
        case ".csv":
                $csvkeys = "";
                $csvvals= "";
                $firsttime = "";
                while (list ($key, $val) = each ($query_vars)) {
                        if ( ($key == "form_order") ||
                                ($key == "form_format") ||
                                ($key == "form_delivery") ||
                                ($key == "redirect") ) {
                        else {
                                if ($csvkeys != "") {
                                        $firsttime=",";
                                $tmpkey=escapeshellcmd($key);
                                $csvkeys = $csvkeys.$firsttime."'".$tmpkey."'";
                                $tmpval=escapeshellcmd($val);
                                $csvvals = $csvvals.$firsttime."'".$tmpval."'";
                fputs($fp,"$csvkeys\n");
                fputs($fp,"$csvvals\n");
        break;
        case ".html":
                fputs($fp,"<table border=\"1\" cellspacing=\"1\" cellpadding=\"2\">\n");
        break;
        case ".xml":
                fputs($fp,"<form>\n");
        break;
reset($query_vars);
while (list ($key, $val) = each ($query_vars)) {
        if ($key == "redirect") {
                $landing_page = $val;
        if ( ($key == "form_order") ||
                ($key == "form_format") ||
                ($key == "form_delivery") ||
                ($key == "redirect") ) {
        else {
                switch ($file_format) {
                        case ".html":
                                fputs($fp,"\t<tr>\n");
                                fputs($fp,"\t\t<td><b>$key</b></td>\n");
                                fputs($fp,"\t\t<td>$val</td>\n");
                                fputs($fp,"\t</tr>\n");
                        break;
                        case ".csv":
                                // content is already output
                        break;
                        case ".xml":
                                fputs($fp,"\t<field>\n");
                                fputs($fp,"\t\t<fieldname>".xmlentities($key)."</fieldname>\n");
                                fputs($fp,"\t\t<fieldvalue>".xmlentities($val)."</fieldvalue>\n");
                                fputs($fp,"\t</field>\n");
                        break;
                        case ".text":
                        default:
                                fputs($fp,$key.": ".$val."\n");
                        break;
switch ($file_format) {
        case ".html":
                fputs($fp,"</table>\n");
        break;
        case ".xml":
                fputs($fp,"</form>\n");
        break;
fclose($fp);
if ($landing_page != "") {
        header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
else {
        header("Location: http://".$_SERVER["HTTP_HOST"]."/");
?>

Similar Messages

  • Issue with form based Authentication in three tier sharepoint 2013 environment.

    Hi,
    We are facing issue with form based Authentication in three tier environment.
    We are able to add users to the database and in SharePoint.
    But we are not able to login with created users.
    In single tier everything working fine
    Please help , Its urgent ... Thanks in advance.
    Regards,
    Hari
    Regards, Hari

    if the environments match, then it sounds like a kerberos double-hop issue
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Issue with back end validation in jsf 2.0

    I am upgrading my apps to jsf2.0 and I came across something that I hope you have already solved.
    In jsf 1.1 action methods returned a string. If that string was NOT mapped as a navigation in faces-config.xml, then it just rerendered the active page. this made doing back end validation easy because I could add messages to the faces context and when the active page rerendered the validation messages would get displayed and no one was the wiser than it was done on the back end instead of on the front end.
    In jsf 2.0 I get null pointers if I return a string that is NOT mapped as a navigation. So I changed the code to return a string that is mapped as a navigation for that page when there is a validation error. but that is treating it like a new request and not a rerender so the validation messages I added to the faces context are not there when the page renders.
    if i test submit a form that has only front end validation then it works fine and the validation messages are correctly shown.
    any suggestions?

    In 11.2.0.3 you are unlikely to see the various truncate/drop issues relating to large numbers of small extents - unless you use dictionary managed tablespaces.
    There are a couple of possible threats with small extents and highly concurrent inserts with ASSM that might be a temporary problem when the object size is small. There may still be some issues with large uncommitted inserts or deletes making other session's work very hard to identify free blocks until the large transaction has committed - these things can be hard to test.
    There may still be a couple of inefficiencies with parallel query and small extents, although parallel CTAS did have a (possibly temporary) hack to allocate immediate large extents to work around some of the silly details.
    Really you need to think through your requirements and them model them on your system - some of the anomalies have changed several times over the last three years.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Now on Twitter: @jloracle

  • Xerces Validation Issues with Honour All schema Locations

    Way back in 2009/2010 there was a bug - 284272 - that was never updated with Xerces information about validation. We have a similar issue in Luna and Mars with the WTP validation framework (with Xerxes at the center) and I'm wondering if it's due to Xerces 2.9 or something else.
    I'm not a savvy XSD guy, but the issues detailed in 284272 still occur for us with certain schema combinations. We're encountering it specifically with the JBoss/SwitchYard project and the SCA schemas we extend for the SwitchYard runtime.
    The following error is displayed in the Problems tab:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'sca:interface.java'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":interface, "http://docs.oasis-open.org/ns/opencsa/sca/200912":binding, "http://docs.oasis-open.org/ns/opencsa/sca/200912":callback, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment, "http://docs.oasis-open.org/ns/opencsa/sca/200912":extensions}' is expected. switchyard.xml src/main/resources/META-INF line 7 XML Problem
    Can someone revisit 284272 and let me know if this is indeed a Xerxes issue under the covers with the example included in the bug? It's not our example, but has the same general problem.
    I just don't want to open a duplicate of 284272 without knowing more about how the Honour All Schema Locations stuff works under the covers and if it is indeed caused by Xerces - indeed if it might be fixed by an update to Xerces further down the line (they're up to 2.11 and there was a 2.9.1 it looks like we might be able to more simply move to if it's fixed there).
    Thanks all!
    --Fitz

    I think this is the odata4 that you need for 7.3
    SCA
    ODATACXFEXT11_0-10012140.SCA
    SP11 for SAP ODATA4J+CXF-REST LIB 7.30
    0
    Info
    10352
    26.02.2014
    This might be the only package you need; it might be in your best interest to avoid manually downloading files and rely upon Solution Manager's MOpz feature to query your IdM system and let it track down all the needed packages.

  • Adobe 9 issues with forms in Acrobat Reader 7

    I've been reading up on this forum as to why the adobe rights are disabled after a user saves their data in Reader.  I have been adding form fields in Adobe Standard 9 then save the file,  test it in Reader, then Extend the Forms Fill-In for Adobe Reader and save the file with a slightly different name. The only usage rights that are allowed is to Save Form Data.  When I test the file in Reader 7, I can save the data but when I go into the document to make sure my data is there, I get that dreaded and popular message "Adobe Rights have changed and are no longer valid dialog box...
    I never changed the original extended file to cause this..even when I don't add data but save to a new file anyway I lose the writable functionality.
    A side note, I do not use LiveCycle and have been asked not to when creating these forms.
    I did not have any problems with the forms that I had other people create and extend in Adobe Pro 8.  It seems to be a Standard 9 and Pro 9 problem.  Or, it could very well be me!
    I use Reader 7 to test because these forms are for a volunteer organization and there are users on some early versions of Reader.  II do not use earlier versions of Reader.  This doesn't seem to be an issue in Reader 9.  I cannot vouch for Reader 8.
    I just had one of my form writers take my form that was done in Standard 9 and Extend Forms Fill-In via Adobe Pro 8.  She initally received a message stating that the file appears to use a new format and it may not open or display correctly.  I then got that same message when opening the extended version of the file.  The document rights on the new form allow me to add comments and markup, a digital signature and save form data. Once I fill out the fields and try to save, also get another dialog box telling me that I need Adobe Standard or Professional to save (in this case it was 7 since I'm testing in Reader 7).
    The forms that I am creating are initally PDFed by another party.  The orignal forms are created in QuarkXpress 4.1 and PDFed using Acrobat Distiller 4.0 for Macintosh.  I retrieve the files from a web site and save them to my hard drive to work on them.  They are shared via email.
    Any help would be greatly appreciated.  I've spent the last week researching but no anwers to help me solve this particular issue with 9.

    Interesting.  I did just do the Reduce File Size and extended the document and there were no dialog boxes when I saved my data.  The file size got larger instead of smaller and I received the message at the end of the Reduce File Size cycle that said " Enforcement of compatability to an earlier version of Acrobat has increased the size of some images".  There is an image in the file, not one that I added, but from the original document.  No change to the image either.  No biggie to me.  As long as my users can fill out the form and come back to it later to make changes, I'm happy!
    Thank you.  I think that solved it!

  • Upgraded to pro X and having issues with form created in pro 9

    I created a form in LiveCyle using Pro 9, the form was created for an employer who had to buy Pro X so I was upgraded to Pro X.  Here are the issues I am having, This form was the first time I have ever created a form and I have never used Java Script so there is no scripting involved. 
    1) With Pro 9, if I opend the form with adobe instead of LiveCycle I could delete pages.  Now with Pro X I can not however I can delete pages in PDF's that I did not use LiveCycle on.  How do I enable exert, delete, insert, etc....
    2) I was told that with Pro X it was possible to set the form so that when it's emailed back to the employer after being filled out, it could be secure.  I have not been able to figure out how to set that up.  The employer needs to receive the completed PDF as a PDF with the information that was input secure (socials, etc... ).  If I set up an email button the employer receives a list for information and that does not work for them. 
    3) The employer would like to have a few fields that they input in the form then secure them or make them read only so the employee can not modify.  I know how to do it design mode but it prevents them from being able to input the information they want (employee number for example).
    Java Script is totally foreign to me as I am not an IT person I am a novice computer user that is self taught.  If I am going to have to learn this, can anyone suggest a website or book for beginners?
    Thank you for any help you can provide....
    Heather

    Hi Heather,
    There are a few things going on.
    Firstly, forms that are created in LC Designer are fundementally different to native PDF documents. LC Designer forms are known as XFA Forms and are placed in a PDF wrapper, so that they can be opened in Acrobat/Reader. However a lot of the normally editing options (like deleting pages) that you can perform on a native PDF, you cannot do on an XFA Form.
    You can set up the form to be emailed back and there are a number of options. The example here (http://assure.ly/dYQFb4 and http://assure.ly/hM2A5y) looks at the standard Submot by Email button down to custom buttons, depending on the functionality you need/want.
    One of the things you need to bear in mind is that for users with Reader to be ble to submit the form back as a PDF, it first needs to be Reader Enabled. This is something you can do in Acrobat before you send out the form, but there are license restrictions. See here . http://assure.ly/etkFNU.
    You can set up a solution that locks the fields in the form, prior to submission, but you are getting into scripting. There is an example here: http://assure.ly/yDtfsM.
    When it comes to resources... see my recommendations here: http://forums.adobe.com/message/4186925#4186925.
    I hope that helps,
    Niall

  • Issue with forms in Safari

    I have a feeling this is an issue with the underlying programming, but I thought I would ask. I use a website that has a textbox for entering form data. As part of that textbox, when I use in my computer there are several icons for inserting an image url, inserting urls and several others.
    On the safari app in ipad and iphone these icons do not appear. Anyone have any suggestions on work arounds?
    Thanks

    Well, completely borrowed from a prior related submission by one who certainly appears to know his web design stuff ..... You have to use the 'touch' related JavaScript command set vice the mouse-based ones.

  • Performance issue with form after 10g upgrade

    Hi Team,
    Last week we have upgraded our systems to 10g database.
    Ever since we did an upgrade there is a huge performance issues with the custom forms and this is causing a major setback to our business. Before the upgrade the forms were running with our any performance issues.
    Can anyone please help me in finding out the reason behind the performance issue(May be a tar or performance tuning).
    Many Thanks in Advance.
    Regards
    Kumar

    Like Jan said,
    You must supply more information so we can help you, like where the degradation happens?, in processing? in navigation? in forms loading?? where?
    You may also do a little test. Create a one button form, just a canvas and a button, you can include a message in when-button-pressed trigger.
    run it and see what happens.
    Tony

  • Spry validation issue with submit button

    Hi,
    I'm new to Spry but am having an issue getting it to work at all.  I created a very simply form (i.e. table with Spry text field and submit button).  I've read many articles and been to several forums, but I can't seem to find the issue I'm having.  Basically, when I go to preview the page in a browser, the table with the Spy text field and submit button comes up fine, but when I hit the submit button, I see the page refresh and any values I had in the text field disappear, but nothing ever comes up saying "A value is required," which is what I'm looking for. This happens even if I don't have any values in the text field.  Below are images of what I'm describing and also the code.  I verified that the "Required" check box is checked in the SpryTextField and the submit button action is selected to "Submit Form."  My setup is Win 7, DW6, & XAMPP.  Any help you can provide would be greatly appreciated.
    Before Submit Button pressed:
    Browser after button pressed: (same as above but no message saying "A value is required.")
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    test
    <table width="600" border="1">
      <tr>
        <td><form id="form1" name="form1" method="post" action="">
          <span id="sprytextfield1">
          <label for="test"></label>
          <input type="text" name="test" id="test" />
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td><form id="form2" name="form2" method="post" action="">
          <input type="submit" name="submit" id="submit" value="Submit" />
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email");
    </script>
    </body>
    </html>

    Do yourself a big favor and don't waste time with Spry Validation.  Most modern browsers support HTML5 forms with the required attribute. 
    If you must placate older browsers, use jQuery validate script.  It's lightweight and works when HTML5 support is missing.  You can see an example below. If you hit submit with empty form fields, the required fields pop-up with messages.  View source in browser to see the code. 
    HTML5 Form with jQuery Validation
    Nancy O.

  • Feed Has No Episodes & Validation Issues with RSS Feed

    Hello! I am beyond my wits end..having many issues getting this podcast submitted and never had such issues before. Any step-by-step help would be GREATLY appreciated!!
    Here is my feedburner: http://feeds.feedburner.com/High-achievingWomensBlogazine
    And here is the page where I have followed the instructions for the audio player and files: http://www.highachievingwomen.biz/podcasts/high-achieving-womens-blogazine-podca sts/
    Is there something I am missing for this feed to be picking up my audio files?
    (Note: since I am using feedburner, I did install the Plugins (Audio player & FeedSmith) that they recommend to use with their system as well)
    And here is what I get when I submit the RSS for validation:
    Congratulations!
    This is a valid RSS feed.
    Recommendations
    This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
    line 14, column 1689: Misplaced Item (10 occurrences) [help]... nt &amp; Marketing" /></itunes:category><item>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/High-achievingWomensBlogazine" /><feedburner:info uri="high-achievingwomensblogazine" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><media:copyright>© 2011 Dr. Laureen Wishom</media:copyright><media:thumbnail url="http://www.highachievingwomen.biz/wp-content/uploads/2010/01/LW.framed.medium.jpg" /><media:keywords>Branding,Identity,Tips,Coaching,Entrepreneurs,Laureen,Wishom,Marketplace,Positioning,Small,Business,Owners,Women,Entrepreneurs</media:keywords><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Business/Management &amp; Marketing</media:category><itunes:owner><itunes:email>[email protected]</itunes:email><itunes:name>Dr Laureen Wishom</itunes:name></itunes:owner><itunes:author>Dr Laureen Wishom</itunes:author><itunes:explicit>no</itunes:explicit><itunes:image href="http://www.highachievingwomen.biz/wp-content/uploads/2010/01/LW.framed.medium.jpg" /><itunes:keywords>Branding,Identity,Tips,Coaching,Entrepreneurs,Laureen,Wishom,Marketplace,Positioning,Small,Business,Owners,Women,Entrepreneurs</itunes:keywords><itunes:subtitle>Global Association of High-Achieving Women</itunes:subtitle><itunes:summary>This association is designed to gift the members with the tools and techniques to gain a competitive edge in the marketplace and assist the members in moving up, moving out or changing directions with ease, purpose and clarity.</itunes:summary><itunes:category text="Business"><itunes:category text="Management &amp; Marketing" /></itunes:category><item>
    Thank you!!

    Your feed has no media files referenced. Your web page has embedded audio players: these won't work in the feed. You need direct links to the media files, which should be mp3 or m4a, not rm, swf or wma. These links have to be contained in an 'enclosure' tag for each episode.
    This page eplains the basics of making a podcast and includes a sample basic feed soi you can see what I'm talking about:
    http://rfwilmut.net/pc
    I'm not suggesting you should write your own feed, but the page will tell you what to look for in a feed.
    You're using Wordpress: it's not really generating a podcast feed. You may need to add the PodPress plugin - I'm not sure whether you can get a podcast feed out of WordPress by itself - I'm afraid I can't advise on this.
    You can ignore the FeedValidator comment - it's only because you have the 'item' tag at the end of a line, and this doesn't matter.

  • HT3702 Issue with updating a valid credit card.

    I am trying to update my payment information, using a valid credit card, and all it tells me is that I need to contact iTunes support with no explanation....what do I do?

    need to contact iTunes support

  • Validation issues with XSD

    I'm trying to validate a xml file with this schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns="http://www.jeromedroz.org/etc/lexicon.xsd"
                   targetNamespace="http://www.jeromedroz.org/etc/lexicon.xsd">
         <xsd:element name="lexicon">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element     ref="available-languages" minOccurs="1"
                                       maxOccurs="1"/>
                        <xsd:element ref="term" minOccurs="1" maxOccurs="unbounded"/>
                   </xsd:sequence>
                   <xsd:attribute name="name" type="xsd:string" use="optional" />
              </xsd:complexType>
              <xsd:key name="termPK">
                   <xsd:selector xpath="./term" />
                   <xsd:field xpath="@id" />
              </xsd:key>
              <xsd:keyref name="termFK" refer="termPK">
                   <xsd:selector xpath="./term/include" />
                   <xsd:field xpath="@idref" />
              </xsd:keyref>
         </xsd:element>
         <xsd:element name="available-languages">
              <xsd:complexType>
                   <xsd:sequence maxOccurs="unbounded">
                        <xsd:element     ref="language" minOccurs="1" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="language">
              <xsd:complexType>
                   <xsd:attribute name="value" type="xsd:string" use="required" />
                   <xsd:attribute name="default" type="xsd:boolean" use="optional" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="term">
              <xsd:complexType mixed="true">
                   <xsd:choice minOccurs="0" maxOccurs="unbounded">
                        <xsd:any     namespace="http://www.w3.org/1999/xhtml"
                                  processContents="skip" />
                        <xsd:element ref="translation" />
                        <xsd:element ref="include" />
                   </xsd:choice>
                   <xsd:attribute name="id" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="translation">
              <xsd:complexType mixed="true">
                   <xsd:choice minOccurs="0" maxOccurs="unbounded">
                        <xsd:any     namespace="http://www.w3.org/1999/xhtml"
                                  processContents="skip" />
                        <xsd:element ref="include" />
                   </xsd:choice>
                   <xsd:attribute name="language" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="include">
              <xsd:complexType>
                   <xsd:attribute name="idref" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
    </xsd:schema>And here is a portion of my xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <lexicon     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:noNamespaceSchemaLocation="http://www.jeromedroz.org/etc/lexicon.xsd
                     ./lexicon.xsd"
                    xmlns:html="http://www.w3.org/1999/xhtml"
                 xmlns="http://www.jeromedroz.org/etc/lexicon.xsd"
                    name="lexicon">
         <available-languages>
              <language value="fr" default="true" />
              <language value="en" />
         </available-languages>
         <term id="include-this">
              <translation language="fr">inclure cela</translation>
                    <translation language="en">include this</translation>
         </term>
            <term id="home">
              <html:a href="http://www.mysite.org">    
                         <translation language="fr">accueil</translation>
                         <include idref="include-this" />
                    </html:a>
         </term>
    </lexicon>The idref attribute of the include tag is a reference to the id attribute of the term tag. The problem is the key and keyref definition in the xsd file: for example, if a term appears more than once (with the same id) the parser should notice it because the key is duplicated, but it doesn't. I've tried several places for the key and keyref definition in the xsd file but I get an error like KeyRefOutOfScope nearly all the time. Do anybody have a solution?

    I'm trying to validate a xml file with this schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns="http://www.jeromedroz.org/etc/lexicon.xsd"
                   targetNamespace="http://www.jeromedroz.org/etc/lexicon.xsd">
         <xsd:element name="lexicon">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element     ref="available-languages" minOccurs="1"
                                       maxOccurs="1"/>
                        <xsd:element ref="term" minOccurs="1" maxOccurs="unbounded"/>
                   </xsd:sequence>
                   <xsd:attribute name="name" type="xsd:string" use="optional" />
              </xsd:complexType>
              <xsd:key name="termPK">
                   <xsd:selector xpath="./term" />
                   <xsd:field xpath="@id" />
              </xsd:key>
              <xsd:keyref name="termFK" refer="termPK">
                   <xsd:selector xpath="./term/include" />
                   <xsd:field xpath="@idref" />
              </xsd:keyref>
         </xsd:element>
         <xsd:element name="available-languages">
              <xsd:complexType>
                   <xsd:sequence maxOccurs="unbounded">
                        <xsd:element     ref="language" minOccurs="1" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="language">
              <xsd:complexType>
                   <xsd:attribute name="value" type="xsd:string" use="required" />
                   <xsd:attribute name="default" type="xsd:boolean" use="optional" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="term">
              <xsd:complexType mixed="true">
                   <xsd:choice minOccurs="0" maxOccurs="unbounded">
                        <xsd:any     namespace="http://www.w3.org/1999/xhtml"
                                  processContents="skip" />
                        <xsd:element ref="translation" />
                        <xsd:element ref="include" />
                   </xsd:choice>
                   <xsd:attribute name="id" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="translation">
              <xsd:complexType mixed="true">
                   <xsd:choice minOccurs="0" maxOccurs="unbounded">
                        <xsd:any     namespace="http://www.w3.org/1999/xhtml"
                                  processContents="skip" />
                        <xsd:element ref="include" />
                   </xsd:choice>
                   <xsd:attribute name="language" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
         <xsd:element name="include">
              <xsd:complexType>
                   <xsd:attribute name="idref" type="xsd:string" use="required" />
              </xsd:complexType>
         </xsd:element>
    </xsd:schema>And here is a portion of my xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <lexicon     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:noNamespaceSchemaLocation="http://www.jeromedroz.org/etc/lexicon.xsd
                     ./lexicon.xsd"
                    xmlns:html="http://www.w3.org/1999/xhtml"
                 xmlns="http://www.jeromedroz.org/etc/lexicon.xsd"
                    name="lexicon">
         <available-languages>
              <language value="fr" default="true" />
              <language value="en" />
         </available-languages>
         <term id="include-this">
              <translation language="fr">inclure cela</translation>
                    <translation language="en">include this</translation>
         </term>
            <term id="home">
              <html:a href="http://www.mysite.org">    
                         <translation language="fr">accueil</translation>
                         <include idref="include-this" />
                    </html:a>
         </term>
    </lexicon>The idref attribute of the include tag is a reference to the id attribute of the term tag. The problem is the key and keyref definition in the xsd file: for example, if a term appears more than once (with the same id) the parser should notice it because the key is duplicated, but it doesn't. I've tried several places for the key and keyref definition in the xsd file but I get an error like KeyRefOutOfScope nearly all the time. Do anybody have a solution?

  • Data Validation issue with Standard Extraction

    Hi Experts,
    I have a requirement to publish a report in BI from ECC, all the details are coming from this DataSource : 2LIS_02_ITM.
    This particular DataSource have the many fields which are from the following tables
    EKKO
    EKPO
    MARA
    EKBE
    I tried replicating the DataSource in BI and created transformation extracted full data.The number of record the DSO (0PUR_O01) has is 27910.
    I checked with the ECC tables. And the number of records they have are
    EKKO -   79129
    EKPO -  250502
    MARA -   40950
    EKBE - 1447470 
    I just don't know how do I check whether BI data is correct with ECC.
    Can anyone please tell me how do I reconcile the data.
    Thanks

    Hi,
    you have to check the number of records for the datasource in RSA3 transaction.
    Also, check the start routine at transformation level, as well as the selections if you have loaded.
    Hope this helps,
    Regards,
    Rama Murthy.

  • Issues with Form printing using a 3rd party software!!!!!!!!!!!!!!!11

    Hi All,
    We are printing our month end AR statements using Xerox DP100 printers. We are using a SAP Script as the layout form. Everything works perfectly alright when a direct print is issued to the printer. But the scenario here is the statements are sent to a 3rd party software so that the statements can be saved in their repository and made available to be viewed and printed whenever necessary. Now the issue is when this 3rd Party Software(TPS) reads the SAP generated PCL from its report store on the unix host and generates a PDF File that it presents to the web client user for (re)printing via his/her PC it appears that the TPS or Websphere or Adobe is performing a font substituion - replacing the Univers font(used in R/3) which is not loaded on the unix host with a different font(with different sizing and/or behavior).
    As a result the horizontal and vertical positioning generated by SAP(which is correct for the Univers font) is 'wrong' for the substituted font. The fixed size fields print OK but gradually move to the right. The varying size amount columns do not align correctly and fall off the right side of the page.
    Can anyone give me pointers on what can be done to arrest this error.
    Does the font need to be loaded on the unix host or the font used in the form be changed?
    Regards,
    Karthik

    Karthik,
              Sap script behaves differently for different printers. You will have to change margins when you change your printer/software accordingly.

  • Issue with Form Editor, Payslip

    Dear All,
    I have an issue in Salary Slip. I am making my own pay slip in form editor and I have made 4 windows for displaying 4 different type of allowances and deductions but when I call the value in window from wagetypes in RT they come up as multiplied by 10. For example, (Please note that I am in Oman and local currency is OMR that uses 3 places after decimal for example 20.300 OMR) An employee has basic pay of 1500.700/- OMR it is coming up as 15007.00/- OMR. The amount in RT is coming fine as 1500.700/- OMR, I have checked it. When I call a wagetype in a single field the value comes out fine so the issue is with values displayed in the Windows.
    Can anyone tell me whats going on???
    Regards,
    Ahsan Zaidi.

    Hi Bala,
    It is already mapped correctly. If I enter a single line Text in HTML Editor, I am getting the same Text after Parsing. But If I enter multiple lines, spaces, new lines, etc., then the Problem.
    Thanks||
    Ashok M.

Maybe you are looking for

  • Anyconnect 3.1 Captive Portal False Alert Stops Users Connecting.

    Hi All, I am having problems with a customer's ASA 5505 with Anyconnect 3.1 - it is generating captive portal false-alerts which are stopping users from connecting. This issue began when I upgraded from Anyconnect 2.4 to 3.1, and it appears like this

  • My iPhone 5 no longer charges, and I got it in November 2012.

    Any advice on what I should do?

  • Unreliable wireless communication between laptop (Vista) and Time Capsule

    I am using a Time capsule for my wire less router at home. I have a new laptop running vista and the connection fails frequently. It is restored using repair. This does not happen with this laptop in other wireless locations. I also do not have this

  • Preferences in SPM 3.0

    Dear experts, We are using SPM 3.0 and once logged onto the portal, we have "Preferences" on the top right. Under it, we have "Report" where we have a field for Data Source (actually it is a query) followed by some chart preferences. My question is,

  • Tabs in a mobile application

    I have a large application structured such that I can compile as AIR or Flash by pushing almost everything into a common library file. This is great for AIR and Flash, but trying to build a mobile app with FlashBuilder 4.5 gives me the following erro