A Map As a JavaBean Property

I know how to create a JavaBean - zero argument constructor, private field variables, and public get and set methods to expose the properties.
Now, I have created a Map object:
Map map = new HashMap();
map.put("sort", sort);
map.put("order", order);
map.put("offset", offset); How do I store this object as a property of a JavaBean?
How do I later on retrieve what are in the 'map' from the JavaBean created?

just as easy as this :
class MyBean {
   private Map myMap;
   public void setMyMap( Map map ) {
      myMap = map;
   public Map getMyMap() {
      return myMap;
   // You can add more stuff if u want :
   public void addToMyMap( Object item ) {
      myMap.put( item );
   // and so on ...
}--Behrad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • DisplayAuthor managed property does not map to any crawl property, why?

    I just discovered the out of box  - DisplayAuthor managed property does not map to any crawl property, why is that? but it is still working fine when using this property as a refiner.....how does this work?

    Hi,
    The DisplayAuthor managed property is different. It is  multi-valued  but has no crawled properties mapped to it. However, it represents multiple authors for a document. There is the author that is stored with the properties of a document such
    as a pdf this is the original creator of the document, and then there is the SharePoint author of the document which is the the person who uploaded the document. So basically you can search on both using the DisplayAuthor.
    Besides, here is a similar post, you can use as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/bdf5d8dc-0511-492c-8f51-9cd541cf70bd/what-does-the-displayauthor-value-in-the-search-refinement-json-object-represent?forum=sharepointsearch
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Issue in mapping custom user profile property with AD field in SharePoint 2013

    Hello,
    I am trying to map a custom user profile property i created "ADSecurityGroups", type - String, Multivalue with the AD propoerty named "memberOf" via powershell.
    UserProfile Service is up and running, and so is the Synchronization Service. User executing the powershell has full control on the User Profile Service and is the farm administrator.
    Following is the code snippet i grabbed from the internet which i am trying to execute.
    Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction "SilentlyContinue" 
    $url = "http://<servername:port>/" #URL of any site collection that is associated to the user profile service application. 
    $spsProperty = "ADSecurityGroups" #Internal name of the SharePoint user profile property 
    $fimProperty = "memberOf" #Name of the attribute in FIM/LDAP source 
    $connectionName = "UserProfileSyncConnection" #Name of the SharePoint synchronization connection
    $site = Get-SPSite $url
    if ($site) 
        Write-Host "Successfully obtained site reference!"
    else 
        Write-Host "Failed to obtain site reference"
    $serviceContext = Get-SPServiceContext($site)
    if ($serviceContext) 
        Write-Host "Successfully obtained service context!"
    else 
        Write-Host "Failed to obtain service context"
    $upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($serviceContext)
    if ($upManager) 
        Write-Host "Successfully obtained user profile manager!"
    else 
        Write-Host "Failed to obtain user profile manager"
    $synchConnection = $upManager.ConnectionManager[$connectionName]
    if ($synchConnection) 
        Write-Host "Successfully obtained synchronization connection!"
    else 
        Write-Host "Failed to obtain user synchronization connection!"
    Write-Host "Adding the attribute mapping..." 
    $synchConnection.PropertyMapping.AddNewMapping([Microsoft.Office.Server.UserProfiles.ProfileType]::User, $spsProperty, $fimProperty) 
    Write-Host "Done!"
    The script is failing with the following error - 
    new-object : Exception calling ".ctor" with "1" argument(s): "UserProfileApplicationNotAvailableException_Logging :: 
    UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 2f9bece3-f39a-498d-874f-145b1470e49c"
    At E:\ADSync.ps1:29 char:14
    + $upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigMa ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
    Please let me know if i am missing anything.
    Also advise if this is the correct way to map user profile attribute in SP 2013 ?
    Thanks -
    Girish

    ok no worry,
    try to run the below as it is, i m just copying code from your post.
    Add-PSSnapin Microsoft.Sharepoint.Powershell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
    #Function to get servicecontextfunction Get-SPServiceContext([Microsoft.SharePoint.Administration.SPServiceApplication]
    $profileApp)
    $profileApp = @(Get-SPServiceApplication | ?
    {$_.TypeName -eq "MR_DEV_UserProfileServiceApplication"})[0]
    return [Microsoft.SharePoint.SPServiceContext]::GetContext
    ($profileApp.ServiceApplicationProxyGroup,
    [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default)
    $url = "http://sp-appdev:2013" #URL of any site collection that is associated to the user profile service application.
    $spsProperty = "RoomNumber" #Internal name of the SharePoint user profile property
    $fimProperty = "extensionAttribute2" #Name of the attribute in FIM/LDAP source
    $connectionName = "LDAP Sync" #Name of the SharePoint synchronization connection
    #Get UserProfileManager
    $serviceContext = Get-SPServiceContext
    if ($serviceContext)
    {Write-Host "Successfully obtained service context!"}
    else
    {Write-Host "Failed to obtain service context"}
    $upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($serviceContext)
    if ($upManager)
    {Write-Host "Successfully obtained user profile manager!"}
    else
    {Write-Host "Failed to obtain user profile manager"}
    $synchConnection = $upManager.ConnectionManager[$connectionName]
    if ($synchConnection)
    {Write-Host "Successfully obtained synchronization connection!"}
    else
    {Write-Host "Failed to obtain user synchronization connection!"}
    Write-Host "Adding the attribute mapping..."
    $synchConnection.PropertyMapping.AddNewMapping([Microsoft.Office.Server.UserProfiles.ProfileType]::User, $spsProperty, $fimProperty)
    Write-Host "Done!"
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Secure Map Rendering on Javabean based API

    Hi,
    I need to apply secure mapping functionality using Mapviewer’s JavaBean based API. I’ve created a secure data source by adding the plsql_package="web_user_info" statement on the data source definition. For testing purposes I’ve used mvdemo data set and followed the steps of Secure Map Rendering Demo. I created "web_user_info" package on mvdemo schema as well as a view on CUSTOMERS table (create or replace view customers_view as select * from customers where account_mgr = web_user_info.get_user) and a geometry theme: mycystomers on that view.
    I also added the appropriate authenticated web users to the OC4J container(e.g. alex) and assigned them the "users" role.
    Finally I included the relative path of JSP Demo (with mapclient lib) that resides at http://server:port/mapviewer/demo/mapinit.jsp to the <security-constraint> element of web.xml file so that the data source can get the web user name from J2EE user:
    <!-- For Secure Map Rendering demos only -->
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secure mapping demo page</web-resource-name>
    <description>MapViewer secure map rendering demo</description>     
         <url-pattern>/demo/secure-mapping.html</url-pattern>
         <url-pattern>/demo/mapinit.jsp</url-pattern>
         <url-pattern>/demo/map.jsp</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>secure_maps_role</role-name>
    </auth-constraint>
    </security-constraint>
    After authenticating to the http://server:port/mapviewer/demo/mapinit.jsp JSP demo through mapviewer's login page that was automatically generated because of the security-constraint, I filled in the required fields asking for base map: demo_map. I also modified "demo_map" by adding "mycustomers" theme to it. Unlike Oracle Maps Map Rendering Demo (http://server:port/mapviewer/demo/secure-mapping.html) that displays only those customers that belong to the authenticated user, the generated map does not display any customer data at all.
    Does Secure Map Rendering Demo apply just for the Oracle Maps Javascript API and the XML API or is there any other parameter that I’m missing and needs to be configured in order for it to run for the JavaBean based API as well?
    Any help on the above matter would be really appreciated.
    Thanks in advance.

    Hi,
    The reason the JSP files did not show the secured customers, is because while you authenticated to the J2EE server when accessing these JSP files, the JSP file themselves did not authenticate to the J2EE server. In other words, there are two sessions involved. One session is between your browser and the J2EE server, which contains the authenticated user ID. This session is initiated when you try to open the mapinit.jsp page.
    The other session is established when the JSP page (map.jsp) opens a new HTTP Connection to the server to send the XML map request generated from various JavaBean API calls. To be more specific, when the JSP page invokes MapViewer.run(), this method internally gathers all the themes/basemaps you have added to the client handle, then constructs a single XML map request out of these pieces of information. It then opens a HTTP connection back to the same server to send the XML doc to mapviewer for processing. The problem is that to the J2EE server this is a new session (initiated by map.jsp), and it does not contain any authentication info.
    Because currently the JavaBean API does not support setting a cookie or user credential directly on its internal Http connections, there seems to be no easy work around for this issue for now. Please contact us offline if you would like to open an enhancement request.
    Thanks
    LJ

  • Mapping an object's property to a field computed from 2 database fields

    Hi,
    Is there a way to do a WorkBench mapping of a business object's property to a field computed from 2 separate database fields?
    If not in WB, how would you do that?
    Thanks,
    Michal

    You could define this mapping through a TransformationMapping using you own code in the mappings transformer to divide the values. However you are probably much better off to just map the two values directly, and add a method in your object model to get the rate buy dividing the values.
    If terms of being able to order-by the calculated value in the a TopLink query, mapping the calculated value using a transformation mapping would not help this.
    To do this order by you can use,
    query.addOrdering(ExpressionMath.multiply(ExpressionMath.divide(builder.get("numberOfSuccess"), builder.get("numberOfAttempts")), 100);

  • How to set javabean property in JSTL

    <jsp:useBean id="item" class="mypackage.JavaBean" scope="page"/>
    <c:set target="item" property="item_id" value="1" />
    I tried the above code but it gives the following error.
    Error 500: Invalid property in <set>: "item_id"

    Assume you have mypackage.MyBean class:
    public class MyBean {
         private int itemId;
         public MyBean() {
         public void setItemId(int itemId) {
              this.itemId = itemId;
         public int getItemId() {
             return this.itemId;
    }In this case your JSP code can be:
    <jsp:useBean id="item" class="mypackage.MyBean" scope="page">
        <jsp:setProperty property="itemId" value="5"/>
    </jsp:useBean>or just:
       <jsp:setProperty name="item" property="itemId" value="5"/>

  • How To Create A Map?

    I have three properties: sort, order, and offset
    sort=<%=sort%>
    order=<%=order%>
    offset=<%=nextOffset%>How do I create a Map?

    I want to put sort, order, and offset in a Map
    and then store that Map as a JavaBean property. First
    of all, how do I put sort, order, and offset in a Map
    after I get a map object:
    Map map = new HashMap();
    Well, in "regular" java it would be something like map.put("sort", sort);
    map.put("order", order);
    map.put("offset", offset); (assuming you've properly defined and intialized those three variables)
    I don't recall how to do it in JSP. It's been quite a while. <jsp:usebean> maybe?
    http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html
    http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
    http://java.sun.com/products/jsp/docs.html

  • Complex JavaBean Mapping in iBatis [Please help!]

    hi,
    i m new to IBatis, i got some mapping problems, and there are not too many tutorials out there, please help me, thanks.
    For example, i have 2 beans:
    // This is the Company bean public class Company {   private long pkId;   private String name;   private List employees;   ...... } // The Employee bean public class Employee {   private long pkId;   private String firstname;   private Company parentCompany; }
    In the Employee class, 'parentCompany' is of type 'Company', but in the Database, the corresponding column 'parent_company' stores a 'long' value, which is the company's pkId.
    In the mapping file, i am ok with 'Select' to either get 'Company' from an 'Employee', or get a list of employees from a 'Company'
    But there are problems when i m trying to save/update the 'Employee' object, i don't know how to write the Mapping for this, there's always a TypeHandler exception. Here's my mapping file for the employee:
    <update id="update_employee_by_pkid" parameterClass="java.util.HashMap"> UPDATE ido_user SET <isPropertyAvailable property="firstname"> firstname = #firstname# </isPropertyAvailable> <isPropertyAvailable property="lastname"> lastname = #lastname# </isPropertyAvailable> <isPropertyAvailable property="email"> email = #email# </isPropertyAvailable> <isPropertyAvailable property="role"> role = #role# </isPropertyAvailable> <isPropertyAvailable property="parent_company"> parent_company=#parent_company# </isPropertyAvailable> WHERE pk_user_id = #pkid# </update>
    when i call this query, i pass in a Map, in the map, there might be one or more entries, e.g.
        map.put("pkid", 20);     map.put("firstname", "John");     map.put("lastname", "Smith");     map.put("parent_company", parentCompany);  // in here, the 'parentCompany is an instance of Object Company, which is retrieved from the DB
    As the map contains a 'parentCompany', but the DB actually needs a long, so in the DAO class, i grab the id of the 'parentCompany', put it into the map, and replace the parentCompany like this:
        map.put("parent_company", new Long(parentCompany.getPkId()));
    But this gives me a NullPointerException, it happens at the point that i call: sqlMap.update("update_employee", map);
    Another question is about mapping design between JavaBean, like those 2 classes i gave above, do you think the design is good? By doing so, i can get the company from a given Employee, on the other hand, i can get a list of Employees of a given company. How would you do for such requirements?
    Anyone has idea about it?
    Thanks for your help!
    Best regards

    I'll give this one more shot to see if anyone can help me.
    I'm also willing to pay for this. I would do all the Flash design
    work, provide the database, and all the graphics. I just need the
    coding done. I'll write out in English what I need it to do, and
    hopefully someone might be willing to translate into actionscript.
    1. A user selects what category of connector they want to add
    by clicking a button.
    2. When the button is clicked, a list of connector names
    appears. This list is populated from an Access database using ASP.
    3. A user selects a connector by clicking on it's name. The
    draggable movie clip associated with that connector appears and is
    ready to drag.
    4. If the user drops it in the wall plate "drop zone," the
    connector stays there, and the price of the connector (also
    specified in the database) is added to the cost form.
    5. If the user drops it outside the "drop zone," it snaps
    back into original position.
    6. Once dropped in the "drop zone," the user can click and
    drag the connector around any way they want within the drop zone
    without the price being added again. If the user drags the
    connector outside the drop zone to a "trash can," the connector
    disappears and the price is reduced from the total.
    7. Once the user is finished building their plate, they can
    click a "finished" button and be taken to a form to submit their
    email address and comments. The details of the wall plate order,
    the cost, and the user submitted form are then emailed to our sales
    team.
    That's the project in a nutshell. I have drag functionality
    working, and the price adding up, but I don't know how to tie in
    the database. Once again, I'm willing to pay someone who might be
    able to do the coding on this. If you're interested, please send me
    an email at [email protected] and I can provide the most current
    FLA and additional details. Thanks!

  • AD Property Mapping - Missing AD attributes

    Hi there
    I have been trying to find a way to expose a particular attribute in AD in my synchronisation connection in SharePoint 2013.
    The AD value is OtherTelephone, but this is not appearing in the list of attributes associated to my data source connection.
    I have tried to create a new data source to re-synch with no luck. This is a default AD property that should appear and it is not a custom one.
    What needs to be done so that I can map a new SharePoint property to this AD field?
    Uzma

    Hi Uzma,
    In addition to Sudip,
    please hange Type to “string (Multi Value)” in Property Settings when you create New Property, then re-sync User Profile.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • "Property Mapping for Synchronization" User profile export to AD issue - Sharepoint 2013

    Trying to map user properties to AD Mapped Attributes.
    I map the property "SPS-JobTitle" to AD Attribute "title" with direction "export" click add and then ok to save and everything is fine, I then Map "WorkPhone" with Ad Property "telephoneNumber" with direction
    "Export" and click add then ok  and now property mapping on both "SPS-JobTitle" and "WorkPhone" show two mappings.
    If i go into the propertied it will show two mappings under "Property Mapping for Synchronization" both the title and work phone mappings.
    If i remove it from one it removes from both
    flavio

    It´s a bug in Sharpoint 2013, confirmed by MS.
    I reported it in January but its still not fixed :(
    The bug can be reproduced just as you mention by enabling export on several AD properties, the property will get duplicated on the previous propery you enabled export on.
    This makes it impossible to use the AD export functionality in Sharepoint 2013 until the bug is fixed.
    karl

  • Bean property and public field found with the same name: getid

    Hi all,
    I have a ejb jar file contains some local entity beans and one session bean
    , the session bean has some functions suck as findXXXByQuery() , InsertXXX()
    , and I have created some model class for the entity bean , and use it as
    the parameter or return type of the session bean , then I want to transfer
    the session bean as a webservice , using ant automaticly . All this function
    successfully in weblogic 6.1 , but when I want to run ant command in
    weblogic 7.0 , an error occured :
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property
    and public field found with the same name: getid
    Yes , I have a getid field in table , a getid in entity bean , and a getid
    property in model class , but what different does it make ? Would you mind
    to test my jar file ? I send all files as attachments .
    Any advice will be appreciate .
    lcl
    [build.xml]
    [work.jar]

    In article <[email protected]>, lcl <[email protected]> wrote:
    -=-=-=-=-=-
    Hi all,
    I have a ejb jar file contains some local entity beans and one session bean
    , the session bean has some functions suck as findXXXByQuery() , InsertXXX()
    , and I have created some model class for the entity bean , and use it as
    the parameter or return type of the session bean , then I want to transfer
    the session bean as a webservice , using ant automaticly . All this function
    successfully in weblogic 6.1 , but when I want to run ant command in
    weblogic 7.0 , an error occured :
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property
    and public field found with the same name: getid
    Yes , I have a getid field in table , a getid in entity bean , and a getid
    property in model class , but what different does it make ? Would you mind
    to test my jar file ? I send all files as attachments .
    Any advice will be appreciate .
    lcl
    -=-=-=-=-=-For better or worse the JAX-RPC spec requires this behavior. From
    section 5.4.1:
    "There is no standard mapping for the case when a JavaBean property
    has the same name as a public field. A Java to XML mapping
    implementation is required to flag this case as an error."
    Since you are not the first person to run into this restriction I'm
    beginning to think we need an option to bypass it.
    --Scott

  • UIComponent.getAttributes() doesn't return a proper Map?

    I am finding that the 'Map' returned by UIComponent.getAttributes() doesn't obey the entire Map contract:
    - containsKey() always returns false
    - new HashMap<String, Object>(event.getComponent().getAttributes()) doesn't return a filled-in Map, which suggests that the iteration facilities of the underlying Map don't work either.
    Is this a known problem/limitation/feature?
    JSF 1.2 and JSF 2.0.

    ejp wrote:
    I don't really care about the iterators as that was just a non-working workaround for the other problem. The case I'm interested in is where the attribute is set via <f:attribute>. These don't show up via containsKey(). In certain places I have a test to ensure all the required f:attributes are being set in the page, to avoid NPEs later on, and these aren't showing up via containsKey() - but they do via get().Well as noted in the spec quote, if the attribute you are setting is a JavaBean property then containsKey() is supposed to return false. Otherwise, it sounds like a bug.

  • Property Set Deployment

    Hello All:
    I am looking for a way to deploy a property set file; joedoe.usr to Weblogic Portal 8.1. Has anyone successfully deployed a property set file (including the UUP ejb that uses it) to WebLogic outside of Workshop? If so, can you provide steps to do so?
    FYI, I created a property set file and added to my ear in the META-INF directory. When I deploy my ear to Weblogic, I can see my portal application and all the portal resources in the Portal Admin. However, I do not see my "custom" property set when editing a user. My constraint is that my application must not use Workshop to create and deploy.
    Thank you,
    Southin

    Hi Deepak:
    Thank you for replying to my message. Unfortunately, the example the BEA does not work for me. Yes my corporateProfile.usr is in the data/userprofiles folder where the CustomerProperties.usr resides. My custom ejb that extends extends com.bea.p13n.property.EntityPropertyManager is successfully deployed, however I cannot see the property set that I created in the Portal Admin console.
    Attached are my weblogic-ejb-jar.xm and ejb-jar.xml files that I edit after following the instructions for "Deploy a ProfileManager That Can Use the New EntityPropertyManager." Does anyone see something wrong?
    ------------------------ ejb-jar.xml -------------
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC
    '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
    'http://java.sun.com/dtd/ejb-jar_2_0.dtd' >
    <ejb-jar>
    <enterprise-beans>
    <!-- TrackedAnonymous EJB -->
    <entity>
    <ejb-name>TrackedAnonymous</ejb-name>
    <home>com.bea.p13n.usermgmt.profile.TrackedAnonymousHome</home>
    <remote>com.bea.p13n.usermgmt.profile.TrackedAnonymous</remote>
    <ejb-class>com.bea.p13n.usermgmt.profile.internal.TrackedAnonymousBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TrackedAnonymousBean</abstract-schema-name>
    <cmp-field>
    <field-name>anonymousUserId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>lastVisited</field-name>
    </cmp-field>
    <primkey-field>anonymousUserId</primkey-field>
    <ejb-local-ref>
    <description>Reference to TrackedPropertySet EJB</description>
    <ejb-ref-name>ejb/TrackedPropertySet</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>com.bea.p13n.property.TrackedPropertySetHome</local-home>
    <local>com.bea.p13n.property.TrackedPropertySet</local>
    <ejb-link>TrackedPropertySet</ejb-link>
    </ejb-local-ref>
    </entity>
    <!-- Tracked Property Set EJB -->
    <!-- Local interfaces for this one only, because it's referred to only by TrackedAnonymous.
    The relationships bewteen these two EJBs are defined in the 'relationships' attribute at
    the end of this file. -->
    <entity>
    <ejb-name>TrackedPropertySet</ejb-name>
    <local-home>com.bea.p13n.property.TrackedPropertySetHome</local-home>
    <local>com.bea.p13n.property.TrackedPropertySet</local>
    <ejb-class>com.bea.p13n.property.internal.TrackedPropertySetBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TrackedPropertySetBean</abstract-schema-name>
    <cmp-field>
    <field-name>anonymousPropertyId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>anonymousUserId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>propertySetName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>propertyName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>propertyValue</field-name>
    </cmp-field>
    <primkey-field>anonymousPropertyId</primkey-field>
    <!-- Find all property sets with the same anonymous user id. This gives us all property sets associated with a single
    TrackedAnonymous EJB -->
    <query>
    <query-method>
    <method-name>findByAnonymousUserId</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>SELECT OBJECT (a) FROM TrackedPropertySetBean a WHERE a.anonymousUserId = ?1 </ejb-ql>
    </query>
    </entity>
    <!-- PropertySetManager EJB -->
    <session>
    <ejb-name>PropertySetManager</ejb-name>
    <home>com.bea.p13n.property.PropertySetManagerHome</home>
    <remote>com.bea.p13n.property.PropertySetManager</remote>
    <ejb-class>com.bea.p13n.property.internal.PropertySetManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <env-entry-name>repository/CONTENT</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>com.bea.content.manager.propertysets.PropertySetRepositoryImpl</env-entry-value>
    </env-entry>
    <!-- following are mappings from file extension to property set type -->
    <env-entry>
    <env-entry-name>extension/clg</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>CATALOG</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>extension/evt</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>EVENT</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>extension/req</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>REQUEST</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>extension/ses</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>SESSION</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>extension/usr</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>USER</env-entry-value>
    </env-entry>
    <!-- the ejb/ContentManagers branch is for the
    com.bea.p13n.content.PropertyRepositoryImpl
    -->
    <ejb-ref>
    <ejb-ref-name>ejb/ContentManagers/Document</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.content.document.DocumentManagerHome</home>
    <remote>com.bea.p13n.content.document.DocumentManager</remote>
    <!-- FIXME. Eventually need to rework user manager stuff so we can do this. For now, the DocumentManager
    is in weblogic-ejb-jar.xml, where it is deployed only if it is referenced.
    <ejb-link>wps.jar#DocumentManager</ejb-link> -->
    </ejb-ref>
    </session>
    <!-- EntityPropertyManager EJB -->
    <session>
    <ejb-name>EntityPropertyManager</ejb-name>
    <home>com.bea.p13n.property.EntityPropertyManagerHome</home>
    <remote>com.bea.p13n.property.EntityPropertyManager</remote>
    <ejb-class>com.bea.p13n.property.internal.EntityPropertyManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/PropertySetManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.property.PropertySetManagerHome</home>
    <remote>com.bea.p13n.property.PropertySetManager</remote>
    <ejb-link>PropertySetManager</ejb-link>
    </ejb-ref>
    <resource-ref>
    <res-ref-name>jdbc/commercePool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </session>
    <!-- Ldap Property Manager
    To use this, uncomment it here as well as in weblogic-ejb-jar.xml.
    Configure the LDAP connection and settings using the env-entry values (see descriptions below).
    Do not forget to uncomment the ejb-link and method-permission tags for the LdapPropertyManager.
    An easy way to ensure you don't miss anything is to search for "ldap" (case-insensitive) here AND in
    weblogic-ejb-jar.xml. Search from the beginning to the end of the file.
    <session>
    <ejb-name>LdapPropertyManager</ejb-name>
    <home>com.bea.p13n.usermgmt.profile.ldap.LdapPropertyManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ldap.LdapPropertyManager</remote>
    <ejb-class>com.bea.p13n.usermgmt.profile.ldap.internal.LdapPropertyManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <description>Use SSL to connect to ldap server</description>
    <env-entry-name>config/useSSL</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>false</env-entry-value>
    </env-entry>
    <env-entry>
    <description>LDAP Server URL</description>
    <env-entry-name>config/serverURL</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>ldap://server.company.com:389</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Principal name to use when connecting to the ldap server (optional).
    Anonymous bind will be used if not specified. This entry will be
    ignored if config/credentialMBeanName is set below. </description>
    <env-entry-name>config/principal</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot</env-entry-value>
    </env-entry>
    <env-entry>
    <description>The password of the principal specified above (required if principal set). This
    entry is ignored if config/credentialMBeanName is set below.</description>
    <env-entry-name>config/principalCredential</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>weblogic</env-entry-value>
    </env-entry>
    <env-entry>
    <description>The name of the Credential MBean in application-config.xml that will
    be used to store the principal's username and principal's password. The password
    will be stored in an encrypted form. This is the principal/credential used to bind to
    the LDAP server. The password will be decrypted before it is used to bind to the
    LDAP server.
    Using this entry will override anything set for the config/principal and
    config/principalCredential. If this entry and config/principal and
    config/principalCredential are not specified then anonymous bind will be used.
    (this entry is optional)</description>
    <env-entry-name>config/credentialMBeanName</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>LdapPropertyManager</env-entry-value>
    </env-entry>
    <env-entry>
    <description> The location(s) of users in the ldap directory.
    There can be one or more user DNs. The entries are named like this:
    config/userDN
    config/userDN-1
    config/userDN-2
    and they are searched in that order.
    If there is only one, then it must be config/userDN
    Typical values:
    ou=People,o=company.com
    ou=People,dc=mycompany,dc=com
    </description>
    <env-entry-name>config/userDN</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>ou=People,o=company.com</env-entry-value>
    </env-entry>
    <env-entry>
    <description> The location(s) of groups in the ldap directory
    There can be one or more group DNs. The entries are named like this:
    config/groupDN
    config/groupDN-1
    config/groupDN-2
    and they are searched in that order.
    If there is only one, then it must be config/groupDN
    Typical values:
    ou=Groups,o=company.com
    ou=Groups,dc=mycompany,dc=com
    </description>
    <env-entry-name>config/groupDN</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>ou=Groups,o=company.com</env-entry-value>
    </env-entry>
    <env-entry>
    <description>A boolean to enbable/disable SUBTREE_SCOPE searches for user/group properties
    below the userDN(s) and groupDN(s). For example, if this property is true, then you could specify
    the "config/userDN" env-entry as ou=People,dc=mycompany,dc=com and users that are in both
    ou=PeopleA,ou=People,dc=mycompany,dc=com and in ou=PeopleB,ou=People,dc=mycompany,dc=com
    could be used. A getProperty() call would return a value for the first user found in
    the specified "config/userDN" or in any branch below it. This boolean also affects
    searches for group properties. If multiple userDNs (or groupDNs) are specified then
    this SUBTREE_SCOPE will apply to searches starting in all of those specified DNs.
    </description>
    <env-entry-name>config/objectPropertySubtreeScope</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>false</env-entry-value>
    </env-entry>
    <env-entry>
    <description>The user attribute to map to a username
    If there is only one, then it is applied to all userDNs.
    If there is more than one, then they are applied, in order,
    to the userDNs. If there is more than one, then the number must
    match the number of userDNs.
    The entries are named like this:
    config/usernameAttribute
    config/usernameAttribute-1
    config/usernameAttribute-2
    and they are used in that order.
    If there is only one, then it must be config/usernameAttribute
    </description>
    <env-entry-name>config/usernameAttribute</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>uid</env-entry-value>
    </env-entry>
    <env-entry>
    <description> The group attribute to map to a group name
    If there is only one, then it is applied to all groupDNs.
    If there is more than one, then they are applied, in order,
    to the groupDNs. If there is more than one, then the number must
    match the number of groupDNs.
    The entries are named like this:
    config/groupnameAttribute
    config/groupnameAttribute-1
    config/groupnameAttribute-2
    and they are used in that order.
    If there is only one, then it must be config/groupnameAttribute
    </description>
    <env-entry-name>config/groupnameAttribute</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>cn</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Flag to specify if LDAP attributes will be determined to be
    single value or multi-value via the schema obtained from
    the attribute. If false, then the attribute is stored as
    multi-valued (a Collection) only if it has more than one value.
    Leave false unless you intend to use multi-valued LDAP attributes
    that may have only one value. Using true adds overhead to check the
    LDAP schema. Also, if you use true beware that most LDAP attributes
    are multi-value. For example, iPlanet Directory Server 5.x uses multi-value
    for givenName, which you may not expect unless you are familiar with LDAP
    schemas.
    This flag will apply to property searches for all userDNs and all groupDNs.
    </description>
    <env-entry-name>config/detectSingleValueFromSchema</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>false</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Value of the name of the attribute in the LDAP schema that is used to
    determine single value or multi-value (RFC2252 uses SINGLE-VALUE)
    This attribute in the schema should be true for single value and false or
    absent from the schema otherwise.
    The value only matters if config/detectSingleValueFromSchema is true.
    </description>
    <env-entry-name>config/singleValueSchemaAttribute</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>SINGLE-VALUE</env-entry-value>
    </env-entry>
    <env-entry>
    <description> Name for the cache used by the ldap property manager
    If you deploy multiple LdapPropertyManager beans, you must set
    the caches to different names to avoid collisions.
    Defaults to "ldapPropertyCache" if unset.
    </description>
    <env-entry-name>config/ldapPropertyCacheName</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>ldapPropertyCache</env-entry-value>
    </env-entry>
    </session>
    -->
    <!-- Property Set Web Service EJB -->
    <session>
    <ejb-name>PropertySetWebService</ejb-name>
    <home>com.bea.p13n.property.webservice.PropertySetWebServiceHome</home>
    <remote>com.bea.p13n.property.webservice.PropertySetWebService</remote>
    <ejb-class>com.bea.p13n.property.webservice.internal.PropertySetWebServiceImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/PropertySetManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.property.PropertySetManagerHome</home>
    <remote>com.bea.p13n.property.PropertySetManager</remote>
    <ejb-link>PropertySetManager</ejb-link>
    </ejb-ref>
    </session>
    <!-- RulesManager EJB -->
    <session>
    <ejb-name>RulesManager</ejb-name>
    <home>com.bea.p13n.rules.manager.RulesManagerHome</home>
    <remote>com.bea.p13n.rules.manager.RulesManager</remote>
    <ejb-class>com.bea.p13n.rules.manager.internal.RulesManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <description>
    This property will be used by RulesManagerImpl to create an instance of
    the RuleSetRepository.
    </description>
    <env-entry-name>RuleSetRepositoryClassName</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager</env-entry-value>
    </env-entry>
    </session>
    <!-- User Manager EJB -->
    <session>
    <ejb-name>UserManager</ejb-name>
    <home>com.bea.p13n.usermgmt.UserManagerHome</home>
    <remote>com.bea.p13n.usermgmt.UserManager</remote>
    <ejb-class>com.bea.p13n.usermgmt.internal.UserManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <!-- ReservedUserNames is used to list all names (case insensitive)
    that are restricted: the UserManager will not create users
    with these names. The list is comma-delimited.
    -->
    <!--
    <env-entry>
    <env-entry-name>ReservedUserNames</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>foo,foo2</env-entry-value>
    </env-entry>
    -->
    <!-- ProtectedUserNames is used to list all names (case insensitive)
    that cannot be deleted through the UserManager (or portal tools).
    The list is comma-delimited.
    -->
    <!--
    <env-entry>
    <env-entry-name>ProtectedUserNames</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>foo,foo2</env-entry-value>
    </env-entry>
    -->
    <!-- The UserManager used programatic security to allow
    users to modify their own data (where username == profileName)
    or anyone in one of these (administrative) roles.
    Used in the methods: setPassword and removeUser.
    Other methods can be protected using declarative security.
    Should at least include the WebLogic Admin role, if left empty
    or mapped to "empty" roles, then no one will be able to admin
    user profiles.
    Each role listed here should also have a security-role-ref entry below -->
    <env-entry>
    <env-entry-name>AuthorizedRoles</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Admin,PortalSystemAdministrator</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>disallowedUserCharacters</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>*,%</env-entry-value>
    </env-entry>
    <ejb-ref>
    <ejb-ref-name>ejb/UserProfileManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
    <ejb-link>UserProfileManager</ejb-link>
    </ejb-ref>
    <ejb-ref>
    <ejb-ref-name>ejb/ProfileType/WLCS_Customer</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.commerce.ebusiness.customer.CustomerProfileManagerHome</home>
    <remote>com.bea.commerce.ebusiness.customer.CustomerProfileManager</remote>
    <!-- FIXME. Can't do this without always deploying Customer. Eventually need
    to rework user manager stuff so we can do this. For now, the CustomerProfileManager
    is in weblogic-ejb-jar.xml, where it is deployed only if it is referenced.
    <ejb-link>commerce.jar#CustomerProfileManager</ejb-link> -->
    </ejb-ref>
    <!-- Security role refs for roles listed in AuthorizedRoles -->
    <security-role-ref>
    <description>Portal system administrators</description>
    <role-name>PortalSystemAdministrator</role-name>
    <role-link>PortalSystemAdministrator</role-link>
    </security-role-ref>
    <security-role-ref>
    <description>WLS System administrators</description>
    <role-name>Admin</role-name>
    <role-link>Admin</role-link>
    </security-role-ref>
    <resource-ref>
    <res-ref-name>jdbc/commercePool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </session>
    <!-- Group Manager EJB -->
    <session>
    <ejb-name>GroupManager</ejb-name>
    <home>com.bea.p13n.usermgmt.GroupManagerHome</home>
    <remote>com.bea.p13n.usermgmt.GroupManager</remote>
    <ejb-class>com.bea.p13n.usermgmt.internal.GroupManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <!-- ProtectedGroupNames is used to list all names (case insensitive)
    that cannot be deleted through the GroupManager (or portal tools).
    The list is comma-delimited.
    -->
    <env-entry>
    <env-entry-name>ProtectedGroupNames</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Operators,Monitors,Deployers</env-entry-value>
    </env-entry>
    <ejb-ref>
    <ejb-ref-name>ejb/GroupProfileManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
    <ejb-link>GroupProfileManager</ejb-link>
    </ejb-ref>
    </session>
    <!-- Realm Configuration EJB -->
    <session>
    <ejb-name>RealmConfiguration</ejb-name>
    <home>com.bea.p13n.usermgmt.config.RealmConfigurationHome</home>
    <remote>com.bea.p13n.usermgmt.config.RealmConfiguration</remote>
    <ejb-class>com.bea.p13n.usermgmt.config.internal.RealmConfigurationImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/GroupProfileManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
    <ejb-link>GroupProfileManager</ejb-link>
    </ejb-ref>
    <ejb-ref>
    <ejb-ref-name>ejb/UserProfileManager</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
    <ejb-link>UserProfileManager</ejb-link>
    </ejb-ref>
    </session>
    <!-- User Profile Manager-->
    <session>
    <ejb-name>UserProfileManager</ejb-name>
    <home>com.bea.p13n.usermgmt.profile.ProfileManagerHome</home>
    <remote>com.bea.p13n.usermgmt.profile.ProfileManager</remote>
    <ejb-class>com.bea.p13n.usermgmt.profile.internal.UserProfileManagerImpl</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <!-- map all properties in property set ldap to ldap server -->
    <env-entry>
    <env-entry-name>PropertyMapping/ldap</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>LdapPropertyManager</env-entry-value>
    </env-entry>
         <!-- map all properties in corporateProfile property set to CorporateProfileManager -->
              <env-entry>
    <env-entry-name>PropertyMapping/corporateProfile</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>CorporateProfileManager</env-entry-value>
    </env-entry>
    <!-- The UserProfileManager used programatic security to allow
    users to modify their own data (where username == profileName)
    or anyone in one of these (administrative) roles.
    Used in the methods: deleteProfile, removeProperty,
    removeSuccessor, setProperty, and setSuccessor.
    Other methods can be protected using declarative security.
    Should at least include the WebLogic Admin role, if left empty
    or mapped to "empty" roles, then noone will be able to admin
    user profiles.
    Each role listed here should also have a security-role-ref entry below -->

  • Xslt: mapping different elements onto instances of an unbounded element

    How can you map different elements onto sequential elements of an unbounded type? For example:
    <record>
    <tag1>abc</tag1>
    <tag2>def</tag2>
    <tag3>ghi</tag3>
    </record>
    onto
    <properties>
    <property name="tag1" seq="1">abc</property>
    <property name="tag2" seq="2">def</property>
    <property name="tag3" seq="3">ghi</property>
    </properties>
    The mapping onto the first property will always be from tag1, etc. However, in the schema for <properties>, <property> only appears once:
    <xsd:element name="property" type="NormalizedString" minOccurs="0" maxOccurs="unbounded">
    Can this be mapped using JDeveloper? Can it be mapped by hand?
    If so, how?
    Thanks!

    Hello user,
    I think you will have to do this manually. It's been way too long since I was doing any serious XSLT hacking, and I don't have your schemas, but this may give you a starting point for your transformation;
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/Transformation"
    exclude-result-prefixes="xsl ns0 ns1 xref xp20 bpws ora ehdr orcl ids hwf">
    <xsl:template match="/ns1:TransformationProcessRequest/ns1:record">
    <xsl:for-each select="*">
    <xsl:element name="ns1:property">
    <xsl:attribute name="name"><xsl:value-of select="name()"/></xsl:attribute>
    <xsl:attribute name="seq"><xsl:value-of select="position()"/></xsl:attribute>
    <xsl:value-of select="current()"/>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    <xsl:template match="/ns1:TransformationProcessRequest">
    <ns1:properties>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest/ns1:record"/>
    </ns1:properties>
    </xsl:template>
    <xsl:template match="/">
    <ns1:TransformationProcessResponse>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest"/>
    </ns1:TransformationProcessResponse>
    </xsl:template>
    </xsl:stylesheet>
    Regarding validation to XSD, I guess that's just a matter of specifying the right namespaces and elements...?
    Regards,
    Rune

  • How to use tile map with AS3?

    I have a file that contains a bunch of isometric tiles that I need to make a map with, much like a sprite sheet but not for making animations. So using AS3, how can I divide that file into the different tiles, knowing the coordinates of each of them. Or can it be done automatically in Flash itself, so I can access each tile from AS3?
    Furthermore I've been a programmer for a couple of decades but I am new to Flash. I know there are a ton of DisplayObjects like Bitmap, Sprite, Shape, MovieClip, Symbol etc. But which one would be better to use for that file? I need to access it from AS3 as described above, but I don't need it to react to mouse events, stretch or have children, just extract each tile and move it onto the stage with AS3.
    It seems to be down to a choice between Bitmap and Shape, since they're both lightweight, but I couldn't find out what the advantages and disadvantages of them are, as there was no comparison between those two on Google, though between a lot of the other objects. And Symbol seems like an idea too, since when I googled this, I found a lot of pages saying that you should convert a Bitmap to a Symbol, but I never found out why.
    Oh, and since I'm building an isometric map, all the tiles and all other graphics I'll be using, will be Bitmap and not Vector since I'm drawing the graphics in pixelart.

    create one tile symbol (movieclip or sprite so you can use actionscript to reference tile properties - like its x and y) and arrange them (using code or by hand) into your map.
    enable the cacheAsBitmap property of your map (that has some number of tile children).
    assign the mouseEnabled property of the map to false and its mouseChildren property to false.

Maybe you are looking for

  • How to recover deleted projects in adobe flash builder 4.5 for PHP

    Hi Problem:I accidently deleted project in adobe flash builder 4.5 for PHP and in confirming dialogue box,i checked delete contents one(see figure). I have wasted almost 6 hours and googled almost everything but couldn't find solution. I have also us

  • CS4 InDesign Server hangs

    I've ran into a problem where the my CS4 InDesign Server hangs.  I'm adding pages dynamically using the JAVA API.  Basically I go through all the content, check to see if I've reached the ParagraphStyle that indicates the "end" of the document.  If n

  • Konqueror segfault

    Anyone else get a konqueror segfault browsing http://tvnz.co.nz? I'm current with the repositories... Dale

  • JVM is not safe enough.

    JVM is reading its policy in ".java.policy" file in the directory under J2SDK or JRE. However, the file is a text file with no attributes, and can be changed without any notice. If some professional hackers want to attack your JVM, they only send a n

  • Problema con K920 Dual SIM, no reconoce la Sim1

    Hola a todos! Espero puedan ayudarme. Hace poco compré un celular Lenovo K920 (Vibe Z2 PRO)... todo funcionaba perfecto, hasta que: Se me cayó al agua! Lo mandé a un servicio técnico particular donde le hicieron un baño químico y el teléfono ahora fu