Character replacement script for Site Studio / idocscript

Working on creating and RSS feed of items in our CMS via the RSS feed component in Site Studio. I have the feed generating, but the Google Product search parser that I need to read the feed balks at odd (non-standard) characters like "o-slash" and an accented e. We have many items with foreign-language descriptions or authors from non-English countries that use characters outside of standard English.
I would have thought that using xml(parameter) would have solved this problem, but it does not.
At the moment, I'm "solving" this by individually locating the error and adding a "regexReplaceAll" for each one to change it to a somewhat acceptable alternative. It gets even tougher when, for example, I have to replace for the "o-slash" by using this:
<!--$theAuthor = regexReplaceAll(xCreator, "&#248;", "&#38;#248;")-->
because the server recognizes the o-slash as &#248, but the xml parser (Google Product search's data feed) will accept it only if I also make the ampersand in the entity an entity as well.
My question is... is there an easier way to find and replace for all these potential pitfalls? Is there a idocscript that someone has already written and is willing to share?
Thanks in advance for any help you can give.
Barry
(using Site Studio 10gR4)

Thanks, but <!--$xml(descriptionText)--> doesn't seem to work for this parser (Google products data feed) and/or the characters that are being used.
For example, the output of <!--$xml(descriptionText)--> is this:
"...lleven un método efectivo para medir la satisfacción..."
and the error is this:
"Some of the characters in your items seem to be invalid.
...lleven un método efectivo para medir la satisfacción..."
So the parser is either seeing something different than what I see (even though we're reading the same file) or it just doesn't consider "é" and "ó" to be valid xml (and I have no idea if they are or not).
I have been asking for more guidance on the Google products board, too, but was hoping that there was something else that could be done from Site Studio end.
Thanks!
Barry

Similar Messages

  • Validation Script in Site studio

    Hi,
    I have created the Custom element form for date, I need to validate the data entered in contributor mode via Validation Script.
    I have created the Validation Script but I'm not able to read the parameter i.e. date.
    Returning true or false from the validation script is handling the validation. Retuning "false" shows one pop up .. that is ok. but how can we put user defined message in that pop up.
    So I have two queries:
    1. Reading the parameter in validation script.
    2. Putting user defined message in the pop up.
    Thanks in advance,
    MAK

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • Help needed to find a replacement HDD for Dell Studio 1558

    Hi,
    My laptop HDD is 5 yr old and started to give a lot of read/write errors recently, I'm also finding very difficult to back the data from my laptop to my Seagate external HDD.When I copy the files to external HDD it gives I/O error. When multiple files are copied the fan runs at high speed makes lot of noise and the laptop.shuts down due to overheating. Due to this I got a chkdsk to scan and fix the errors on my external drive due to data copy failure taking additional 4hrs to scan for errors. My laptop.internal drive is Seagate momentus ST9500325AS 5400 rpm 500 GB,2.5" internal 8 MB cache SATA 3.0 GB/s drive and find that the drive is unavailable in my country.
    I've just seen Seagate momentus Thin ST500LT012 500 GB 5400 RPM 16 MB Cache SATA 3.0 GB/s 2.5" internal Laptop/Notebook Hard disk on Amazon and would like to.know if I can replace my old with this
    I was not sure to order this online since it reads thin I doubt if it would be slimmer than the old one and might not be an alternative.
    I would also greatly appreciate if someone could suggest an alternative HDD preferably Seagate to replace for Dell 1558 studio
    Thanks in advance.
    Kar

    First try to make a Dell Backup and Recovery 16 GB Bootable USB using the latest version of Dell Backup and Recovery:
    http://dellwindowsreinstallationguide.com/dell-backup-and-recovery-1-8-1-71/
    The instructions are for Windows 8.1 but should be similar for Windows 7.
    New drives will be slimmer. I recommend you replace the HDD with a SSD if you want a significant performance boost. Crucial SSDs include a spacer for seating into your system and guarantee compatibility:
    http://www.crucial.com/usa/en/compatible-upgrade-for/Dell/studio-1558

  • Error while creating place holder definition in Site Studio using Jdev,UCM

    Hi,
    I am Using UCM and Jdev 11g.
    I was creating a website using Oracle® Fusion Middleware Developer's Guide for Site Studio for External Applications
    11g Release 1 (11.1.1).
    It worked fine till step 9 of 4.2 i.e i created till region template.
    But as i was creating place holder definition, i was trying to add region definition.
    This was the step where i got the error :
    Unable to retrieve search results. Error occurred while retrying the search query. Error occurred while processing. Unable to return results.
    Because of this i am not able to see any region definitions which i had created earlier. so i am not able to add any region definition to it.
    Please help me resolve this.

    HI Srinath,
    Thanks for the response.
    Please let me know how to addsystemdatabase tracing section on UCM .
    PFB the error which is coming in Jdev.
    oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Error occurred while processing. Unable to return results. Unable to create the result set for query 'SELECT Revisions.dID, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, dFileSize AS VaultFileSize, DocMeta.*, RevClasses.*
              FROM Revisions, DocMeta, Documents, RevClasses
              WHERE Revisions.dID=DocMeta.dID And Revisions.dID=Documents.dID And Revisions.dDocName = RevClasses.dDocName And dIsPrimary = 1 And dReleaseState IN ('Y', 'U', 'I') AND (((((((( xWebsiteObjectType LIKE '%Placeholder Definition%' ) AND ((( CONTAINS(xWebsites, 'SiteStudioDemo')> 0 ))))))))) AND ((((dSecurityGroup != 'SG_MO_Op' OR dSecurityGroup IS NULL))))) ORDER BY dInDate Desc'. ORA-00904: "CONTAINS": invalid identifier
    java.sql.SQLSyntaxErrorException: ORA-00904: "CONTAINS": invalid identifier.
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:135)
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:107)
         at oracle.stellent.wcm.core.idc.AbstractIdcApi.getResponseBinder(AbstractIdcApi.java:254)
         at oracle.stellent.wcm.core.idc.impl.SiteStudioApi.search(SiteStudioApi.java:216)
         at oracle.stellent.wcm.jdev.cis.PluginSiteStudioApi$1.run(PluginSiteStudioApi.java:127)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)

  • Records Management crashes Site Studio

    I have not been able to run either RM Corporate or Universal RM on the content server and have Site Studio log in. As soon as either component is loaded it fails to load the fragments with a GET_FILE error complaining about the dID and retention schedule.
    I really need to get records manager up and running as well as Site Studio. Is there a workaround or a mechanism to shut off the retention for just the Site Studio? Or is there some undocumented configuration changes that need to be made to the Site Studio - I have looked at the queries and pages and there is nothing obvious?

    Well your issue if very curious to me. I wondered if in your pages anywhere you coded any kind of redirect? I wouldn't see how it would just direct out to some page on the internet by chance, so I wondered if you had programmed in a redirect, or if in the properties of a node for site studio you set an external url. For nodes in the hierarchy you can now put an external url, which could cause this kind of hting to happen.

  • Word wrapping in site studio?

    Hello,
    I'm trying to develop in Site Studio 7 and finding it cumbersome the way I always have to scroll across to view code. I've tried 'enable line wrapping' in the view -> customise menu, this doesn't seem to have any effect. Anyone else had this problem or know of a solution?
    Cheers
    M.Mix

    "Line wrapping" is not word wrapping. It inserts a physical line break when the line exceeds the specified length. If the text is continuous (no spaces) then no break is inserted. Pointless and yuck. We've been complaining about it for years, maybe Oracle's 11g release might address it.
    See Re: Suggestion for Site Studio Designer improvement

  • Jdeveloper vs Site Studio

    Hello,
    I installed all of the software which I believe is needed to create a website from scratch. I am stuck trying to figure out if I need to use JDeveloper or SiteStudio to create a simple hello world home page. Off the OUCM tab under WinXP is Site Studio. Off the WebLogic tab is Jdeveloper. Which is the correct workflow?
    Thanks,
    Jim
    P.S. any links that demonstrate the correct workflow?

    You can follow the manual available at http://download.oracle.com/docs/cd/E17904_01/doc.1111/e13650/ssxa_creatingsites.htm#sthref327
    (this shows how to create a simple home page from JDev)
    Take a look at this link if you find something useful for Site Studio: http://www.oracle.com/technetwork/middleware/content-management/tutorials-084061.html
    (however, once you get the principles, you should be able to do it yourself)
    I'm wondering why you post to WebCenter forum? Of course, even with WebCenter you can create a simple "site" - check here http://download.oracle.com/docs/cd/E21764_01/webcenter.1111/e10273/toc.htm

  • 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

  • How to pass idoc parameters in a validation script? (10gR3 site studio)

    Obviously idoc won't work in the actual validation script, so I'd like to use it to generate the parameters to pass to a custom function.
    If I add <!--$siteId--> as a parameter in design mode, it'll be added as: &amp;lt;!--$siteId--&amp;gt; which doesn't work.
    If I manually add <!--$siteId--> to the parameter code in Source mode, this works just fine. However, once I enter design mode, Designer strips it out and now I have no parameter.
    Is there any way to somehow escape the less than/greater than symbols in Design mode?
    It's really unfortunate how the contributor windows are static HTML pages that don't retain what site they're on. Maybe this has changed in the 10gR4.

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • Sharepoint warmup script for https sites

    we want to warm up https site which is based on sharepoint 2010.
    When we run some sample powershells it shows access forbidden error so we are not able to warm up https site.
    Its slow on first load so need some warmup script for https sites.
    sharepointer

    Just ensure that the service account that you use to trigger the Powershell scripts has access to IIS and SharePoint.  Most often, the SharePoint Farm account would be used for scheduling the warm up scripts on the WFE server.
    I trust that answers your question...
    Thanks
    C
    http://www.cjvandyk.com/blog

  • Metadata values not showing in Site Studio layout using Idoc Script

    Hi All,
    We have a SS layout (secondary) with replaceable regions for showing content that is listed in a primary page dynamic list.
    Part of the layout shows contribution elements of Contributor Data File content items, but part of layout also shows metadata values. We use <!--$DOC_INFO.dDocTitle--> to show the content item Title with no problems.
    However, for some content items, some metadata values are not showing on the layout - specifically a custom metadata field called xFinishDate (which is of type 'Date' in Config Man). The code <!--$DOC_INFO.xFinishDate--> simply does not work (nothing is displayed) for some content items, despite definitely having a set FinishDate value. Some other content items show this value fine.
    The <!--$DOC_INFO.dDocTitle--> value works for ALL items, but the <!--$DOC_INFO.xFinishDate--> does not, and there appears to be no difference between the items that it does, and does not work for. They are all CDF, same DocType, same CheckIn profile, etc.
    The non-working items are all released and indexed. Their Content Information in Content Server shows complete metadata. I have resubmitted the non-working items for reconversion in Repo Man but no luck.
    Is there something I am missing? Any help is greatly appreciated.
    Luke.

    Actually the default DOC_INFO resultset that is on the page seems to be for the content item being loaded into the secondary layout's replaceable regions. This is why DOC_INFO.dDocTitle gives the results expected.
    However, I think I have discovered why the xFinishDate value was not showing. Using sapan's code (and modifying it a bit) I was able to print out all the metadata field names and values for default DOC_INFO resultset.
    Using this URL as an example: http://www.bond.edu.au/about-bond/jobs-at-bond/BD3_011217
    At the top of page region (replaceable) where the Contributor Data File is loaded into, the DOC_INFO resultset is relevant to the content item that is being loaded into the layout (content ID: BD3_011217 - as per the URL format), which is what we want.
    However, throughout the Contributor Data File content, if a link is made using the Site Studio link wizard via FCK Editor (in the above case, it is the position description link, which is a link to a PDF) and the link is 'Link to a file' and the 'Choose Target section' is selected as 'Use default website section metadata', the resulting link looks like "http://www.bond.edu.au/about-bond/jobs-at-bond/BD3_011216". Any references to the DOC_INFO resultset on the page after the instance of this link now use the metadata of the content item referred to in the link, not the original content item. I have dumped out the DOC_INFO fields/values in different parts of the layout to prove this. The linked content item has no xFinishDate value so this is why nothing displays (displaying xFinishDate needs to happen after the link to the position description).
    I guess I need to either:
    - change the way the link is made to the content item to "Link to the Content Item's URL", but I would prefer not to expose the resulting path e.g. "[!--$HttpRelativeWebRoot--]groups/group-name/@account-name/documents/content-type/content-id.pdf"
    - explicitly make a resultset using <!--$executeService("SS_GET_SEARCH_RESULTS")--> with the content ID I know I want and use it instead of the default DOC_INFO one. Is there any other way to make a resultset comprising of a single item's metadata?
    9.45 SS_GET_SEARCH_RESULTS
    ■ Description: This is a wrapper around the regular CS GET_SEARCH_RESULTS
    service. It allows some Site Studio features to be specified simply as flags and have
    the real query syntax be constructed on the server. It can modify the standard
    'SearchResults' resultset to contain an additional column called 'ssUrl' which will
    contain the Site Studio-friendly url for all of the search results.
    ■ Parameters:
    – siteId: the unique identifier of the site (required).
    – ssLimitScope: True/False, restricting scope to within the site only (optional).
    – ssUserSearchText: user-supplied search text (optional).
    – ssWebsiteObjectType: object type (optional).
    – computeFriendlyUrls: True/False, modify results to include ssUrl (optional).
    ■ Returns: resultset named ’Search Results’.
    ■ Security: The user must have at write access to at least one security group on the
    content server
    Thanks to everyone for their help. Almost there!
    Edited by: lukeb2112 on 18/01/2010 17:30

  • Best Practices for Forms within Site Studio Templates

    Last summer our university redesigned our entire website using site studio. We only use the content server for the SiteStudio add on. During the redesign, we found that it wasn't clear how we were supposed to migrate our current web forms (applications, payment forms, etc) to sitestudio. Our current workaround is to place the form within the content server, and have it submit data to a cgi (perl,php) placed on a separate web server. We wrap the backend of the form within an html template that looks like our sitestudio templates so that it appears to the end user that they are still on our website.
    Obviously, this is not ideal. I have been reading documentation on how to use the content server to host JSP files. The jsp files run flawlessly if they are accessed via the weblayout folder directly. I have not yet found a solution that will allow me to wrap my jsp forms within our existing sitestudio templates.
    Has anyone else encountered this problem, or come up with an alternate solution to this problem?

    Thanks, I appreciate your taking time to find the precise answer. Just today this bit me again.
    I have a need to modify the ComboBox template to italicize placeholder text.  That's a easy thing to do; however, now that I've created a new template I have to name it and add a Style={StaticResource MyNewStyle} to ALL the comboboxes in my app. 
    If I leave my new template unnamed - to override the default - none of the theme resource changes that I already have in place are picked up by the existing ComboBoxes, and they revert to their default look.
    There's clearly something wrong in the way I'm doing it or the way it's implemented.

  • Solution to Errno:7 in MaxL for Essbase Studio redeployment scripts

    This is an answer to an archived forum post that I found via a Google search.  The forum post no longer accepts replies.  The forum post contained an unanswered question about how to resolve "Errno:7" in MaxL in release 11.1.2.3 when trying to redeploy an outline through Essbase Studio.
    I encountered the same error in a client environment and could not find any resolution or references to this in the Knowledge Base, patches, release notes, etc.
    I wanted to post the resolution that worked for me, in case someone else encounters Errno:7 in MaxL.
    In this particular instance, the MaxL "deploy outline" script worked fine until we upgraded 11.1.2.1 to 11.1.2.3.  After upgrading, we could still connect to the Essbase Agent via MaxL, but the "deploy outline" script fails with "Not able to connect to BPM Server. Errno:7" and "BPM Connect Status: Error".  No evidence of the error could be found in the logs for the Essbase Agent, the Essbase application in question, and Essbase Studio.  Using the Essbase Studio Console to redeploy the outline worked fine.
    The root cause was learned when we ran the EPM Registry Editor to view a registry report.  The report showed that while Essbase Studio was correctly listening on port 5300, the web port was still on the old 11.1.2.1 port (9080) instead of the port 11.1.2.3 was expecting (12080).  This port number is not exposed to us if we go back into the EPM Configuration tool and drill down to Essbase Studio.  The config tool only allows us to change the relational database connection and the "datafiles" folder location.  Running "netstat -na" from the command prompt confirmed that the server was listening to 9080 instead of 12080.
    Using the EPM Registry Editor command-line tool to update the port's property value and then restarting the Essbase Studio service fixed the issue for us.  If you read the Essbase Studio documentation as I did, you may have had the impression that editing a file on the server would do the trick.  But the Readme for Essbase Studio 11.1.2.3 provides the real answer:
    "Starting in Release 11.1.2.3, the following Essbase Studio server properties are stored in the
    Oracle Hyperion Shared Services Registry database.
    The 11.1.2.3 Oracle Essbase Studio User's Guide describes all server properties as being in the
    server.properties file. To view or modify the settings in Shared Services Registry, use the
    epmsys_registry utility, described in the Oracle Enterprise Performance Management System
    Deployment Options Guide."
    I hope this helps and good luck!

    Hi Santy,
    Here's the original forum post: Essbase Studio Cube deployment via MaxL error
    In that thread, someone had questioned if an 11.1.2.2 MaxL client could still connect and bypass the error.  I happened to have a laptop handy with the 11.1.2.2 MaxL client installed on it and was able to test that.  The 11.1.2.2 MaxL client got the error as well.
    In my 11.1.2.3 environment I tried both the 32-bit and 64-bit MaxL runtimes and verified both were on the latest available Essbase patch set for 11.1.2.3.  Again, they still got the Errorno:7 message.  The problem was only fixed after updating the "server.httpPort" property value via the epmsys_registry tool.
    Regards,
    - Dave

  • Site Studio Publishing Utility fails with  HTTP rsponse 403 for URL

    Just installed Publisher with Subscription Client. The two pieces seem to work together until I start a replication. Then I get the following a number of times and it stops.
    [1]IOException: Server returned HTTP response code: 403 for URL: http://localhost:9180/MTKRSite/groups/public/documents/web_content/002310.htm http://localhost:9180/MTKRSite/groups/public/documents/web_content/002310.htm
    It the Publisher is trying to get content item 002310 there isn't one there.
    In the Publisher directory offers I see the web site but no content.
    I am really confused because I cannot figure out why it would try to get content 002310.
    Thanks for any help.
    Art

    The problem is now solved. For those that are using the product here is a hint of where to look.
    In the Oracle Site Studio Publishing Utility\offers\31 directory there is a file urlmap.txt. urlmap.txt has all the URL's that are going to be retrieved. If the publishing utility cannot get a file then look into this file and see why it is trying to retrieve it. If necessary a filterset that excludes the missing file can be coded in the sitestudo.config file.

  • Site Studio Page Element for a photo/pic

    Hi,
    I am trying to develope a UCM website using Jdev Site Studio.
    I have to create a user profile page. The page should have photo, introduction, interests and contact details.
    I have created a region definition with 3 WYSWYG elements for introduction, interests and contact details. But I am not sure
    what element to use for photo. An example or some sample code which uses some site studio element for photo will be helpful.
    Thanks
    Mahendra

    Mahendra,
    I believe you can use either WYSIWYG or IMAGE ONLY elements. Check the tutorial available at the link mentioned in this thread: Site studio 11g  -  tutorial - Contribution mode prompts for userid / pass
    Jiri

