Images in XML with DataShell

I'm playing around with the Data Set Shell with Accordion.
Here is the HTML page sample:
http://www.nerealestatephotos.com/Janseneering/RC1.html
// click on the "News" panel in the Accordion...
and one of the XML pages:
http://www.nerealestatephotos.com/Janseneering/news.xml
I need an image to load with the data that is in the
<desc> element and display it in the appropriate table cell.
I've tried giving the <desc> element an <img src="">
attribute, I've tried to load the image using a full URL
encapsulated in CDATA, etc etc. No luck. As you can see, I'm a bit
of a newbie.
I've had moderate success with putting <img src={image}
alt="" /> within the detailregion like this:
<div spry:detailregion="dsShell" class="SpryHiddenRegion">
<table border="1" class="detail">
<tr>
<th>
<img src={image} alt="" />{desc}</th>
</tr>
</table>
The problem with this is that it displays on *every* page,
even the ones that don't have images. Not a problem with Firefox,
Safari and Opera since they just don't display anything if there is
no <image></image> element in the XML. IE on the other
hand gives me the dreaded red "X".

Hi,
You would put something like:
spry:if="'{image}' != 'undefined'"
in your IMG tag.
<img src={image} alt="" spry:if="'{image}' !=
'undefined'"/>
That will only print the tag if there is some value for
{image}.
Hope this helps.
Don

