Using the ssIncludeXml function in Site Studio 10gR4

Since the managed data file format has changed dramatically in Site Studio 10gR4, how do I still use ssIncludeXml to extract a particular element?
For example, a data file in Site Studio 10gR3 looks similar to this:
<region1>
<PageBody>
</PageBody>
</region1>
To extract the "PageBody" element I would use the ssIncludeXml function like this:
ssIncludeXml(dDocName,"region1/PageBody/node()")
In Site Studio 10gR4 a typical data file format looks like this:
<wcm:root>
<wcm:element name="PageBody">
</wcm:element>
</wcm:root>
How do I use the ssIncludeXml function to match the "PageBody" here?
Thanks!

I'm trying to do this in Site Studio 11g and am having zero luck. I have an HCSP in Site Studio [which I am using to write XML] that is querying the system and returning a set of XML data files. In my HSCP, I have
<link><!--$$ssIncludeXml(dDocName, "wcm:root/wcm:element\[@name='url'\]/text()")--></link>
The XML documents' format is
<wcm:root version="8.0.0.0">
<wcm:element name="metadata"/>
<wcm:element name="url">http://www.cnn.com</wcm:element>
<wcm:element name="thumbnail"><img src="/cs/groups/internal/documents/digitalmedia/mdaw/mdex/~edisp/cf_12_831_ivolunteers_3_.jpg" alt="ivolunteers" /></wcm:element>
<wcm:element name="text">This is my link text</wcm:element></wcm:root>
When I run this, however, I get nothing returned (no errors either).
Frustration! :) Any ideas?

