Slice Name

If you use "Save Selected Slices...", images with the slice name, or slice index are output to the file system.
If a user opens the "Save for Web..." dialog and double clicks on a slice a user can enter a slice name. The following code picks this slice name up for each slice:
ASSliceSettings settings;
ai::int32 *sliceList;
ai::int32 numSlices;
sAISlicing->GetSelectedSliceList(&sliceList, &numSlices);
for(int i=0; i<numSlices; i++) {
    sAISlicing->GetSliceSettings(sliceList[i], &settings);
    char* hName;
    sAIPlatformMemory->Lock(settings.hName, (void**) &hName);
    printf("%s\n", hName);
    sAIPlatformMemory->UnLock(settings.hName);
The problem is that hName has a blank value when a user did not supply a name to a given slice. So how do I go about getting the slice index in this case? The slice id is a huge number and the slice position does not match the slice index.
Any ideas?
Thanks

You mean the object name in the Properties panel? It is a bit
cramped down there, but did you know that's the same thing as the
object name in the layers panel? I never use that little textbox
for that very reason, I prefer just using the layers panel. Double
click the slice name in the layers panel (which by default says
"Slice") and you can name it right there, exact same thing as using
the Properties panel. And you can even drag out the panel width
just like you want. :)
Hope that helps!

Similar Messages

  • Export multiple slices and preserve slice name?

    I am very particular about naming my slices what I want the filename to be, then do the right-click > export slice on each graphic, but when you have to do that for 50 slices it gets pretty annoying.
    Is there a way to select a bunch of slices and export them with their current slice name, all at the same time? Rather than just giving it the generic root - name that they all go off of.
    Thanks!!
    -Austin

    If you name the slices in the Web Layer (double-click on "Slice" then type a name without an extension), then that's the name they get when they're exported.
    When I want to export only some of my slices, here's what I do:
    Select the slices (either on the canvas or in the Web layer)
    Go to File > Image Preview
    Adjust any parameters (the Properties panel has limited selections, so this is one good option)
    Click the Export button
    For the Export: drop-down, select "Images Only"
    For the Slices: drop-down, select Export Slices
    Check box next to "Selected slices only"
    Click the Save button
    If you go through File > Export, you skip steps 3 and 4. If you've already optimized your file parameters, then you might prefer this workflow.
    I'm using CS3, but I don't think this process changed in CS4.

  • Slicer Time Dimension Issue with Cube Functions

    Hi,
    Hoping someone can help me figure out right approach here.
    Summary:
    Using Excel 2013 connected to a SSAS cube as data source, and cube functions with slicers to create a dashboard.
    Have following time dimension slicers; Fiscal Year, Fiscal Quarter, Fiscal Month, Fiscal Week & Date, that are used to slice data based on user selection, along
    with a sales measure.
    Below is example of Slicer name and CubeMember function for each:
    Slicer_Fiscal_Year: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Year].&[2015]")
    Slicer_Fiscal_Quarter: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Quarter].[All]")
    Slicer_Fiscal_Month: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Month].&[201408]")
    Slicer_Fiscal_Week: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Week].&[201509]")
    Slicer_Date: 
    =CUBEMEMBER("Cube","[Date].[Date].[All]")
    Problem:
    What I am trying to do is to build a table with cube functions that takes the lowest grain of the slicer time dimension selected, shows the current member, plus
    the prior 7 so I can have an 8 period trending view table that I will build a chart from. In the above example that would mean that it would look at Slicer_Fiscal_Week since that is lowest grain that has an attribute other than All, and then show me the prior
    7 periods. In this case 201509 means Week 9, so I would want to show in table Week 9 back to Week 2. But if Slicer_Fiscal_Week was set to All, along with Slicer_Date, then Fiscal Month would be lowest grain, so I would want to show Fiscal Months from August
    (201408) back to January 2014. I know how to use CubeRankedMember to pull the value from what is selected in the slicer, the problem is figuring out how to pass the lowest grain time dimension so that I can use lag or some other MDX function to get the previous
    periods.
    Any help on this would be greatly appreciated.
    <object height="1" id="plugin0" style=";z-index:1000;" type="application/x-dgnria" width="1"><param name="tabId" value="{28593A5C-70C0-4593-9764-80C76B51795C}"
    /></object>

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Dynamic creation of data slices by admin users in BPS

    hi
    Can we create planning function so that administrative users can create data slices  as per their timings.
    kind regards
    Sarah

    Dear Sarah,
    I donot have any sample code as of now as I am not able to access a BPS system. But let me tell you that this is simple. Create a exit planning function. Then create a FM and assign this FM in exit function INIT FM. In the FM do the following insertions to the data slice tables.
    First have a look at the tables UPC_DATASLICE, UPC_DATASLICET and UPC_OPTIOS. Create a 22 character unique GUID. You can use the standard function modules for this. Let this guid be guid_new. Then get the maximum sort id of data slices for your planning area from the table UPC_DATASLICE. Now add 1 to this maximum sort and have it as sort_new. Now insert this guid_new, sort_new, your planning area name as a new row in the table UPC_DATASLICE.
    After that insert sort_new, your planning area name, your new data slice name to the table UPC_DATASLICET.
    The characteristic value restrictions of the data slices are held in the table UPC_OPTIOS. For the particular GUID each characteristic restriction has one row each. Consider that you are creating data slice for the year 2008 and material 'M'. So in table UPC_OPTIOS there will be 2 records with GUID guid_new. One will be for '0FISCYEAR' and the next record will be for '0MATERIAL'. See table UPC_OPTIOS for the structure of the records. You should use function module 'UPC_OPTIOS_INSERT' to insert into the table UPC_OPTIOS. Goto se37 and have a look at the function module for the structure.
    Dynamic refresh of the buffer:
    If u are creating only 1 data slice in 1 transaction then you should do the following:
    PERFORM BUFFER_DATASLICE_GET
    IN PROGRAM SAPLUPC_DATASLICE
    USING DS_AREA_NAME "insert your data slice area name here
    'E'
    CHANGING ES_AREA_SLICE.
    PERFORM BUFFER_DATASLICE_UPDATE
    IN PROGRAM SAPLUPC_DATASLICE
    CHANGING ES_AREA_SLICE.
    CALL FUNCTION 'UPC_DATASLICE_COMMIT'.
    CALL FUNCTION 'UPC_DATASLICE_SAVE'.
    This will refresh the data slice buffer!
    I think this is sufficient enough for ur requirement. You should be able to do it easily now! Feel free to ask if u have more doubts.
    Regards,
    Ares!

  • BUG in CS 5.5 plaguing web designers: copying slices

    Hi,
    I sent in bug reports for CS5 already, no success - maybe they arrived at lunchtime.
    The problem:
    If I copy by alt-dragging a slice (an element that is set as slice) the slice properties (name for example)
    is kept for the copied element and the source element is reset to default values.
    That is unusual and very bad. Next time you export for web, completely different parts of the
    imaged may be exported under the old slice names.
    Work around: Setting the values right manually after the copying is possible, but time-consuming and
    error-prone.
    Expected behavior:
    If I copy an element that is set as a slice, the source element remains unchanged, including all slices-properties
    and the new element has the default values.

    Hi Mylenium,
    I actually do not care how Adobe are organized internally, as long as they fix such a very nasty ambushing bug, once reported.
    I always try the bug report first, then, if this does not help, because of whatever reason (yes, maybe lunch - we are all humans ;-)
    I go public (forums, blogs)...
    I don't expect a confirmation in form of a personal response. But when there is an update, or even a paid point-1 upgrade, I expect a solution for such obvious bugs! The Flash team seems to be quicker, by the way: Reported bugs go away even in intermediate free updates. Maybe there's a toucher product management behind it, which is pure speculation I admit.
    In our defined workflows it is CRITICAL that SET properties for slices (better: rectangles that are defined as slices) remain SET, once set.
    Forgetting/transferring properties just because a graphic element becomes a copy-source is one of the NASTIEST (ambushing) bugs thinkable for us. Worse than a crash, because then at least you know that there is a problem. - It costs valuable training time for our freelancers and requires additional quality control.
    I expect from a very expensive software upgrade (5.0 is not 5.1. - so it is NOT the same, as you say, and Adobe wants money for it!)at least a proper software maintenance, if no featues are added.

  • Issue exporting slices from different pages

    I'm an experienced Fireworks user, and love the new pages
    function, but have found what I consider to be a bug.
    I have about 70 graphics that I need to have trimmed in one
    direction but not the other. Since I can't do this with layers
    (Adobe should REALLY consider adding this as a feature for
    exporting by layers, imo - currently exporting by layer only allows
    trimming in both directions or no trim) I'm using pages - each page
    has a single layer with multiple objects, and a single slice. This
    is great, except for one giant bug: when I try to export "images
    only" + "selected slices only" and deselect "this page only", it
    uses the page name for the exported graphic, not the slice name. If
    I export all the pages, the slice names are used. This is a big
    issue for us, since exporting by layers or exporting slices using
    pages is a HUGE help in repetitive image production (but only when
    it works right).

    Kathleen13 wrote:
    > There are 70 pages with one slice per page. Each slice
    is uniquely named,
    > according to a naming convention. It is not a shared
    layer slice or a master
    > page slice.
    >
    > 1. I want all the slices on about half of the pages to
    print, and the output
    > graphics should be named for the slices.
    > 2. I turned off the slices on the pages where I don't
    want the slice to export
    > 3. I am exporting "images only", using slices, with
    "this page only"
    > deselected and "selected slices only" turned on
    (although, I tried it with that
    > turned off and saw no difference in the result).
    >
    > In previous versions of Fireworks, only the slices that
    are turned on will
    > export, so it follows that should still be the case,
    regardless of what page
    > they're on. And that is the case: only the slices that
    are turned on export,
    > but instead of being named for the slice, they're named
    for the page. If the
    > app were exporting the pages, the entire page area
    should export, but it
    > doesn't. Also, export pages to files is a different
    command in the drop menu on
    > export, so exporting slices should not export pages, any
    way you look at it.
    >
    > Lastly, the slices export with the slice names if I turn
    them all on, but if
    > any slices are turned off, the slices export with the
    page names. I can't
    > imagine that is intended behavior because it's not
    logical or helpful, and I
    > can't imagine that it would be considered expected
    behavior by a user.
    >
    > I cannot send the files I am working on, for legal
    reasons, but I will create
    > files that require the same process. It will take me a
    couple of days as I am
    > in crunch mode on this project.
    >
    Thanks Kathleen. This is great detailed info. I look forward
    to seeing
    your example. Hopefully we can figure something out. :-)
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • Saving slices with a fixed prefix of choice

    [Edit: I just discovered a wonderful Batch Rename option in Bridge, so this is a good workaround for me]
    I have a file with many slices. The file has several layer comps and they just change the color cast with hue-sat adjustment, so they are named "green", "yellow", "red", etc. I must save the slices for each layer comp into globally unique named files, because later they will be mixed all together on a web site. Ideally, the names would be like this:
    green_slice1.jpg
    green_slice2.jpg
    yellow_slice1.jpg
    yellow_slice2.jpg
    where "green" and "yellow" are after layer comp name and the rest is slice name.
    I looked into the "Other" Output Settings options, File Naming section but there seems to be no option for layer comp prefix or any user invented prefix that would enable me to save them to the same folder and not override (I wouldn't mind typing manually the color name, but there is no option to "use an arbitrary word of your choice"). So it looks like the only solution is to save each layer comp to a separate document and then use the Save for Web and Devices in each document with the doc. Name filename prefix. But I am asking here just in case that maybe there is some workaround, because making copies of such files is a bit artificial, just for saving and then delete and a bit of waste of time.

    There are Text bullets which would allow you to start with "Part" but you can't then combine that with numbered lists in the following indent of the line.
    I can't imagine that it will be such a burden to have to label this level manually, or simply omit the redundent "Part". The division should be obvious from the context.
    It is something I find totally redundant in tutorials when people repeatedly label things Step 1, Step 2, Step 3 etc. They are just 1, 2, 3 etc and obviously steps, or whatever else you want to describe them.
    Imagine adding "Point" in front of every • bullet. "Dash" in front of every -.
    Peter

  • Why does photoshop automatically rename file names when using save for web?

    All of a sudden when choosing Save for Web, when i type in a name for my file in the File Name: dialog box, when you click "save", it saves the selected slices as the name of the document and not what i typed.
    For example: My psd file is called "website header" and i want to save the slices with the name "index". If i save slice-02 or slice-06 it will save as "index_02.jpg" but if i choose slice 01, it will save as "website-header_01"

    Check your settings in the SfW output options and yopur slice names in PS itself.
    Mylenium

  • Question on raw device names in Solaris

    DB Version :11G Release 2
    OS     : Solaris 5.10 (AMD x86)
    Number of Nodes:2
    I've finished installing Grid infrastructure and RDBMS software. I have invoked ASCMA (GUI) to create disk groups. ASMCA has succesfully listed the Disk group i've created for OCR and Voting Disk during Grid Installation. Now it is time to create the Disk group for Datafiles.
    Storage Admins have given us a shared Slice of 700GB for this test installation.
    This slice seen from Node1:
    /dev/rdsk/c3t400A0B800047D3M3210s3The same slice seen from Node2
    /dev/rdsk/c1t400A0B800038A4CA0050s3From Google and OTN, If i understand correctly, you need a 'multi-pathing disk driver' to make these slices appear with one name. I don't think we have this in our site.
    Invoking ASMCA gui from Node1, I've just succesfully created a Disk group called DG1 from the 700 GB slice mentioned above. But, how will i let Node2 know that the slice which DG1 is made of (c3t800A0B800047D3M3210s3 when seen from Node1) is acutually the same 700 GB slice known to Node2 as
    c1t400A0B800038A4CA0050s3?
    Should i invoke ASMCA from node2 and do something to let node2 know about this? I can set
    ASM_DISKSTRING=/dev/rdsk/c1*from Node2's ASM instance. But there other slices appearing in Node2 starting with
    c1*How will Node2 correctly discover the 700 gb c1****s3 shared slice meant for this RAC installation? What is point of setting ASM_DISSTRING anyway? I mean, we might be able to get node2 slice names on ASMCA's list. But, it is the same slice appearing as a different name. So , there is no point in ticking (the check box in GUI) it anyway.
    Should i do nothing and continue with installation?
    Edited by: Citizen_2 on Nov 14, 2010 1:02 AM

    Thank you Srikanth. I invoked asmca. Both ASM instances are up.
    Under ASM instances Tab
    Status ====> 'UP' for both nodes
    ADVM Driver status ====> 'Loaded' for both
    Under Disk groups tab
    Disk group for OCR and VOTE's status is 'MOUNTED (2 Of 2)'
    Disk group for Datafiles' status is 'MOUNTED (1 of 2)'
    I cliked 'Mount All' button. But got the error
    ORA-15017: diskgroup "DG1" cannot be mounted
    ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DG1"
    CRS-2674: Start of ora.DG1.dg on node2name failedNode2 recognizes OCR Disk group though. But it doesn't recognise the Disk group DG1 created for Datafiles
    - fROM NODE2
    $ sqlplus / as sysasm
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 16 15:27:19 2010
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Real Application Clusters and Automatic Storage Management options
    SQL> startup
    ORA-00099: warning: no parameter file specified for ASM instance
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> ALTER DISKGROUP DG1 MOUNT;
    ALTER DISKGROUP DG1 MOUNT
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15017: diskgroup "DG1" cannot be mounted
    ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DG1"
    --- But OCR is recognized
    SQL> ALTER DISKGROUP ALL MOUNT;
    ALTER DISKGROUP ALL MOUNT
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15017: diskgroup "DG_OCR_VOTE" cannot be mounted
    ORA-15013: diskgroup "DG_OCR_VOTE" is already mounted

  • AI CS3 - Save for Web & Devises image name problem

    Hi -
    For some reason when I doubleclick to name an image slice, hit Done to go back to the file, then go back to Save for Web & Devices, AI doesn't remember the names. I have to retype them (defaults back to User1 or whatever number). Anyone know how to fix this?
    Thanks,
    Sue

    I just found this article document:
    http://www.adobeforums.com/webx/.3bc4cd31/2
    It looks like they now have to be saved via drop down menus in order for Illustrator to remember the slice names for export again:
    "Object - Slice - Slice Options, and then in Save for Web, set the Output Settings for Saving Files"
    In my opinion this is incredibly poor UI design. In prior versions of Illustrator, I would save the names in the Save for Web dialog box by simply double clicking the slice frame, and it would remember the names of my slices for export again.
    Clicking through drop down menus just to name a slice is inefficient compared to just double clicking a slice frame to name the slice.
    If this is a bug, is there a solution to this? (Or are we really stuck with this poor system?)

  • How do I update slices in photoshop without losing the links in Dreamweaver??

    Hi all,
    I have designed a website in photoshop and everything is sailing smoothly. The only problem I have is that everytime I try to update the layout in photoshop I lose all the links I had put to the slices in dreamweaver. This happens even if am just adding a single word to the layout in photoshop and sav it for web. the website has many many links and everytime I update the site means I have to put the links on all over again and it is a chao as they are over 100 links....
    Is there a way to update the layout in photoshop and still have the slices with their links in dreamweaver?? I also lose all my DIV tags when I update the site...
    Please help

    Sounds like you're exporting Save as type: HTML and Images, which will overwrite your modified HTML (anchors etc) in your web page every time.
    When you export the slices, try exporting Save as type: Images Only, so that only the image get exported and your modified HTML (anchors etc) stays intact.
    Provided your slice names and dimensions don't change, only the sliced images will update and your page layout will remain intact.

  • Jumpstart/ZFS - mirror any any uses two slices on the same disk

    Hi all,
    I am setting up a set of custom Jumpstart profiles for a Solaris 10 10/09 SPARC install server. I am attempting to set up ZFS mirrored root filesystems using part of the two root disks (reserving the remainder for a second ZFS pool for application data). To achieve this, I have been using "mirror any any" as the device list for the pool directive in the Jumpstart profile
    On my test system with 73GB disks I've had no problems, but testing against a new server with 146GB disks the installer seems to be putting both halves of the mirror onto the same disk - I presume because the root pool size is less than half the size of the disk, and so it can.
    Is there any way to specify that the root pool should be mirrored across any two distinct disks, or any other advice on how to avoid this happening? I know I can specify exact slice names (i.e. "mirror c1t0d0s0 c1t1d0s0"), but some of the servers will have FC cards in, and so I can't guarantee what controller number the internal disks will be on.
    As an example, here is a line from the rules file, and the associated profile (the start/finish scripts are currently only displaying information).
    rules
    ====
    arch sparc && memsize 4000-4200 begin_settings.sh sparc_4G_zfs lmu_setup.sh
    sparc_4G_zfs profile
    ===============
    install_type initial_install
    system_type standalone
    cluster SUNWCXall
    pool rpool 30g 4097 1g mirror any any
    Thanks,
    Dave Taylor
    Senior Infrastructure Consultant
    Leeds Metropolitan University

    Hello Dave,
    I would expect that the profile you supplied will result in two slices off the same 146G disk to be selected for both sides of the mirror. If the numbers you had used for poolsize/swapsize/dumpsize had been smaller, you would would have had the same behavior on the 73G disk as well.
    In short, when you say 'any', you are basically saying "I don't care where it goes, give me the first slice/device that works". So, with the 'any' in the first position, kernel probe order is used, so in this case the first disk is selected, and the zpool is created. With 'any' in the second position, again the first disk is found, with available space, the mirror slice is created.
    If you want the two parts of the mirror to be on different devices, either alter the numbers for poolsize/swapsize/dumpsize in your profile so you cannot get both on the same disk, or don't use 'any' for the mirror vdev.
    Again, if you use 'any', you are saying "I don't care". If you do care, don't use 'any'.
    Channing

  • I can't install Solaris 11

    Hi.
    I want to using Solaris 11 too, but i can't install it. My computer is form MEDION company, model: B818/3. After 99% of GUI installation my computer told me that he can't finish.
    What can I do? I get that log(sorry if it' s too long):
    2012-03-31 16:54:13,720 InstallationLogger INFO **** START ****
    2012-03-31 16:54:14,056 InstallationLogger INFO Loading GLADE files...
    2012-03-31 16:54:14,286 InstallationLogger INFO Done loading GLADE files.
    PROGRESS REPORT: progress percent:0 Preparing for Installation
    2012-03-31 16:54:14,554 InstallationLogger INFO Initial screen is screen [0] [Welcome Screen]
    2012-03-31 16:54:19,191 InstallationLogger INFO Next screen is screen [1] [Disk Screen]
    PROGRESS REPORT: progress percent:100 TargetDiscovery completed.
    2012-03-31 16:54:53,952 InstallationLogger INFO TD XML:
    <target name="discovered">
    <disk whole_disk="false">
    <disk_name name="c4t0d0" name_type="ctd"/>
    <disk_prop dev_type="usb" dev_vendor="Lexar" dev_size="15663104secs"/>
    <partition action="preserve" name="1" part_type="7">
    <size val="15661056secs" start_sector="2048"/>
    </partition>
    </disk>
    <disk whole_disk="false">
    <disk_name name="c5t0d0" name_type="ctd"/>
    <disk_prop dev_type="sata" dev_vendor="ST31000528AS" dev_size="1953504000secs"/>
    <disk_keyword key="boot_disk"/>
    <partition action="preserve" name="1" part_type="130">
    <size val="4206592secs" start_sector="2048"/>
    </partition>
    <partition action="preserve" name="2" part_type="131">
    <size val="41945088secs" start_sector="4208640"/>
    </partition>
    <partition action="preserve" name="3" part_type="131">
    <size val="1907369984secs" start_sector="46153728"/>
    </partition>
    </disk>
    <logical noswap="true" nodump="true"/>
    </target>
    2012-03-31 16:54:53,952 InstallationLogger INFO TD found 2 disks
    2012-03-31 16:54:53,959 InstallationLogger INFO TD FINISHED SUCCESSFULLY!
    2012-03-31 16:54:53,960 InstallationLogger INFO Disk [c5t0d0] selected
    2012-03-31 16:54:54,327 InstallationLogger INFO Disk [c5t0d0] selected
    2012-03-31 16:54:54,346 InstallationLogger INFO Disk [c5t0d0] selected
    2012-03-31 16:55:03,192 InstallationLogger INFO Disk [c4t0d0] selected
    2012-03-31 16:55:05,422 InstallationLogger INFO Disk [c4t0d0] selected
    2012-03-31 16:55:09,293 InstallationLogger INFO Starting validation.
    2012-03-31 16:55:09,293 InstallationLogger INFO Disk layout after tidy up:
                        -> [disk] (Disk: ctd=c4t0d0; volid=None; devpath=/pci@0,0/pci1462,7707@1d/hub@1/storage@7/disk@0,0; devid=None; prop:dev_type=usb; prop:dev_vendor=Lexar; prop:dev_size=7.47gb; is_cdrom=False; label=VTOC; in_zpool=rpool; in_vdev=vdev; whole_disk=False; write_cache=False)
                             -> [1] (Partition: name=1; action=preserve; part_type=7; size=7.47gb; start_sector=2048; bootid=0; is_linux_swap=False)
    2012-03-31 16:55:09,293 InstallationLogger INFO Creating slice 0 on Solaris2 partition.
    2012-03-31 16:55:09,300 InstallationLogger INFO New Slice 0:                          -> [0] (Slice: name=0; action=create, force=False, is_swap=False, tag=2, flag=0; in_zpool=rpool; in_vdev=vdev; size=7.46gb; start_sector=4096)
    2012-03-31 16:55:09,305 InstallationLogger INFO Performing Target.final_validation().
    2012-03-31 16:55:09,309 InstallationLogger INFO final_validation passed.
    2012-03-31 16:55:09,310 InstallationLogger INFO Validation succeeded. Desired Targets in DOC:
    <target name="desired">
    <disk whole_disk="false">
    <disk_name name="c4t0d0" name_type="ctd"/>
    <disk_prop dev_type="usb" dev_vendor="Lexar" dev_size="15663104secs"/>
    <partition action="create" name="1" part_type="191">
    <size val="15659008secs" start_sector="4096"/>
    <slice name="0" action="create" force="false" is_swap="false" in_zpool="rpool" in_vdev="vdev">
    <size val="15646720secs" start_sector="4096"/>
    </slice>
    </partition>
    </disk>
    <logical noswap="false" nodump="false">
    <zpool name="rpool" action="create" is_root="true">
    <vdev name="vdev" redundancy="none"/>
    <be name="solaris"/>
    <zvol name="swap" action="create" use="swap">
    <size val="793m"/>
    </zvol>
    <zvol name="dump" action="create" use="dump">
    <size val="198m"/>
    </zvol>
    <filesystem name="export" action="create" mountpoint="/export" in_be="false"/>
    <filesystem name="export/home" action="create" in_be="false"/>
    </zpool>
    </logical>
    </target>
    2012-03-31 16:55:09,310 InstallationLogger INFO Next screen is screen [2] [TimeZone Screen]
    2012-03-31 18:55:24,782 InstallationLogger INFO Running command: ['/usr/bin/date', '033118552012.24']
    2012-03-31 18:55:24,016 InstallationLogger INFO Next screen is screen [3] [User Screen]
    2012-03-31 18:55:36,058 InstallationLogger INFO Next screen is screen [4] [Confirmation Screen]
    2012-03-31 18:55:36,061 InstallationLogger INFO **** Install Details ****
    2012-03-31 18:55:36,061 InstallationLogger INFO -- Disk --
    2012-03-31 18:55:36,064 InstallationLogger INFO      7.5 GB partition on 7.5 GB disk (c4t0d0) This partition will be erased
    2012-03-31 18:55:36,065 InstallationLogger INFO      The whole installation will take up 5.0 GB hard disk space.
    2012-03-31 18:55:36,065 InstallationLogger INFO -- Software --
    2012-03-31 18:55:36,065 InstallationLogger INFO      Oracle Solaris
    2012-03-31 18:55:36,066 InstallationLogger INFO -- Timezone --
    2012-03-31 18:55:36,066 InstallationLogger INFO      Poland
    2012-03-31 18:55:36,066 InstallationLogger INFO -- Locale --
    2012-03-31 18:55:36,066 InstallationLogger INFO      Default Language: en_US.UTF-8
    2012-03-31 18:55:36,067 InstallationLogger INFO      Language Support: United States
    2012-03-31 18:55:36,067 InstallationLogger INFO -- Users --
    2012-03-31 18:55:36,067 InstallationLogger INFO      User Account: wyciu
    2012-03-31 18:55:36,067 InstallationLogger INFO      Root Password: Same as user account.
    2012-03-31 18:55:36,068 InstallationLogger INFO      Host name: solaris
    2012-03-31 18:55:37,734 InstallationLogger INFO Next screen is screen [5] [Progress Screen]
    PROGRESS REPORT: progress percent:0 Preparing for Installation
    PROGRESS REPORT: progress percent:100 PrepareTransfer completed.
    2012-03-31 18:55:38,699 InstallationLogger INFO Setting up software to install/uninstall
    2012-03-31 18:55:38,700 InstallationLogger.sysconfig INFO Opening keyboard device: /dev/kbd
    2012-03-31 18:55:38,701 InstallationLogger.sysconfig INFO Detected following current keyboard layout: Polish
    2012-03-31 18:55:38,702 InstallationLogger.sysconfig INFO console type: Physical Console
    PROGRESS REPORT: progress percent:0 Preparing for Installation
    2012-03-31 18:55:38,717 InstallationLogger INFO Install Started
    PROGRESS REPORT: progress percent:0 Preparing for Installation
    PROGRESS REPORT: progress percent:0 Preparing for Installation
    PROGRESS REPORT: progress percent:1 Preparing for Installation
    PROGRESS REPORT: progress percent:1 Preparing for Installation
    PROGRESS REPORT: progress percent:1 Preparing for Installation
    PROGRESS REPORT: progress percent:2 Preparing for Installation
    PROGRESS REPORT: progress percent:2 Preparing for Installation
    PROGRESS REPORT: progress percent:2 Preparing for Installation
    PROGRESS REPORT: progress percent:3 Preparing for Installation
    PROGRESS REPORT: progress percent:3 Preparing for Installation
    PROGRESS REPORT: progress percent:3 Preparing for Installation
    PROGRESS REPORT: progress percent:4 Preparing for Installation
    PROGRESS REPORT: progress percent:4 Preparing for Installation
    PROGRESS REPORT: progress percent:5 VarSharedDataset completed.
    PROGRESS REPORT: progress percent:5 TargetInitialization completed.
    2012-03-31 18:56:05,064 InstallationLogger.transfer-root INFO === Executing transfer-root Checkpoint ===
    PROGRESS REPORT: progress percent:5 Beginning CPIO transfer
    2012-03-31 18:57:04,663 InstallationLogger.transfer-root INFO Transferring files to /a
    PROGRESS REPORT: progress percent:5 Transferring contents
    PROGRESS REPORT: progress percent:5 Transferring contents
    PROGRESS REPORT: progress percent:6 Transferring contents
    PROGRESS REPORT: progress percent:7 Transferring contents
    PROGRESS REPORT: progress percent:8 Transferring contents
    PROGRESS REPORT: progress percent:9 Transferring contents
    PROGRESS REPORT: progress percent:10 Transferring contents
    2012-03-31 18:57:36,656 InstallationLogger.transfer-root INFO Transferring files to /a
    PROGRESS REPORT: progress percent:10 Transferring contents
    PROGRESS REPORT: progress percent:11 Transferring contents
    PROGRESS REPORT: progress percent:12 Transferring contents
    PROGRESS REPORT: progress percent:13 Transferring contents
    PROGRESS REPORT: progress percent:14 Transferring contents
    PROGRESS REPORT: progress percent:15 Transferring contents
    PROGRESS REPORT: progress percent:15 Transferring contents
    PROGRESS REPORT: progress percent:16 Transferring contents
    PROGRESS REPORT: progress percent:17 Transferring contents
    PROGRESS REPORT: progress percent:18 Transferring contents
    PROGRESS REPORT: progress percent:19 Transferring contents
    PROGRESS REPORT: progress percent:20 Transferring contents
    PROGRESS REPORT: progress percent:20 Transferring contents
    PROGRESS REPORT: progress percent:21 Transferring contents
    PROGRESS REPORT: progress percent:22 Transferring contents
    PROGRESS REPORT: progress percent:23 Transferring contents
    PROGRESS REPORT: progress percent:24 Transferring contents
    PROGRESS REPORT: progress percent:25 Transferring contents
    PROGRESS REPORT: progress percent:25 Transferring contents
    PROGRESS REPORT: progress percent:26 Transferring contents
    PROGRESS REPORT: progress percent:27 Transferring contents
    PROGRESS REPORT: progress percent:28 Transferring contents
    PROGRESS REPORT: progress percent:29 Transferring contents
    PROGRESS REPORT: progress percent:30 Transferring contents
    PROGRESS REPORT: progress percent:30 Transferring contents
    PROGRESS REPORT: progress percent:31 Transferring contents
    PROGRESS REPORT: progress percent:32 Transferring contents
    PROGRESS REPORT: progress percent:33 Transferring contents
    PROGRESS REPORT: progress percent:34 Transferring contents
    PROGRESS REPORT: progress percent:35 Transferring contents
    PROGRESS REPORT: progress percent:35 Transferring contents
    PROGRESS REPORT: progress percent:36 Transferring contents
    PROGRESS REPORT: progress percent:37 Transferring contents
    PROGRESS REPORT: progress percent:38 Transferring contents
    PROGRESS REPORT: progress percent:39 Transferring contents
    PROGRESS REPORT: progress percent:40 Transferring contents
    PROGRESS REPORT: progress percent:40 Transferring contents
    PROGRESS REPORT: progress percent:41 Transferring contents
    PROGRESS REPORT: progress percent:42 Transferring contents
    PROGRESS REPORT: progress percent:43 Transferring contents
    PROGRESS REPORT: progress percent:44 Transferring contents
    PROGRESS REPORT: progress percent:45 Transferring contents
    PROGRESS REPORT: progress percent:45 Transferring contents
    PROGRESS REPORT: progress percent:46 Transferring contents
    PROGRESS REPORT: progress percent:47 Transferring contents
    PROGRESS REPORT: progress percent:48 Transferring contents
    PROGRESS REPORT: progress percent:49 Transferring contents
    PROGRESS REPORT: progress percent:50 Transferring contents
    PROGRESS REPORT: progress percent:50 Transferring contents
    PROGRESS REPORT: progress percent:51 Transferring contents
    PROGRESS REPORT: progress percent:52 Transferring contents
    PROGRESS REPORT: progress percent:53 Transferring contents
    PROGRESS REPORT: progress percent:54 Transferring contents
    PROGRESS REPORT: progress percent:55 Transferring contents
    PROGRESS REPORT: progress percent:55 Transferring contents
    PROGRESS REPORT: progress percent:56 Transferring contents
    PROGRESS REPORT: progress percent:57 Transferring contents
    PROGRESS REPORT: progress percent:58 Transferring contents
    PROGRESS REPORT: progress percent:59 Transferring contents
    PROGRESS REPORT: progress percent:60 Transferring contents
    PROGRESS REPORT: progress percent:60 Transferring contents
    PROGRESS REPORT: progress percent:61 Transferring contents
    PROGRESS REPORT: progress percent:62 Transferring contents
    PROGRESS REPORT: progress percent:63 Transferring contents
    PROGRESS REPORT: progress percent:64 Transferring contents
    PROGRESS REPORT: progress percent:65 Transferring contents
    PROGRESS REPORT: progress percent:66 Transferring contents
    PROGRESS REPORT: progress percent:66 Transferring contents
    PROGRESS REPORT: progress percent:67 Transferring contents
    PROGRESS REPORT: progress percent:68 Transferring contents
    PROGRESS REPORT: progress percent:69 Transferring contents
    PROGRESS REPORT: progress percent:70 Transferring contents
    PROGRESS REPORT: progress percent:71 Transferring contents
    PROGRESS REPORT: progress percent:71 Transferring contents
    PROGRESS REPORT: progress percent:72 Transferring contents
    PROGRESS REPORT: progress percent:73 Transferring contents
    PROGRESS REPORT: progress percent:74 Transferring contents
    PROGRESS REPORT: progress percent:75 Transferring contents
    PROGRESS REPORT: progress percent:76 Transferring contents
    PROGRESS REPORT: progress percent:76 Transferring contents
    PROGRESS REPORT: progress percent:77 Transferring contents
    PROGRESS REPORT: progress percent:78 Transferring contents
    PROGRESS REPORT: progress percent:79 Transferring contents
    PROGRESS REPORT: progress percent:80 Transferring contents
    PROGRESS REPORT: progress percent:81 Transferring contents
    PROGRESS REPORT: progress percent:81 Transferring contents
    PROGRESS REPORT: progress percent:82 Transferring contents
    PROGRESS REPORT: progress percent:83 Transferring contents
    PROGRESS REPORT: progress percent:84 Transferring contents
    PROGRESS REPORT: progress percent:85 Transferring contents
    PROGRESS REPORT: progress percent:86 Transferring contents
    PROGRESS REPORT: progress percent:86 Transferring contents
    PROGRESS REPORT: progress percent:87 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    2012-03-31 19:11:57,136 InstallationLogger.transfer-root INFO Transferring files to /a
    2012-03-31 19:12:18,346 InstallationLogger.transfer-misc INFO === Executing transfer-misc Checkpoint ===
    PROGRESS REPORT: progress percent:88 Beginning CPIO transfer
    2012-03-31 19:12:19,838 InstallationLogger.transfer-misc INFO Transferring files to /a
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:88 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:89 Transferring contents
    PROGRESS REPORT: progress percent:98 transfer-misc completed.
    2012-03-31 19:14:26,988 InstallationLogger.transfer-media INFO === Executing transfer-media Checkpoint ===
    PROGRESS REPORT: progress percent:99 Beginning CPIO transfer
    2012-03-31 19:14:28,071 InstallationLogger.transfer-media INFO Transferring files to /a
    PROGRESS REPORT: progress percent:99 Transferring contents
    PROGRESS REPORT: progress percent:99 Transferring contents
    PROGRESS REPORT: progress percent:99 Transferring contents
    PROGRESS REPORT: progress percent:99 Transferring contents
    2012-03-31 19:14:49,174 InstallationLogger ERROR Error occurred during execution of 'generate-sc-profile' checkpoint.
    Traceback (most recent call last):
    File "/usr/lib/python2.6/vendor-packages/solaris_install/engine/__init__.py", line 811, in executecheckpoints
    checkpoint.execute(dry_run)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/manifest/writer.py", line 276, in execute
    self.write(doc)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/manifest/writer.py", line 173, in write
    xml = doc.generate_xml_manifest()
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/cache.py", line 380, in generate_xml_manifest
    return self.get_xml_tree()
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 572, in get_xml_tree
    return self.__create_xml_tree(None)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 553, in __create_xml_tree
    sub = child.__create_xml_tree(attach_to)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 553, in __create_xml_tree
    sub = child.__create_xml_tree(attach_to)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 532, in __create_xml_tree
    element = self.to_xml()
    File "/usr/lib/python2.6/vendor-packages/solaris_install/sysconfig/profile/__init__.py", line 148, in to_xml
    element.extend(self.users.to_xml())
    File "/usr/lib/python2.6/vendor-packages/solaris_install/sysconfig/profile/user_info.py", line 58, in to_xml
    return [smf_svc_config.get_xml_tree()]
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 572, in get_xml_tree
    return self.__create_xml_tree(None)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 553, in __create_xml_tree
    sub = child.__create_xml_tree(attach_to)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 553, in __create_xml_tree
    sub = child.__create_xml_tree(attach_to)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 553, in __create_xml_tree
    sub = child.__create_xml_tree(attach_to)
    File "/usr/lib/python2.6/vendor-packages/solaris_install/data_object/__init__.py", line 532, in __create_xml_tree
    element = self.to_xml()
    File "/usr/lib/python2.6/vendor-packages/solaris_install/sysconfig/profile/__init__.py", line 359, in to_xml
    element = etree.Element(self.tagname, **elem_kwargs)
    File "lxml.etree.pyx", line 2253, in lxml.etree.Element (src/lxml/lxml.etree.c:22649)
    File "apihelpers.pxi", line 143, in lxml.etree._makeElement (src/lxml/lxml.etree.c:29384)
    File "apihelpers.pxi", line 131, in lxml.etree._makeElement (src/lxml/lxml.etree.c:29278)
    File "apihelpers.pxi", line 247, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:30384)
    File "apihelpers.pxi", line 1136, in lxml.etree._utf8 (src/lxml/lxml.etree.c:37215)
    ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
    2012-03-31 19:14:50,300 InstallationLogger ERROR ERROR: Execution FAILED
    2012-03-31 19:14:50,300 InstallationLogger ERROR Checkpoint [generate-sc-profile] logged error: [All strings must be XML compatible: Unicode or ASCII, no NULL bytes]
    2012-03-31 19:14:50,584 InstallationLogger INFO Next screen is screen [6] [Failure Screen]

    Hi Jarosław,
    This is a bug - thanks for pointing it out to us.
    It should accept the Real Name value "Jarosław" or at least
    stop you from proceeding if it cannot be used.
    I will investigate further and hopefully get this fixed.
    - Dermot

  • Conditionally formatting a graph in ADF

    Hi,
    We've developped an ADF application in which tasks are assigned to users. Each task has a due date and depending on the proximity of this due date the color of the task changes from green over orange to red. Now, what we are trying to do is showing the number of tasks in a chart (preferrably a pie chart) grouped by color. And of course, the colors of the slices/bars need to match the color of the task (so the number of green tasks will be a green slice, ...).
    We've tried to add the following seriesSet to the graph
    <dvt:seriesSet>
    <dvt:series color="#63a500" index="1"/> <!-- green -->
    <dvt:series color="#ff8400" index="2"/> <!-- orange -->
    <dvt:series color="#e70000" index="3"/> <!-- red -->
    </dvt:seriesSet>
    and this works fine untill not all colors are present. For example, if there would be no orange tasks, the red tasks become the second series and will be shown in orange.
    A possible solution would be to use the styleRuleBundle attribute of the <dvt:graph> tag but it seems like we can only add rules that compare to the values (= number of tasks) and not to the group/slice name (= color of the task).
    // Set color to YELLOW if value < 5
    rule = new DiscriminatorRule();
    rule.setDiscriminator(new NumberValueDiscriminator(5.0, ValueDiscriminator.LT));
    gs = new GraphStyle();
    gs.setFillColor(Color.yellow);
    rule.setFixedMergeable(gs);
    bundle.addRule(rule);
    Any ideas of how we can add rules that compare the group/slice name with a specified string ? We have tried the following but it doesn't seem to work:
    // Set color to GREEN if value is 'G'
    rule = new DiscriminatorRule();
    rule.setDiscriminator(new StringValueDiscriminator("G", StringValueDiscriminator.EQ));
    gs = new GraphStyle();
    gs.setFillColor(Color.GREEN);
    rule.setFixedMergeable(gs);
    bundle.addRule(rule);
    Thanks in advance for any help!

    ok, we've managed to determine the color of the bars in a bar chart using a QDRDiscriminator like this:
    rule = new DiscriminatorRule();
    colorQDR = new QDR("DataLayer");
    colorQDR.addDimMemberPair("Processcolor", new QDRMember(QDRMember.FIXED, "G"));
    rule.setDiscriminator(new QDRDiscriminator(colorQDR, QDRDiscriminator.SUPERSET));
    gs = new GraphStyle();
    gs.setFillColor(new Color(99, 165, 0));
    rule.setFixedMergeable(gs);
    bundle.addRule(rule);
    Too bad you loose all fancy gradients when using this technique. Doesn't work on a pie chart either :-( , although it does work on the legend of the pie chart :-S
    Other ideas or improvements are still welcome.

  • XSL recursion losing value problem.

    I've created an XSL stylesheet that i'm using to create a pie chart in svg. Each slice of the pie is done in a recursive call to the draw function. The slice number is passed to each recursive call with the value of counter + 1.
    This seems to be pretty straight forward and working fine until I hit a for-each loop in the template. For some reason the for-each is setting the counter back to 1.
    for example:
    counter is now 2
    <xsl:for-each select=...>
    counter is now 1 for some reason
    <xsl:call-template with param counter + 1
    </xsl:for-each>
    So the result is whenever the for-each is enter, counter has a value of 1.
    attached is the actual stylesheet and a sample xml. I'm using oraxsl to do the transform.
    <xsl:stylesheet version="1.0" type="text/xsl"
    xmlns:xsl ="http://www.w3.org/1999/XSL/Transform"
    xmlns:Mayura ="http://www.mayura.com/"
    exclude-result-prefixes="Mayura">
    <xsl:include href="CoolColors.xsl"/>
    <xsl:include href="math.xsl"/>
    <xsl:output standalone="yes" doctype-system="svg-19990812.dtd"
    media-type="image/svg" indent="yes"/>
    <xsl:template match="/">
    <xsl:apply-templates select="/graph"/>
    </xsl:template>
    <xsl:template name="drawPie" match="graph">
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <g id="pie chart" transform="translate({$x_origin}, {$y_origin})">
    <xsl:variable name="count1" select="sum(values/value/@amount)"/>
    count1 = <xsl:value-of select="$count1"/>
    num_values = <xsl:value-of select="count(values/value)"/>
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="x_origin" select="0"/>
    <xsl:with-param name="y_origin" select="0"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    <xsl:with-param name="counter" select="1"/>
    </xsl:call-template>
    </g>
    </xsl:template>
    <xsl:template name="drawSlice">
    <xsl:param name="counter" select="1"/>
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <xsl:param name="rotateMe" select="0"/>
    DRAWSLICE1: <xsl:value-of select="$counter"/>
    <xsl:for-each select="values/value">
    DRAWSLICE2: <xsl:value-of select="$counter"/>
    <xsl:if test="position()=$counter">
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="counter" select="$counter + 1"/>
    <xsl:with-param name="x_origin" select="$x_origin"/>
    <xsl:with-param name="y_origin" select="$y_origin"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    some xml for it is:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <graph width="600" height="400" type="PIE">
    <legend font_size="14"/>
    <title font_size="30" font_color="red" fill_color="red">Monthly PIRs</title>
    <title2 font_size="20" font_color="red" fill_color="red">2001</title2>
    <values>
    <value name="JANUARY" amount="25">
    <graph width="600" height="400" type="PIE">
    <title> JANUARY</title>
    <values>
    <value name="ENGINEERING" amount="3"/>
    <value name="NEW BUSINESS/PROGRAMS" amount="2"/>
    <value name="OPERATIONS" amount="16"/>
    <value name="QUALITY" amount="3"/>
    <value name="SAFETY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="FEBRUARY" amount="14">
    <graph width="600" height="400" type="PIE">
    <title> FEBRUARY</title>
    <values>
    <value name="ENGINEERING" amoun t="4"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="7"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="MARCH" amount="5">
    <graph width="600" height="400" type="PIE">
    <title>MARCH</title>
    <values>
    <value name="ENGINEERING" amount="1"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="1"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    </values>
    </graph>
    I've deleted alot of stuff out of it. The important lines are the DRAWSLICE.
    The expected output would have each value of DRAWSLICE1 = DRAWSLICE2, however if you run it you'll see that DRAWSLICE2 is always = 1.
    Any help appreciated,
    Jeff

    The problem is related to the fact that a call-template does not change the current node or the current node list, while a for-each does.
    When you recursively invoke call-template from within a for-each, you've changed the current node to I believe your <xsl:for-each select="values/value"> won't be finding what it thinks it will be finding.
    I hope this working stylesheet gets you going in the right direction. Given your "jeff.xml" file, it produces the output:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <root>
    <graph>
    <slice name="JANUARY" amt="25" rel-id="1" abs-id="1">
    <slice name="ENGINEERING" amt="3" rel-id="1" abs-id="2"/>
    <slice name="NEW BUSINESS/PROGRAMS" amt="2" rel-id="2" abs-id="3"/>
    <slice name="OPERATIONS" amt="16" rel-id="3" abs-id="4"/>
    <slice name="QUALITY" amt="3" rel-id="4" abs-id="5"/>
    <slice name="SAFETY" amt="1" rel-id="5" abs-id="6"/>
    </slice>
    <slice name="FEBRUARY" amt="14" rel-id="2" abs-id="7">
    <slice name="ENGINEERING" amt="4" rel-id="1" abs-id="8"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="9"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="10"/>
    <slice name="OPERATIONS" amt="7" rel-id="4" abs-id="11"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="12"/>
    </slice>
    <slice name="MARCH" amt="5" rel-id="3" abs-id="13">
    <slice name="ENGINEERING" amt="1" rel-id="1" abs-id="14"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="15"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="16"/>
    <slice name="OPERATIONS" amt="1" rel-id="4" abs-id="17"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="18"/>
    </slice>
    </graph>
    </root>The stylesheet looks like:
    <xsl:stylesheet version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes"/>
    <xsl:template match="/">
    <root>
    <xsl:apply-templates select="/graph"/>
    </root>
    </xsl:template>
    <xsl:template match="graph">
    <graph>
    <xsl:apply-templates select="values/value" mode="drawSlice"/>
    </graph>
    </xsl:template>
    <xsl:template match="value" mode="drawSlice">
    <slice name="{@name}" amt="{@amount}"
    rel-id="{position()}" abs-id="{count(preceding::value)+count(ancestor::value)+1}">
    <xsl:apply-templates select="graph/values/value" mode="drawSlice"/>
    </slice>
    </xsl:template>
    </xsl:stylesheet>I wasn't sure if you were trying to get the slice numbers to be relatively numbered to their siblings or absolutely numbered in document order, so I show both here.

Maybe you are looking for

  • How do I load an external swf at a frame after ClickToGoToAndStopAtFrame?

    Hi, I'm quite new in working with AS3. I am designing a site with a menupage with buttons. Some of these buttons are linked to a frame that contains an external swf, which is a portfolio. By pressing the buttons 'AQUAREL" and "OLIEVERF" you will go t

  • How can I set my preferences to allow to open photos that were sent to me

    How can I set my preferences to allow to open photos that were sent to me?

  • Pacman segfault.

    dpc@empire:~$ sudo pacman -S gajim Targets: gtkspell-2.0.11-1 dnsutils-9.3.3-1 docbook-xml-4.1.2-2 libglade-2.6.0-1 python-numeric-24.2-1 pycairo-1.2.2-1 pygobject-2.12.2-1 pygtk-2.10.3-1 sqlite3-3.3.8-1 python-pysqlite-2.3.2-1 gajim-0.10.1-2 Total P

  • Oracle Sales Analyser

    Hi All, I have installed Oracle Express server & OSA Server in my Sun solaris server machine,where my oracle 8.0 database is running and Oracle Express client & OSA client in another machine(Working in Windows 95 platform). I have done all basic sett

  • Nokia podcasting: Automatic Download doesn't autom...

    Just confirming this, but I've found that on every phone that has the current version of Nokia Podcasting, the app does not disconnect after an Automatic Download, rendering that feature utterly pointless. Previously Podcasting could be left running,