Similar Messages

  • Problem with images in XML with excel output

    Hello:
    I made an XML concurrent program, with excel output, but i am having a problem:
    The rtf template has a logo (bmp image), but it is not showing in the excel (if i execute the concurrent in the oracle applications). However, if i create the xml in Oracle Reports in my computer, and then load that xml in the rdf template in word, i can see the logo in the excel preview. I don't know why is it not showing when i execute the program in applications.
    If someone can help me with this, i will be very grateful.
    Greetings
    Message was edited by:
    user632438

    xml cP, will not give you a image in excel output,..
    In RDF there is a placeholder for image, and the image is located in certain location, at runtime it picks and render the output with logo.
    but xml CP, will get the data in xml type and merge with rtf to get the output you wanted..
    if you have the rtf with logo embedded in it, if output is of pdf or rtf output , then it will display the logo ,.
    in excel currently it is not possible to show the logo,..
    excel you see could be xml-excel or csv-excel not the true binary excel.
    to get the logo embedded ,for that you have to wait on tim for the excel template, which will be release in near future i guess..

  • Image deployment Stuck at Applying Unattend.xml with DISM.EXE

    Hello All, 
    I've integrated around 90 Patches into MDT Image of windows Server 2012. so far, only Image and Packages are in Media contents.
    When I am deploying Image on a VM- then it is working fine till applying Operating system Image upto (100%)...and gets stuck at Applying Unattend.xml with DISM.exe which is very next step, see screenshot below.
    This process is going on for a longer time and after this I am getting below Error and Image is not getting deployed ...
    Please advise!!!
    Please....

    In the task sequence folder ([deploymentsharename] -> Control -> [task
    id]) do you see an unattend.xml file there?

  • Sysprep unattend file not applying when image is captured with wds (no errors)

    So I've been around the block a bit using sysprep and wds.  Recently I've created a reference image with a virtualbox environment using windows 7 x64. I was succesfully able to create a reference image, sysprep it and capture it to the wds server. My
    plan there after was to create driver specific images for each model computer we use here after not having much success using the driver store (another story)
    Any how So I take my reference image and deploy it to a new computer... In this case an HP Probook 5310m.  Install any missing drivers and Sysprep it with the following command.  sysprep /generalize /oobe /unattend:unattend.xml /shutdown
    Below is the sysprep file I have been using
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>0</SkipRearm>
            </component>
            <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
                <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>Eastern Standard Time</TimeZone>
                <CopyProfile>true</CopyProfile>
                <ProductKey>74fdj-7dtw8-q9mp9-ypth8-qb27y</ProductKey>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <OEMInformation>
                    <Logo>c:\windows\system32\oemlogo.bmp</Logo>
                    <SupportHours>Regular Business Hrs (Overnight Support Provided)</SupportHours>
                    <SupportURL>url</SupportURL>
                    <SupportPhone>Phone number</SupportPhone>
                </OEMInformation>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TAAxAEQAMwBzAHQAcgBpACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Administrator</Description>
                            <DisplayName>Root</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Root</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <TimeZone>Eastern Standard Time</TimeZone>
                <ShowWindowsLive>false</ShowWindowsLive>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>slmgr.vbs /ipk {serial key}</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>slmgr.vbs /ato</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-US</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:v:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    The machine succesfully syspreps and shuts down. I restart the computer pxe boot and capture the image succesfully.
    Now here comes my problem...
    Upon deploying the above driver specific image.. my sysprep file is not applied.  Nothing from the OOBE wizard answers to the pc logo , or first logon commands are applied ... nothing.. I have gotten no errors during this whole process.  I have
    started to try to read the logs within the panther folder but havent gotten far.
    What is weird to me is that I have tried recreating this image... deploy the reference image... add drivers ... sysprep ...shutdown.  And if I boot normally (without capturing the image) the computer shows all of the sysprep changes..  Only when
    i capture the image does it not apply the changes....
    I'm stumped...
    Any ides?

    Confirm this scenario: You installed Windows, then ran sysprep and used the /unattend switch. Then you captured the image.
    In this scenario there are 2 deployment methods.
    1. If you deploy the image with DISM, the answer file generated by sysprep is detected on first boot and settings are applied. It is the same function as if you ran sysprep and chose to restart.
    2. If you deploy the image using Setup.exe, it does not use the answer file specified by sysprep prior to capturing. I have not looked into *why* this happens, but I suspect that after the image is applied, it replaces the unattend.xml with the generic one.
    If you are using Setup.exe, you need to use its /unattend switch and point to the answer file location. This location cannot be inside of the image. If you are not using setup.exe in a manual method (using WDS) you will need to apply the answer file to the
    install image in the WDS snap-in.

  • How to load images using xml in flash

    Hi
    im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3

    You'll find a tutorial for what you are after here:
    http://www.gotoandlearn.com/play?id=22

  • Load XML with flashvars?

    Hey folks
    I have a flash photo gallery that uses XML to tell the flash
    what pics to load in and display. Works really great but I want to
    take it a step further and be able to specify the xml file being
    loaded from HTML. I guess using Flashvars unless there's another
    method that works better?
    in my actionscript, I have this line
    xmlData.load("images.xml");
    and that's telling it to load in the xml file that has the
    info for all the pics
    is there any way to replace that with flash vars and actually
    have it work?
    What we're trying to do is have a different photo gallery on
    each page, and instead of making a separate flash movie & xml
    for each one, we want to just have 1 "gloabal" flash movie and then
    just a different xml file for each different gallery.
    Anyone have any ideas how I can get it to work?
    I know it's probably some easy little thing I keep missing
    :(

    You just need to replace the file name in:
    xmlData.load("images.xml"); with
    your variable name, set by FlashVars. I'd suggest using
    SWFObject to set the
    flash var - it makes it really easy.
    Example:
    <script type="text/javascript">
    var so = new SWFObject("gallery.swf", "gallery", "400",
    "300", "8",
    "#FFFFFF");
    so.addVariable("xmlFile", "gallery1.xml");
    so.write("flashcontent");
    </script>Then in Flash:
    xmlData.load(xmlFile);
    http://blog.deconcept.com/swfobject/
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Insert link over an image in XML

    Hello,
    I recently bought this template: http://www.templatemonster.com/flash-templates/27466.html but I have a big problem. I want to add a hyperlink over the big images which appears when you click on bedrooms for example. There are 9 small images in the right side and 1 big image on the left. I changed all the images but I want also to add hyperlinks on some big images. The action script import an xml file like:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <root>
            <pageGallery nameGallery="GALLERY 1" name="gallery1" folder="gallery" line="3" maxImages="9">
                    <titleImages>               
                        <smallImages>_gallery_small_images_1.jpg</smallImages>
                        <bigImages>_gallery_big_images_1.jpg</bigImages>
    <infoImages><![CDATA[Fusce suscipit varius mi. Cum sociis natoque penatibus et -<br>magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.<br>Fusce feugiat malesuada odio. Morbi nunc odio, gravida at. ]]></infoImages>
                    </titleImages>   
                    <titleImages>               
                        <smallImages>_gallery_small_images_2.jpg</smallImages>
                        <bigImages>_gallery_big_images_2.jpg</bigImages>
    <infoImages><![CDATA[Fusce suscipit varius mi. Cum sociis natoque penatibus et -<br>magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.<br>Fusce feugiat malesuada odio. Morbi nunc odio, gravida at. ]]></infoImages>
                    </titleImages>   
                    <titleImages>               
                        <smallImages>_gallery_small_images_3.jpg</smallImages>
                        <bigImages>_gallery_big_images_3.jpg</bigImages>
    <infoImages><![CDATA[Fusce suscipit varius mi. Cum sociis natoque penatibus et -<br>magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.<br>Fusce feugiat malesuada odio. Morbi nunc odio, gravida at. ]]></infoImages>
                    </titleImages>   ........
    Please help me with the correct syntax to add hyperlink over a big image in XML. I think I have to do some changes in .fla project, but I don't know where...
    Thank you !

    This is the as for "load big images"
    onClipEvent (load) {
        if (_parent._parent.numLoadTitle == undefined) {
            _parent._parent.numLoadTitle = 0;
            if (_root.part == undefined) {
                xmlNod = _root.xmlNodes.childNodes[0].childNodes[0];
            } else {
                var nameGalleryTytle:Number = _root.xmlNodes.childNodes[0].childNodes[0].childNodes.length;
                var i:Number = 0;
                while (i<nameGalleryTytle) {
                    titleNameGallery = _root.xmlNodes.childNodes[0].childNodes[i].attributes.name;
                    if (_root.part == titleNameGallery) {
                        xmlNod = _root.xmlNodes.childNodes[0].childNodes[i];
                    i++;
            AllxmlNode = xmlNod.childNodes[_parent._parent.numLoadTitle];
            images = AllxmlNode.childNodes[1].firstChild.nodeValue;
            titleInfo = AllxmlNode.childNodes[2].firstChild.nodeValue;
            var ifFolder:String = xmlNod.attributes.folder;
            if (ifFolder == undefined) {
                loadMovie(_root.url+images, cont.pic);
            } else if (ifFolder == "") {
                loadMovie(_root.url+images, cont.pic);
            } else {
                loadMovie(ifFolder+"/"+_root.url+images, cont.pic);
        } else {
            if (_root.part == undefined) {
                xmlNod = _root.xmlNodes.childNodes[0].childNodes[0];
            } else {
                var nameGalleryTytle:Number = _root.xmlNodes.childNodes[0].childNodes[0].childNodes.length;
                var i:Number = 0;
                while (i<nameGalleryTytle) {
                    titleNameGallery = _root.xmlNodes.childNodes[0].childNodes[i].attributes.name;
                    if (_root.part == titleNameGallery) {
                        xmlNod = _root.xmlNodes.childNodes[0].childNodes[i];
                    i++;
            AllxmlNode = xmlNod.childNodes[_parent._parent.numLoadTitle];
            images = AllxmlNode.childNodes[1].firstChild.nodeValue;
            titleInfo = AllxmlNode.childNodes[2].firstChild.nodeValue;
            var ifFolder:String = xmlNod.attributes.folder;
            if (ifFolder == undefined) {
                loadMovie(_root.url+images, cont.pic);
            } else if (ifFolder == "") {
                loadMovie(_root.url+images, cont.pic);
            } else {
                //loadMovie(ifFolder+"/"+_root.url+small[i], item["mini"+i].cont.pic);
                loadMovie(ifFolder+"/"+_root.url+images, cont.pic);
    ***** Here is the first frame frome scene:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    setProperty("", _quality, "BEST");
    url = "tfile";
    _root.linkGallery=0;
    _root.titleGallery = 0;
    _root.cacheKiller = "true";
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) {//This fhunction gets called as soon as the XML loads and gets parsed.
        if (success_boolean) {
    stop();
    var parsed_obj = {};//We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash = new Date().getTime();
    if (_root.cacheKiller == "true") {
        fileToLoad = url+"_main.xml?cacheKiller="+unCash;
        fileToLoad = url+"_main.xml";
    } else {
        fileToLoad = url+"_main.xml";
    XMLParser.load(fileToLoad,onFinish,parsed_obj);
    _root.emp.useHandCursor = 0;
    ///forplayer
    _root.mus = 1;
    _root.n = 1;
    _root.num = 1;
    *** This is the second frame :
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, gallery_obj, xml) {//This fhunction gets called as soon as the XML loads and gets parsed.
        if (success_boolean) {
            play();
    //system settings
    // frame number where readMore movieClip is situated
    pagesReadMoreFrame = 4;
    // frame number of the first content page
    firstPageFrame = 1;
    //system settings
    #include "gs/dataTransfer/xmlFunctions.as"
    //_root.link=_root.getMenuSystemOrder(0);
    //trace(_root.link)
    _root.link = 1;
    _root.titleNumPage = 1;
    _root.openNewGallery = true
    _root.part = _root.xmlNodes.childNodes[0].childNodes[0].attributes.name
    *** And here is the xmlFunctions.as:
    import flash.display.*;
    function loadBitmapSmoothed(url:String, target:MovieClip) {
        // Create a movie clip which will contain our
        // unsmoothed bitmap
        var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
        // Create a listener which will notify us when
        // the bitmap loaded successfully
        var listener:Object = new Object();
        // Track the target
        listener.tmc = target;
        // If the bitmap loaded successfully we redraw the
        // movie into a BitmapData object and then attach
        // that BitmapData to the target movie clip with
        // the smoothing flag turned on.
        listener.onLoadInit = function(mc:MovieClip) {
            mc._visible = false;
            var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
            this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
            bitmap.draw(mc);
        // Do it, load the bitmap now
        var loader:MovieClipLoader = new MovieClipLoader();
        loader.addListener(listener);
        loader.loadClip(url, bmc);
    var mainObj=_root.parsed_obj;
    var galleryObj=_root.gallery_obj;
    function textSelectable(selectedObject) {
        isTextSelected=getSettingsValue(mainObj, "textSelectable", "item");
        if (isTextSelected=="true") {
            selectedObject.selectable=true;
    function getXmlSection (obj, itemName,  sectionName) {
            i=0;
        while (obj[itemName][i]) {
            if (obj[itemName][i].name==sectionName) {
                returnedResult=true;
                return (i);
                break;
            i++;
    function getSettingsValue (obj, itemName, itemType) {
        sectionNum=getXmlSection(obj, "section",  "settings");
        k=0;
        while (obj["section"][sectionNum][itemType][k]) {
            if (obj["section"][sectionNum][itemType][k].name==itemName) {
                return (obj.section[sectionNum][itemType][k].value);
                break;
            k++;
    function getCopyright (textObj) {
        textObj.htmlText=getSettingsValue(mainObj, "copyright", "item");
        textSelectable(textObj);
    function getCompanyName (textObj) {
        textObj.htmlText=getSettingsValue(mainObj, "companyName", "item");
        textSelectable(textObj);
    function getSlogan (textObj) {
        textObj.htmlText=getSettingsValue(mainObj, "slogan", "item");
        textSelectable(textObj);
    function getSystemValue (textObj, systemOptionName) {
        textObj.htmlText=getSettingsValue(mainObj, systemOptionName, "item");
        textSelectable(textObj);
    function getMenuLink (textObj, linkNum) {
        sectionNum=getXmlSection(mainObj, "section",  "menu");
        textObj.htmlText=mainObj["section"][sectionNum].link[linkNum].value;
        textSelectable(textObj);
    function getMenuSystemOrder (linkNum) {
        sectionNum=getXmlSection(mainObj, "section", "menu");
        return (mainObj["section"][sectionNum].link[linkNum].systemOrder);
    function getGlobalText(textObj, textsNumber, optional:Boolean) {
        sectionNum = getXmlSection(mainObj, "section", "global_text");
        textObj.htmlText = mainObj["section"][sectionNum].texts[textsNumber].value;
        if (optional == undefined) {
            textSelectable(textObj);
        } else {
            // do nothing
    function getGlobalImageName(imageNumber) {
        sectionNum = getXmlSection(mainObj, "section", "global_img");
        //currentPage = _root.link-_root.firstPageFrame;
        imageParams = new Array();
        imageParams['name'] = mainObj["section"][sectionNum]["image"][imageNumber]["imageUrl"];
        imageParams['linkToOpen'] = mainObj["section"][sectionNum]["image"][imageNumber]["link"];
        return (imageParams);
    function getCurrentText(textObj, textNumber) {
        sectionNum=getXmlSection(mainObj, "section", "pages");
        currentPage=_root.link-_root.firstPageFrame;
        textObj.htmlText=mainObj["section"][sectionNum]["page"][currentPage]["texts"][0]["pageTex t"][textNumber].value;
        textSelectable(textObj);
    function getMenuPreviousLink (linkNum) {
        k=0;
        systemOrder=getMenuSystemOrder(k);
        while (systemOrder) {
            if (systemOrder==linkNum) {
                orderResult=k+1;
                break;
            k++;
            systemOrder=getMenuSystemOrder(k);
        return (orderResult);
    function getCurrentImageName(imageNumber) {
        sectionNum=getXmlSection(mainObj, "section", "pages");
        currentPage=_root.link-_root.firstPageFrame;
        imageParams=new Array();
        imageParams['name']=mainObj["section"][sectionNum]["page"][currentPage]["image"][imageNum ber]["imageUrl"];
        imageParams['linkToOpen']=mainObj["section"][sectionNum]["page"][currentPage]["image"][im ageNumber]["link"];
        imageParams['target']=mainObj["section"][sectionNum]["page"][currentPage]["image"][imageN umber]["target"];
        return (imageParams);
    function getCurrentImageName_splash(imageNumber) {
        sectionNum=getXmlSection(mainObj, "section", "settings");
        imageParams=new Array();
        imageParams['name']=mainObj["section"][sectionNum]["image"][imageNumber]["imageUrl"];
        imageParams['linkToOpen']=mainObj["section"][sectionNum]["image"][imageNumber]["link"];
        return (imageParams);
    function checkLinkType (linkTextType, linkNumber) {
             k=0;
            typeCount=0;
            finalLinkNumber=parseInt(linkNumber)+1;
            currentPage=_root.link-_root.firstPageFrame;
            sectionNum=getXmlSection(mainObj, "section", "pages");
            linkTypeCkeck=mainObj["section"][sectionNum]["page"][currentPage]["link"][k]["linkType"];
            while (linkTypeCkeck){
                if (linkTypeCkeck==linkTextType) {
                     typeCount++;
                if (typeCount==finalLinkNumber) {
                    return(k);
                    break;
                k++;
                linkTypeCkeck=mainObj["section"][sectionNum]["page"][currentPage]["link"][k]["linkType"];
    _root.readMoreFrameType = 'readmore';
    function more_click_func(number) {
        tempNumber = number.split(" ");
        number=tempNumber.join("");
        number=number.toLowerCase();
        num=_root.pagesReadMoreFrame;
        currentPage=_root.link-_root.firstPageFrame;
        if( isNaN(Number(number)) ) {
            readMoreType = number;
        } else {
            readMoreType = 'readmore';
        //if( (_root.link<>num || _root.readMoreFrameType!=readMoreType)) {      
            if (_root.animation){
                //if (_root.link<>5 ){
            _root["item" + getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
            //_root.menu2["item" + getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
            if (number=='privacypolicy') {
                _root.readMoreFrameType = 'privacypolicy';
                sectionNum=getXmlSection(mainObj, "section", "privacyPolicy");
                titleNum=getXmlSection(mainObj.section[sectionNum], "item", "pageTitle");
                textNum=getXmlSection(mainObj.section[sectionNum], "item", "pageText");
                _root.readMoreTitle=mainObj.section[sectionNum]["item"][titleNum].value;
                _root.readMoreText=mainObj.section[sectionNum]["item"][textNum].value;
            } else if (number=='termsofuse') {
                _root.readMoreFrameType = 'termsofuse';
                sectionNum=getXmlSection(mainObj, "section", "termsOfUse");
                titleNum=getXmlSection(mainObj.section[sectionNum], "item", "pageTitle");
                textNum=getXmlSection(mainObj.section[sectionNum], "item", "pageText");
                _root.readMoreTitle=mainObj.section[sectionNum]["item"][titleNum].value;
                _root.readMoreText=mainObj.section[sectionNum]["item"][textNum].value;
            } else {
                _root.readMoreFrameType = 'readmore';
                sectionNum=getXmlSection(mainObj, "section", "pages");
                linkCount=checkLinkType("readMoreLink", number);
                i=0;
                linkTitleNum=getXmlSection(mainObj["section"][sectionNum]["page"][currentPage]["link"][li nkCount], "item", "title");           
                linkTextNum=getXmlSection(mainObj["section"][sectionNum]["page"][currentPage]["link"][lin kCount], "item", "linkText");
                _root.readMoreTitle=mainObj["section"][sectionNum]["page"][currentPage]["link"][linkCount ]["item"][linkTitleNum].value;
                _root.readMoreText=mainObj["section"][sectionNum]["page"][currentPage]["link"][linkCount] ["item"][linkTextNum].value;            
                    _root.subMenu.subMenu.subMenu["item"+(_root.link-1)].mouseRelease = true;
                    _root.link = 8;
                    _root.linkClosePanel = false;
                    _root.titleNumPage = _root.pagesReadMoreFrame;           
                    _root.content.play();           
    function getContactFormText(textObj, textNumber) {
        sectionNum=getXmlSection(mainObj, "section", "contactForm");
        textObj.htmlText=mainObj["section"][sectionNum]["texts"][0]["pageText"][textNumber].value ;
        textSelectable(textObj);
    function getContactFormText_only(textNumber) {
        sectionNum=getXmlSection(mainObj, "section", "contactForm");
        return htmlText=mainObj["section"][sectionNum]["texts"][0]["pageText"][textNumber].value;
    function getContactFormParams() {
        sectionNum=getXmlSection(mainObj, "section", "contactForm");
        ContactFormParams=new Array();
        servNum=getXmlSection(mainObj["section"][sectionNum], "item", "serverOption");
        recNum=getXmlSection(mainObj["section"][sectionNum], "item", "recipient");
        ContactFormParams['rec']=mainObj["section"][sectionNum]["item"][recNum].value;
        ContactFormParams['serv']=mainObj["section"][sectionNum]["item"][servNum].value
        return (ContactFormParams);
    // gallery functions
    function getGallerySystemProperty(propName) {
        sectionNum=getXmlSection(galleryObj, "section", "systemOptions");
        propNum=getXmlSection(galleryObj["section"][sectionNum], "option", propName);
        return (galleryObj["section"][sectionNum]["option"][propNum].value);
    function getGallerySettings(propName) {
        sectionNum=getXmlSection(galleryObj, "section", "settings");
        propNum=getXmlSection(galleryObj["section"][sectionNum], "option", propName);
        return (galleryObj["section"][sectionNum]["option"][propNum].value);
    function getGalleryImage(imageNum, categoryNum) {
        sectionNum=getXmlSection(galleryObj, "section", "imagesData");
        imageParams=new Array();
        image=galleryObj["section"][sectionNum]["category"][categoryNum]["image"][imageNum];
        nameNum=getXmlSection(image, "item", "imageUrl");
        commentNum=getXmlSection(image, "item", "imageComment");
        imageParams['name']=image['item'][nameNum].value;
        imageParams['comment']=image['item'][commentNum].value;
        return (imageParams);
    function getCurrentGalleryName(categoryNum) {
        sectionNum=getXmlSection(galleryObj, "section", "imagesData");
        return (galleryObj["section"][sectionNum]["category"][categoryNum].name);

  • Missing Images Grey Box with ?

    Have tried drills to view inserted images in 4-page Pages doc, going thru Finder to view, reinsertion of images, trashed com.apple.iwork.Pages.plist,,reinstalled iworks '05 CD, upgraded to 1.0.2, read copious discussions from gurus, still no joy. Images I inserted still there, elusive as ever which remain hidden with that ugly "X" and "?" when reopening doc. Am Mac addict from day one, average Mac user, not tech guru, programmer, developer but need step by step instruction for my low-level 83-year-old comprehension. Pages works o.k. with glitches but the missing image grey box with X and ? reared its ugly head last April and still with me on occasion. Finish 4-page Pages monthly Newsletter 5 meg doc with about 15 inserted jpeg images, "save as" for local distribution printing plus "pdf" for e-mail transmission, print it but when reopening doc after closing I get the grey box with X and ? for my inserted images and have to start over. Images I inserted originally still there opening thru Fiinder viewing "Package Content". Ran G5 Hardware CD test, no problem. From discussions I noted one solution that worked by uncompressing "index.xml.gz" file. Tried that with Stuffitt which didn't work. Am unable to view to see if my images were corrupted as the Discussion Guru "Sylvain Pedneault" outlined on Sep 15, 05, that his images had property sf:corrupt="true". Could be that's my problem if I knew how to determine and fix. I've hit a firewall and am patiently waiting for Apple Pages gurus to resolve this issue still unresolved which I'm confident they will, but at my age I don't buy green bananas. My frustration level is maxed out and will appreciate help in simple step by step language as a work-around until Apple Pages comes thru with upgrade. If I make it thru the Pearly Gates, not guaranteed, I'll put in a good word for the Guru who can resolve my problem!! Thanks.

    Hello Jim,
    If you want to uncompress a "index.xml.gz" file, try this way:
    a) Copy the "index.xml.gz" file to your desktop, so you are not working with the original file.
    b) Start from "Applications/Utilities" the program "Terminal".
    c) In the terminal window, type: gunzip (with a space after it).
    d) Grap the "index.xml.gz" file from the dektop and drop it over the terminal window.
    e) Hit the return key.
    Now you have a "index.xml" file, which you can open with a text editor.
    To compress the file, do the following:
    a) In the terminal window. type: gzip (with a space after it).
    b) Grap the "index.xml" file from the dektop and drop it over the terminal window.
    c) Hit the return key.
    The file should be compressed.
    To make the template readable for Pages, do the following:
    a) Copy the original "index.xml.gz" file from the template package folder (not to the desktop) to have a backup.
    b) Now copy the "index.xml.gz" file from the desktop (the one you have edited) to the template package folder and overwrite the original.
    Please let us know, what you find out.
    Frank.

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

  • MDT 2012 - applying unattend.xml with dism.exe is extremely slow

    Hello,
    The image is completing successfully but it takes forever during the applying unattend.xml with dism.exe stage. 
    Takes well over ½ or so just for that part.  It’s not a fat image just windows. 
    I redid my task sequence but no change.  It used to be fast but now it seems like it hanging during the stage. 
    Any ideas?
    Thanks in advance

    One of the things that DISM does is to apply all the device drivers you specify. Please check the selection profile you have used for the Inject Drivers step and while you are at it check also for the Packages. By default it is set to everything,
    if you do as I do and select specific device drivers make sure the selection profile is set to what ever you need or set to nothing if you set the MDT variables DeviceDriversxxx specifically.
    Thanks for the reply.  I have all of my selection profiles selecting only the drivers for each computer.
    This all started after I added the latest Lenovo laptop with the Haswell processors. 
    I will keep looking.
    Thanks

  • Does IE/Firefox browser validate a give XML with DTD

    Hi,
    The following is my XML with an internal DTD and below that is the css
    <?xml version="1.0" ?>
    <!DOCTYPE INVENTORY
    <!ELEMENT INVENTORY (BOOK)+ >
    <!ELEMENT BOOK (NAME,PRICE)>
    <!ELEMENT NAME (#PCDATA)>
    <!ELEMENT PRICE (#PCDATA)>
    <!ELEMENT IMAGE EMPTY>
    >
    <?xml-stylesheet type="text/css" href="Inventory01.css"?>
    <INVENTORY>
    <BOOK>
         <NAME> 101 Thins to lie </NAME>
         <PRICE> 9494.03</PRICE>
         <IMAGE> TEST </IMAGE>
    </BOOK>
    <BOOK>
         <NAME> iT nEVER Gets Better </NAME>
         <PRICE> 44.43</PRICE>
    </BOOK>
    </INVENTORY>The following is the CSS file refered above.
    BOOK
         display:block;
         margin-top:12pt;
         font-size:10pt
    NAME
         display:block;
         margin-top:12pt;
         font-weight:bold;
         font-style:italic;
    PRICE
         display:block;
         margin-left:15pt;
    }I was expecting the browser to validate my XML and give me an error. Please tell me if the browsers validate XMLs? If yes, is there any issue with the above code.
    Thanks.
    Regards,
    Technoz

    I was expecting the browser to validate my XML and
    give me an error. Please tell me if the browsers
    validate XMLs?Try this experiment: Set up an XML that doesn't validate against its internal DTD. Then load it into a browser to see if the browser validates it or not.
    Oh wait, didn't you already try that experiment? What did you find out?

  • Print Images in XML Report

    Hi,
    I do have a requirement to print digital signature in a Quote, the signature is been stored as a picture (longraw datatype per_images table) in HRMS Tables
    HRMS Responsibility -> people -> Enter and Maintain -> Picture, here we will upload the signature of a person and this need be printed in XML Report.
    In the Report Builder if we change the ‘file format’ to ‘Image’ we are able to display the image , but when we are register in APPS, we not able to get the image, even XML tags are not been generated.
    Regards,
    Satish.

    Here...this should help !
    BLOB image in XML Publisher

  • Unable to write an image to excel with report generation toolkit

    I am unable to write an image to excel with the report generation toolkit. The VI works fine for word, but when I select Excel the speadsheet pens but remains blank.

    Ranjeet
    I am using Labview 2013 or 8.0, but here is an image of the very simple test VI.
    Regards
    Steve

  • HT201210 I tried to do an update to the Ios 5 but it failed tried to restore my iphone however all im left with is an image of itunes with a usb connector please help as my phone will no longer work!!

    Hi I tried to do an update on my Iphone 4 hardware but it failed (dont knoyw why) I followed instructions to restore my Iphone unfortunatel all im left with is an image of itunes with a usb and a dead phone can someone help???

    Hey, I aggree with Tempelton for the most part, but if you are an advanced user on the computer on the phone, there is one thing you can try. There is a program called RecBoot, which might help you, and here is a page that might help you. http://jaxov.com/2010/05/recboot-iphone-recovery-mode/ If you are not an advanced user, I would NOT recomend using RecBoot, and just proceeding with the restore. A little consolation could be that you probably had Photo Stream on, and you might have been backing up to iCloud, which should mean you'll have some stuff after the resote. Sorry this happened!

  • Unable to transform XML with XSL in java code

    Hi,
    Could somebody please tell me what's wrong with my code, why it isn't transform the XML with XSL to the output that I want. If I use the command line to transform the XML, it output perfectly:
    java org.apache.xalan.xslt.Process -in marc.xml -xsl MARC21slim2MODS.xsl -out out.xml
    Here is the code of my program to transform the XML with XSL, I am using xalan-j_2_2-bin:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import javax.xml.transform.dom.*;
    import java.math.BigInteger;
    String xslDoc = "MODS.xsl";
    String xmlResult = "out.xml";
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    dfactory.setNamespaceAware(true);
    DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
    Document xmlDoc = docBuilder.newDocument();
    Element root = xmlDoc.createElement("collection");
    root.setAttribute("xmlns", "http://www.loc.gov/MARC21/slim");
    xmlDoc.appendChild(root);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xslDoc));
    FileWriter fw = new FileWriter(new File(xmlResult));
    StreamResult output = new StreamResult(fw);
    transformer.transform(new DOMSource(xmlDoc), output);
    fw.flush();
    fw.close();
    ========================
    marc.xml -- source XML file
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01488cam 2200337 a 4500</leader><controlfield tag="001">2502929</controlfield><controlfield tag="005">19930521155141.9</controlfield><controlfield tag="008">920219s1993 caua j 000 0 eng </controlfield><datafield ind1=" " ind2=" " tag="035"><subfield code="9">(DLC) 92005291</subfield></datafield><datafield ind1=" " ind2=" " tag="906"><subfield code="a">7</subfield><subfield code="b">cbc</subfield><subfield code="c">orignew</subfield><subfield code="d">1</subfield><subfield code="e">ocip</subfield><subfield code="f">19</subfield><subfield code="g">y-gencatlg</subfield></datafield>
    </record></collection>
    ========================
    out.xml -- result using command line
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/mods/" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/marcxml/schema/mods.xsd">
    <mods>
    <titleInfo>
    <title>Arithmetic</title>
    </titleInfo>
    <name type="personal">
    <namePart>Sandburg, Carl</namePart>
    <namePart type="date">1878-1967</namePart>
    <role>creator</role>
    </name>
    </mods>
    </collection>
    ========================
    out.xml -- result using my java program
    ========================
    <?xml version="1.0" encoding="UTF-8"?>
    <collection xmlns="http://www.loc.gov/mods/" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/marcxml/schema/mods.xsd">01488cam 2200337 a 4500250292919930521155141.9920219s1993 caua j 000 0 eng (DLC) 920052917cbcorignew1ocip19y-gencatlgpc16 to br00 02-19-92; br02 to SCD 02-21-92; fd11 02-24-92 (PS3537.A618 A...); fa00 02-26-92; fa05 03-02-92; fm31 03-06-92; CIP ver. pv08 04-16-93; pv01 to CLT 04-20-93; lb10 05-21-93
    </collection>

    I am using the same XSL file. My Java program use the same XSL file I used in the command line.
    It is possible that my Java code is using a different parser, but I developed a seperate program to parse the XML using the same parser that my Java code is using. It output the result I expected. Here is the code for the program:
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    public class Convertor {
    public static void main(String[] args) throws Exception {
    String xslDoc = "MARC21slim2MODS.xsl";
    String xmlResult = "out.xml";
    String xmlDoc = marc.xml";
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xslDoc));
    StreamSource xmlSource = new StreamSource(xmlDoc);
    FileWriter fw = new FileWriter(new File(xmlResult));
    StreamResult output = new StreamResult(fw);
    transformer.transform(xmlSource, output);
    }

Maybe you are looking for