Similar Messages

  • Some questions related to site studio 10gR4

    Hi everyone
    We are developing a solution using UCM, and I have couple of questions regarding the usage of the site studio 10gR4.
    It will be really great if any one of you can either answer or point me to the rite document/webpage where I can get these answers.
    The requirement is, we are going to use the site studio to develop the page template, and place holder, region definitions, element definitions etc. And then the contributor will contributor will contribute content using the contributor mode. But, there is another website in which this page template will be embedded, a Java based website.
    So it will be like, we create this page template, and call it inside a web application using CIS.
    Now my questions are
    Q1. Is there any service or CIS API to call page template? I have seen the page holder service, but don't know if there is any for page template.
    Q2. If there is a service I can call Page template, will that page template be in HTML format including all the sub elements like place holder, region definition etc?
    Q3. Now suppose if I am able to get all the required content using either the place holder or page template service call. Now I am displaying it to the user as an embedded content inside my other Java based website. Can I still do the Cntrl+Shift+F5 and call it in the contributor mode? If I am not, is there any way to achieve it? Because my contributors want to contribute while seeing the whole website and not just the embedded page template.
    Q4. Can anyone tell me about all the services Site studio supports? or any document where I can find them?
    Thanks in advance
    Rupal chawla

    Thanks for the replies, but I have found the answers to all of the questions, i will put them here for others as well ...
    Q1. Is there any service or CIS API to call page template? I have seen the page holder service, but don't know if there is any for page template.
    Nope, there is no service to call Page template.
    Q2. If there is a service I can call Page template, will that page template be in HTML format including all the sub elements like place holder, region definition etc
    Since there is no service to call page template, this question remains invalid. However, the answer to the other part with reference to place holder will be, the place holder CIS call will return the HTML that can be embedded in the calling framework. This HTML will contain everything present inside the place holder like fragments, RD, RT etc.
    Q3. Now suppose if I am able to get all the required content using either the place holder or page template service call. Now I am displaying it to the user as an
    embedded content inside my other Java based website. Can I still do the Cntrl+Shift+F5 and call it in the contributor mode? If I am not, is there any way to achieve it? Because my contributors want to contribute while seeing the whole website and not just the embedded page template.
    Atually the Cntrl+Shift+F5  generates an event which calls the begin_edit_session service, since we can associate this event with anything, it hardly matters if we are using Cntrl+Shift+F5 or a button click or a link on the page, the sole purpose remains calling the  begin_edit_session service. In the contribution mode, we will only see the embedded part that is coming from the UCM and not if anything is present in in the embedding framework
    Q4. Can anyone tell me about all the services Site studio supports? or any document where I can find them?
    placeholder service, and begin edit session service, obviously there are many of them (you can see in <UCM>\CS\custom\SiteStudio\resources\ss_services.htm), but for CIS integration these are the useful one's.
    Edited by: Rupal Chawla on 29-Sep-2009 22:44

  • Certain LinkedIn functions are not working. Browser keeps on looping, for instance when using the search function

    I go to LinkedIn and type in a name in the search box, for instance "Peter" and hit enter.
    Normally, this will return with a list of people with the first name "Peter", listed according to degrees connectivity.
    Instead the web site never loads the next page. It appears that it keeps loading the page over and over again, but with no result.
    In the end I have to press back or use another browser (Safari) to load the page and use the search function.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Bypass Firefox's Cache
    Use Command+Shift+r to reload the page fresh from the server. Any difference? If not...
    2. Clear Firefox's Cache Completely
    Edit > Preferences > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    3. If needed, remove your linkedin.com cookies
    While viewing a page on the site:
    Tools > Page Info > Security > "View Cookies"
    Remove each cookie then try reloading the page. You probably will need to log in again. Does that help?

  • Error using the XPath function id()

    I am using BDBXML 2.2.13. When I submit the following query the execution fails because of the following failed assertion on line 681 of DbXmlNodeImpl.cpp.
    collection('test.dbxml')id(/site/people/person[@id='person1']/watches/watch/@open_auction)
    DBXML_ASSERT(nt->getInterface(DbXmlNodeTest::gDbXml) != 0);
    The failure does not happen if the arguments passed to id are constant, for example the following query works just fine:
    collection('test.dbxml')id('person0')/name
    The problem seems to be that the function arguments are represented by Pathan objects instead of DbXml objects that are cast back and forth when using the different interfaces.
    Is this a know bug in the database or is my query not properly formated?

    DB XML 2.2.13 is quite old now. Does that same problem occur with DB XML 2.3.10?
    Using the id() function is not going to do what you want it to anyhow, since DB XML does not provide typing information for the XML tree. You'll need to use conventional navigation to get the node that you want.
    John

  • Using the Clip function of an AP-Element

    This is a follow up question to my previous post asking about
    opening external links within my site.
    After taking some good advice on embedding the image in an
    HTML doc on my site and then calling this page from the navigation
    bar.......I'm now on the trail of embedding the image in an
    AP-Element so I can then do my RHS or LHS justification using the
    clip function. In principle I've had it working once on my exisitng
    home page, but as soon as I try creating a new Doc and embedding
    the AP-element the clipping fails to work. If I clip the LH corner
    of the image it diplays correctly in the designer window, but as
    soon as I go to the browser preview it reverts back to an unclipped
    version of the image.
    This is what I'm doing:-
    1) I create a blank new document
    2) I then add an AP Element by Insert|Layout Object|AP Div
    3) I then resize this to a reasonable size on the page and
    then insert an image
    4) I then click on the AP-element border and go to the Clip
    property and set up to clip the LH corner of the image
    When I then look at the designer window, it correctly shows
    the clipped LH corner as expected. But as soon as I preview it in
    the browser it reverts back to the full size image.
    Any guidance would be most greatfully received.
    Thanks,
    Neil

    Tell us again why you are clipping the image, please?
    Also, AP elements cannot interact with any other elements on
    the page
    because the fact that they are absolutely positioned removes
    them from the
    normal flow. So, if you are seeing movement that you
    interpret in this way,
    you are not interpreting it correctly - most likely you have
    other issues on
    the page. Finally, editable regions are NOT layout regions -
    they are
    content regions. If you are seeing 'editable region' issues,
    then look to
    your page's code and the HTML infrastructure there, not at
    your template
    region markup.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "CS4Rookie" <[email protected]> wrote in
    message
    news:gqnrea$1d$[email protected]..
    > Ok, I have part of the site running now so you can see
    what stage I'm at.
    >
    > I think the AP element clipping works ok for what I'm
    doing, but it does
    > pose
    > problems with a large clipped image as I need to select
    a different
    > clipping
    > area for each side of the image. When I do this I then
    need to move the AP
    > elemnt around in the page and this seems to create
    editable region issues
    > due
    > to it being a wide image.
    > Again, this is probably due to my inexperience, so I
    guess I'll sort it
    > out if
    > I put enough time in.
    >
    > Thanks for your comments and support so far.
    >
    > Neil
    >

  • Site studio 10gr4 case study or learning material

    hi All,
    I need some learning material for site studio 10gR4, so any recommendations ?
    thanks in advance

    Hundreds are loving the new Site Studio now... even though they first found its new site design messy and annoying!
    Here's another great resource - if you've seen the old Studio. It shows you why R4/11g is such a big deal. Its a fun read - check it out at
    [http://stellentexperts.blogspot.com/2010/09/hundreds-are-loving-new-site-studio-now.html|http://stellentexperts.blogspot.com/2010/09/hundreds-are-loving-new-site-studio-now.html]
    Best
    Dmitri Khanine, Oracle ACE
    www.stellentExperts.com
    Author, The Oracle UCM Handbook
    Discover Oracle UCM in a short afternoon. Tap into insider secrets. Master breakthrough shortcuts - to take your project and your career to the next level of success.
    Grab your copy here: http://www.amazon.com/Oracle-Universal-Content-Management-Handbook/dp/1849680388

  • Breaking Links to and External Data Connection using the cubevalue() function

    I have spreadsheets that connect to an MSAS cube successfully and pull data in the cells using the CUBEVALUE function.
    Is there a way to perform the equivalent of 'breaking links' to the external database so that the spreadsheet can be distibuted to others that will not have the external database connection set up on their computer/excel environment.
    I find that if i email a spreadsheet with data retreived using cubevalue functions to someone without the external database connection they do not see the values preserved with the spreadsheet and end up with blank or zero cells, etc.
    I have unchecked the box related to 'refresh data when opening file'.
    In a perfect world i would like to remove the db connection and be left with pasted values, similar to breaking links to an external workbook but I am not sure if that is possible.
    I am desperate to find a way to distribute these spreadsheets and be confident that Excel won't be unsuccessfully trying to refresh a connection that isn't on other peoples computer.
    Thanks for any guidance

    Maybe you can upload a sample file to a file sharing site and then share the link with us.
    As you said you have already unchecked the option 'Refresh data when opening the file' within Connection Properties.
    When you send the Excel file to someone without this data connection, they should get the correctly data unless they click the button 'Refresh All'.
    Wind Zhang
    TechNet Community Support

  • How to use the Table Function defined  in package in OWB?

    Hi,
    I defined a table function in a package. I am trying to use that in owb using Table function operator. But I came to know that, owb R1 supports only standalone table functions.
    Is there any other way to use the table function defined in a package. As like we create synonyms for functions, is there any other way to do this.
    I tryed to create synonyms, it is created. But it is showing compilation error. Finally I found that, we can't create synonyms for functions which are defined in packages.
    Any one can explain it, how to resolve this problem.
    Thank you,
    Regards
    Gowtham Sen.

    Hi Marcos,
    Thank you for reply.
    OWB R1 supports stand alone table functions. Here what I mean is, the table fucntion which is not inculded in any package is a stand alone table function.
    for example say sample_tbl_fn is a table function. It is defined as a function.It is a stand alone function. We call this fucntion as "samp_tbl_fn()";
    For exampe say sample_pkg is a package. say a function is defined in a package.
    then we call that function as sample_pkg.functionname(); This is not a stand alone function.
    I hope you understand it.
    owb supports stand alone functions.
    Here I would like to know, is there any other way to use the functions which are defined in package. While I am trying to use those functions (which are defined in package -- giving the name as packagename.functionname) it is throwing an error "Invalid object name."
    Here I would like know, is there any other way to use the table functions which are defined in a package.
    Thank you,
    Regards,
    Gowtham Sen.

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • TS1398 I have an iPad mini, because of my work network firewalls I am not able to use the airprint function to print. I was told you can direct connect to a printer. I am not sure how as I have not seen any cables for a lightning connection to a printer c

    I have an iPad mini, I am connected to my work wireless connection. My printer also is on the same wireless network, however I am not able to print to my airprint enabled printer through this wireless connection. Is there a way to direct connect to the printer via a cable ?
    I am missing something here on the connection. I am thinking possibly a firewall here at work will not allow me to use the airprint function. Help ?

    There is no support for wired printing.
    It is probably a firewall issue, possibly where all inbound communications are blocked. Since you're at work, I'd call your work IT department and find out from them what you can/can't do.

  • Does anyone know how to use the bcc functionality for apple mail while accessing it on the cloud from my PC?

    I am currently away from my MAC and want to send an email through apple mail with the bcc functionality.  I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help.  Thanks!

    Open your mail,
    lower left corner click on settings,
    go to composing and check BCC, save and your done

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to use the CMS functionality in Sun Portal Server 7.2

    Hi All,
    How to use the CMS functionality using the ccd.war(Portlet) which is available in the library as i could add it to my channel but not able to show the functionality as it is showing the error msg "You are currently not logged in. Please login." should I create userid and there respective roles inorder to use the CMS functionality.
    Has any one used this as I could this in glass fish server.
    Any Input is appreciated.
    Thanks & regards
    Srikanth

    Have a look at the "*Roles*" section of the portal server 7.2 content management system guide
    http://docs.sun.com/source/820-4275/index.html . You can also look at [project mirage|https://mirage.dev.java.net] for some screencasts
    Alternatively,
    1. ccd.war has 3 portlets in it:
    (a) custom content definition portlet
    (b) custom content portlet
    (c) workflow portlet
    2. Inorder to work with these portlets, user needs to be in anyone of the below roles:
    (a)Consumer (b) Editor (c) Approver (d) Administrator (e) Submitter (f) Contributor (g) Publisher
    3. By default ccd.war gets deployed using a default roles file (/var/opt/SUNWportal/tmp/ccd.roles.properties)
    Note: In windows, you may not find this file
    4. Access the portlets as a user in any of the role mentioned in the ccd.roles.properties
    (OR)
    you can use a new roles file which has mapping to your custom roles. For this , undeploy existing ccd.war and deploy again with a new roles.properties file
    Hope this helps!

  • How to use the divide() function in bpel

    Hi All,
    How to use the divide() function in bpel.
    pls can u give the one sample example

    2 div 4
    Eg;
    <assign name="Assign_1">
    <copy>
    <from expression="2 div 4"/>
    <to variable="outputVariable" part="payload"
    query="/client:testProcessResponse/client:result"/>
    </copy>
    </assign>
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use the pps function from JCOP?

    Hi
    I'm trying to use the pps function from JCTerminal (JCOP API: [url http://www.cs.ru.nl/~woj/jcopapi/com/ibm/jc/JCTerminal.html#pps(int, int)]pps function ) to connect my client to a virtual card with a specific protocol (T=0).
    But I always got the error: "Protocol and parameter selection not supported by this terminal!"
    I've tried to make an ATR that support both protocol : [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]3B 90 95 80 81 1F C7 DC.
    I really don't know what value to put in the second parameter (baud rate), I've tried with 150000, which is in the range of the ATR but I'm not sure this is correct. And I could't find any example of it.
    I'm also not sure where to put the pps command, the specification say directly after a reset, so I tried this implementation:
    System.out.print("Start");
              readers = TerminalFactory.getDefault().terminals().list(State.CARD_PRESENT);
              //If no readers has a card it ends the process
              if(readers.isEmpty()){
                   System.out.println("\nNo card in the reader...");
                   return;
              System.out.println("\nReader Type: "+readers.get(0).toString());
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)150000);
              } catch (Exception e) {
                   e.printStackTrace();
              System.out.println("ATR: "+toHex(atr.getBytes()));
              //sending a data 11223344
              System.out.println("\nsending data: 11223344");
              byte[] responsesend = term.send(0,cmdsend,0,cmdsend.length);
              System.out.println("Response data is:" + toHex(responsesend));
              //close terminal
              term.close();
              System.out.println("\nTerminal closed");I've got this output on the console:
    <font size="2">StartReader Type: PC/SC terminal Virtual CAD Reader 0
    Terminal opened
    ATR: 3b 90 95 90 00 81 1f c7 cc
    sending data: 11223344
    <font color="red">Protocol and parameter selection not supported by this terminal!</font>
         at com.ibm.jc.JCTerminal.pps(Unknown Source)
         at com.test.essai.main(essai.java:46)
    </font>>
    And If I take a look at the data exchanged with the card:
    <font size="2">Running in Virtual Card mode...
    ATR: 3B909580811FC7DC
    Waiting for event (power: off, protocol: unknown/undefined)...
    Waiting for event (power: off, protocol: unknown/undefined)...
    Raw event data: 01
    Event: VCAD_EC_POWER_ON (0x01)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_ON) ATR: 3b909580811fc7dc
    Raw reply data: 003b909580811fc7dc
    Sending reply...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Waiting for event (power: on, protocol: unknown/undefined)...
    Raw event data: 06ff11957b
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: ff11957b
    Accepting any PPS request parameters: Protocol: t=1; FI=9, DI=5
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: ff11957b
    Raw reply data: 00ff11957b
    Sending reply...
    </font>>
    This (above) is the PPS command but not from the PPS function, it is always sent with protocol T=1
    <font size="2">Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0501
    Event: VCAD_EC_SET_PROTOCOL (0x05) Protocol: t=1
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_SET_PROTOCOL)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600c10120e0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00c10120e0
    Handling protocol-specific command...
    Protocol block:
    NAD: 0x00
    PCB: 0xc1 (T1_S_BLOCK); S-Block type: T1_SBT_IFS_REQ
    LEN: 1
    INF:
    IFS: 20
    EDC: 0xe0
    Changing IFS(other) from 32 to 32
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00e10120c0
    Raw reply data: 0000e10120c0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 0600001300a404000d54657374436c69656e7441707000f0
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 00001300a404000d54657374436c69656e74
    41707000f0
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x00 (T1_I_BLOCK); Seq. #: 0; More data: 0
    LEN: 13
    INF:
    00a404000d54657374436c69656e7441707000
    EDC: 0xf0
    cmd name: N/A (class #4)
    cmd: 00a40400 0d 54657374436c69656e74417070 70
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 707041746e65696c4374736554 90a4
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 00000f70704
    1746e65696c437473655490a475
    Raw reply data: 0000000f707041746e65696c437473655490a475
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 060040041122334400
    Event: VCAD_EC_EXCHANGE_TPDU (0x06) C-TPDU: 0040041122334400
    Processing app. command...
    App. block:
    NAD: 0x00
    PCB: 0x40 (T1_I_BLOCK); Seq. #: 1; More data: 0
    LEN: 4
    INF:
    11223344
    EDC: 0x00
    cmd name: N/A (class #1)
    cmd: 11223344
    Responding with the reversed command data, SW is hardcoded to 90<INS>
    rsp: 9022
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_EXCHANGE_TPDU) R-TPDU: 0040029022f
    0
    Raw reply data: 000040029022f0
    Sending reply...
    Waiting for event (power: on, protocol: t=1)...
    Raw event data: 03
    Event: VCAD_EC_POWER_OFF (0x03)
    Reply: VCAD_SC_OK (0x00) (in reply to VCAD_EC_POWER_OFF)
    Raw reply data: 00
    Sending reply...
    Waiting for event (power: off, protocol: unknown/undefined)...
    </font>>
    If someone know how to use this function or have any advice to help me to select a specific protocol with Jcop API, please let me know.
    If you you need any more information don't hesitate to ask.
    Best regards
    Edited by: Cyril on Sep 22, 2011 9:54 AM

    -1
    I'm using a virtual terminal (windows driver), and I don't see how I could turn off the Auto-pps. I've also tried with a real reader and a card and I have the same error.
    -2
    I've tried value in the range of the atr (based on this analysis: [url http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc]http://smartcard-atr.appspot.com/parse?ATR=3b909580811fc7dc ). But I don't know if only I value of baud-rate is possible in the range. Anyway I just would like to change the protocol, not the baud-rate.
    -3
    I've already tried to call pps function before, after the first reset, or with another reset later and I always got the same thing.
              term = (PCSCJCTerminal)JCTerminal.getInstance("PCSC", readers.get(0).toString().substring(15));
              term.open();
              System.out.println("\nTerminal opened");
              //Getting the ATR
              atr = new ATR(term.waitForCard(2000));
              System.out.println("ATR: "+toHex(atr.getBytes()));
              jcard = new JCard(term,atr,0);
              jcard.reset();          
              try {
                   term.pps(JCTerminal.PROTOCOL_T0, (int)312500);
              } catch (Exception e) {
                   e.printStackTrace();
              }The same pps is always send after each reset...

Maybe you are looking for