Maybe you are looking for

  • FCP 4 won't render

    Hi, I'm using fcp 4 and I when I try to render some scrolling text, it takes a long time and then comes up with general error 34. After that, it won't render anything. I have made sure that all the option colors are checked, and I have tried dumping

  • Sqlplus doesn't work using /nolog

    I need startup oracle but when I write sqlplus /nolog in the command line instead of have a message telling that I'm connect to an instance idle I just got a help message telling me how to use the sqlplus command. This is pretty wierd, I get the same

  • MXF OP1a Master file converted to Blu Ray in AME to .m4v showa up in Encore as Untranscoded

    Just started creating Blu Ray DVDs from MXF OP1a AVC-I 100 Master files. I use AME to convert to BR matching the settings of the master. It converts successfully creating  video .m4v and PCM files. When I import them into Encore 6.02, the Project win

  • VoiceOver - Better Voice?

    Is there any way to buy and load a better VoiceOver voice? The one on the iPad is pretty bad I have had better ones on my computers for over 10 years now. I would really appreciate having a decent voice and am more then willing to pay for it. Taking

  • Unable to verify message signature

    1 - I am using Lion and some emails come with a signature and it appears a message on top of the message saying: "Unable to verify message signature" (here in attach). What should i do? 2 - I would like to use digital signature for my emails. What co