Can't set Optional Element to Nil in Xquery Transformation

I am new to Workshop and I am performing a transformation between two XML files that I will call source and target for example. I have multiple time/date elements that are optional in the target XML schema. I want to know how to set their values to null (nil?) if there is no data in the corresponding source XML schema element. Any ideas?
I get syntax errors with xquery set up like this:
if (data($iter_requestXML1/mySourceDate) != "" ) then
xs:date($iter_requestXML1/mySourceDate)
else
(nil)
I want to do something like above, but I don't know the right syntax.
However if I leave the "else" clause as:
else ()
Then I don't have a syntax error, but I get an exception whenever I try to reference the target XML element whenever their was no data for this element.
In the last example, I am thinking I get the reference error because the element was never initialized to NULL or NIL. But I don't know how to set it. Please Help!

1st :  It runs perfectly fine at 1280x1024@75Hz in Windows XP/Vista, so there is no reason it shouldn't work in Linux. In Nvidia-panel there is even the 75Hz option in the drop-down list when resolution is 1280x1024.
2nd : It isn't easy on the eyes at 60Hz compared to 75Hz, even more when i play games (Quake 3 for example).
Last edited by Kaloos (2009-04-27 21:22:18)

Similar Messages

  • How can I set up Elements 12 to put my Nik Edits onto a seperate Layer

    How can I set up Elements 12 to put put my Nik edits onto a seperate Layer
    and would XXL help with its Smart Object Filters (Smart Filters
    Thankyou

    Also, just a note.   iMac PPC is about iMacs that were available up to early 2006.    iMac Intel is for iMacs that were made available early in to 2006 to present.  Forums for what you have in your profile include:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.6_snow_leopard
    https://discussions.apple.com/community/ilife/iphoto
    https://discussions.apple.com/community/notebooks/macbook
    Please consider posting and reviewing those locations in the future when you have a question that pertains to one of those products.  You'll much more likely get a resposne then.   This is a user to user forum, and you have to seek knowledge in the areas that are most likely to have the topic of your interest.

  • Can't set Photoshop Elements 11 as default photo editor

    When I right click on an image in Windows Explorer or Adobe Bridge, then click on "open with", in the list of image viewers and programs, Photoshop Elements is not listed. When I browse to the PE11 .exe file to select it, nothing happens. How can I set PE11 to be the default photo editing program?

    Try this thread:
    <http://forums.adobe.com/thread/1146909?tstart=0>
    In particular read everything from post #9 to post #17
    Good luck.

  • Can i set up elements10 on windows 8

    can i set up elements 10 on a windows 8 os

    yes you can try to install and post your comment if you face any issues.

  • Set xml element for table

    Hi guys,
    I am new to indesign scripting using applescript.
    my code is shown in below, my problem is can't set xml element for table
    tell application "Adobe InDesign CS6"
            tell active document
                set rootele to associated XML element of story 1
                if rootele = nothing then
                    set rootele to XML element 1
                end if
                tell story 1
                    select text 1
                    set markup tag of selection to "table" -----------------> this is my problem please help me.
                              end tell
            end tell
        end tell
    this code is right or not. please help me.

    The metadata about the table mappings are also stored in the compiled XML Schema document. If you lookup the schema document located at /sys/schemas/.... , you will see that the element with SQLInline=false will have a xdb:defaultTable attribute which provides the name of the table used to store the element.
    - Ravi

  • Can't update XML with optional element

    Hi,
    I'm trying to update an XML document (global XML Schema based) with an optional element (insert an optional element into an existing xml document).
    The update statement seems to work but the optional element is missing when I select the document!
    How can I update (insert) an optional element in an XML document?
    Thanx for your comments,
    Markus
    My scenario:
    ============
    XML Schema:
    <?xml version='1.0'?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb">
    <xsd:element name="TestUpdate" xdb:defaultTable="TESTUPDATE">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="anElement" type="xsd:string" />
    <xsd:element name="optElement" type="xsd:string" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    SQL:
    begin
    dbms_xmlschema.registerSchema('xsd/TestUpdate.xsd',
    getDocument('testupdate.xsd'),
    FALSE);
    end;
    ALTER TABLE TestUpdate
    add constraint VALID_TestUpdate
    check (XMLIsValid(sys_nc_rowinfo$)=1);
    INSERT INTO TestUpdate values (xmltype(getDocument('TestUpdate.xml')))
    update TestUpdate x
    SET x = UPDATEXML(value(x),
    '/TestUpdate/optElement','<optElement> my optional Element</optElement>');
    ==> Message is: 1 row updated !!!!!!!!!!
    SQL> select * from testupdate;
    SYS_NC_ROWINFO$
    <TestUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespac
    eSchemaLocation="xsd/TestUpdate.xsd">
    <anElement>more text....</anElement>
    </TestUpdate>
    ==> No UPADATE performed!!!

    Thanks Pete,
    XPath evaluation may return no data and may cause the trouble of giving an 'success' answer.
    On the other side I have rewritten the statement:
    SQL> update testupdate x set x.XMLData."optElement" = ' just some text';
    SQL> select * from testupdate;
    SYS_NC_ROWINFO$
    <TestUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespac
    eSchemaLocation="xsd/TestUpdate.xsd">
    <anElement>more text....</anElement>
    </TestUpdate>
    ===> no UPDATE ???????
    SQL> select x.xmldata."optElement" from testupdate x;
    XMLDATA.optElement
    just some text
    ===> WOW, row is updated!!!!!!!!
    This result is more wired than before :-)
    (at least for myself)
    Can somebody explain the result?
    bye,
    Markus

  • How can I set Firefox to print to PDF, the only otions I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    A couple of weeks ago, from the file menu, in my print options was to print a web page to PDF, that facility is no longer there. does anyone know how can I set Firefox to print to PDF.
    The only options I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    Firefox generally displays the printers in Windows' Printers folder (Start orb > Devices and Printers). If it is missing one of the printers listed there, could you indicate which one it is, for example, Adobe Distiller, PrimoPDF, CutePDF Writer, etc.?
    If you previously had an add-on which added print-to-PDF functionality just to Firefox, perhaps it got disabled. You could check here:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Extensions
    Also, are you really running Firefox 8.0.1? That version from last November is no longer secure and has been superseded by Firefox 11. If you browse the web widely, you should update for your security.

  • Can you set the aspect ratio to widescreen in photoshop elements 10?

    I can set my camera to 16:9 for taking pictures that I want to develop into a video using photoshop elements 10..  But I can not figure out how to set Photoshop Elements 10 to 16:9 ratio.  Is that possible?

    Try this add-on so you can schedule the sending of multiple emails:
    https://addons.mozilla.org/en-US/thunderbird/addon/send-later-3/
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html
    There's another add-on that might work in current TB versions:
    https://addons.mozilla.org/en-US/thunderbird/addon/blunderdelay/

  • I own PS Elements 11 on CDs but recently purchased an new computer without a CD drive.  Can I transfer PS Elements to my new computer and, if so, how?  Is my only option to purchase and download PS Elements 13?

    I own PS Elements 11 on CDs but recently purchased an new computer without a CD drive.  Can I transfer PS Elements to my new computer and, if so, how?  Is my only option to purchase and download PS Elements 13?

    You can download and install PSE11 from the link below. Validate with the serial number from your CD packaging. It has 24 digits commencing 1057
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

  • Can we set the Option "Show add-in user interface errors" with VBA?

    Does anyone know if the advanced Option "Show add-in user interface errors" can be set with VBA in Project Pro 2013?
    \Spiro Theopoulos, Montreal, QC (Canada)

    Spiro,
    Sorry but as far as I know that option is not available through VBA.
    John

  • How can I set the width of a Text element?

    Hello! I have created a custom button with this class:
    import javafx.scene.Node;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Cursor;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.paint.LinearGradient;
    import javafx.scene.paint.Stop;
    import javafx.scene.effect.DropShadow;
    import javafx.scene.text.Text;
    import javafx.scene.input.MouseEvent;
    public class Button extends CustomNode {
        public var text: String;
        public var x: Integer = 0;
        public var y: Integer = 0;
        public var width: Integer = 90;
        var height: Integer = 25;
        override public function create(): Node {
            return Group {
                content: [
                    Rectangle {
                        cursor: Cursor.HAND;
                        x: this.x;
                        y: this.y
                        width: this.width;
                        height: this.height;
                        arcWidth: 15;
                        arcHeight: 15;
                        effect: DropShadow {radius: 6};
                        fill: LinearGradient {
                            startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                            stops: [
                                Stop {offset: 0.0, color: Color.WHITE}
                                Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMouseEntered: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.2, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMouseExited: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                        onMousePressed: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.LIGHTGRAY}
                                    Stop {offset: 1.0, color: Color.WHITE}
                        onMouseReleased: function(e: MouseEvent): Void {
                            (e.node as Rectangle).fill = LinearGradient {
                                startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0
                                stops: [
                                    Stop {offset: 0.0, color: Color.WHITE}
                                    Stop {offset: 1.0, color: Color.LIGHTGRAY}
                    Text {
                        x: this.x + 5, y: this.y + 16
                        content: this.text
    }But, how can I set the Text element centered into the button?

    Stack {
                        layoutInfo: LayoutInfo {
                            width: bind width;
                            height: bind height;
                        content: [Rectangle {
                                width: bind width, height: bind height
                                //fill: bind color;
                                fill: Color.GREEN
                                arcHeight: 20; arcWidth: 20;
                            Text {
                                font: Font {
                                    size: 24
                                textAlignment: TextAlignment.CENTER;
                                wrappingWidth: width;
                                boundsType: TextBoundsType.VISUAL;
                                fill: Color.WHITE;
                                content: bind text;
                    }wrappingWidth: Sets the maximun width of the text
    boundsType: If you put the wrappingWidth var and you want to center a text you MUST set this var to VISUAL

  • How can I set firefox as default browser in citrix server, only for few groups. does -silent -setdefaultbrowser option working in latest version?

    How can I set firefox as default browser in citrix server, only for few groups. does -silent -setdefaultbrowser option working in latest version?

    I think so: [http://discussions.citrix.com/topic/330585-firefox-default-browser-for-all-users/]
    Can you also set the default programs in the Group Policy User Settings?
    Reference: [http://community.spiceworks.com/topic/884740-default-user-profile-in-citrix-environment]

  • How can I set screen saver clock which show time and date when all screen is black. Other phones have this option but I didn't find on iphone. Pl guide.

    How can I set screen saver clock which show time and date when all screen is black. Other phones have this option but I didn't find on iphone. Pl guide.

    HA!  I figured the find my iphone out!!!!! You can have more than one icloud account in "Mail, Contacts and Calendars".  So my husband's & kids' phone icloud account under "settings, icloud "is their individual @me.com account.  Set it to everything you want EXCEPT Find My Iphone.  Then under "settings, mail/contacts/calendars" you set up both accounts (your @me.com which may already be there), then add another with the main appleID and enable ONLY Find My Iphone.  Now when any of us log into Find My Iphone from any device with our main apple ID for the app store, all the devices show up!!!! YIPPEE.  I made my own day!
    I think the message I got previously was because I hadn't disabled the find my iphone on the @me.com account first.

  • Where can i set the download options on the iPod for SD rather than HD movies?

    where can i set the download options on the iPod for SD rather than HD movies?

    In the Summary pane for the iPod in iTunes.  Check the box that says Prefer standard definition videos

  • HI,How can i set delta option for costumised Generic data source

    Hi Sir/Madam,
          How can i set delta option for costumised Generic data source.
    Regards,
    Vishali.R
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 15, 2011 1:26 PM

    Hi,
    Go to RSO2 transaction and click on change then on the tool bar click on Generic Delta button. In the next popup you can set your delta.
    Regards,
    Durgesh.

Maybe you are looking for