Loosing xslt with variable when save in Jdev

I am using JDeveloper 10.3.3.0.4157. BPEL is deployed on SOA 10.1.3.3.
As part of a BPEL process I have an xslt transform to populate my outgoing message with a generated guid.
<xsl:variable name="messageIDVariable" select="orcl:generate-guid()"/>
<corecom:EBMID>
<xsl:value-of select="$messageIDVariable"/>
</corecom:EBMID>
If I change any part of the transform (like adding new mappings etc), then I save it. I get this error:
(1):xpath-expression: Error: Variable or parameter "messageIDVariable" is not available for use
Subsequently the xsl file is saved with my code referring to the variable removed.
I have deployed this bpel process (with my variable code in it) and it executes successfully filling my output message with the generated guid. So why is Jdev unhappy with it? Is my XSLT incorrect? (I'm new to this stuff so that is very possible). What does "not available for use" mean? It is declared the line above where it is used.
Go easy on me...like I said I'm new to this stuff.
Thanks for any insight.

thanx this is the solution. With this construct
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java">
     <xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
     <xsl:template match="/">
     <xsl:variable name="counter" select="java:java.util.Vector.new()"/>
     <xsl:variable name="temp1" select="java:add($counter,'1')"/>
     <xsl:variable name="temp2" select="java:add($counter,'2')"/>
     <xsl:variable name="temp3" select="java:add($counter,'3')"/>
     <xsl:variable name="temp4" select="$temp3"/>
     <xsl:value-of select="java:size($counter)"/>
     <xsl:value-of select="java:toString($counter)"/>
     </xsl:template>
</xsl:stylesheet>
at least the '3' is added to the vector.

Similar Messages

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • When I try to add an RSS or Atom feed, I get a dialog box with Open or Save instead of adding the feed to NewsFox like it used to do.

    With Firefox 4.x, when I added a feed, it would open NewsFox in a new tab, and bring up a dialog box with info about that feed. I would click on "test this feed" and it would put all available items into NewsFox. Now, I get this dialog box with Open or Save. If I click on Open (declaring Firefox as the preferred app), then it opens the feed itself, it doesn't add it to NewsFox. I've tried going into Options and about:config but don't see anything to change that would fix this problem. I tried Search in Firefox Help but no relevant threads came up.

    Thanks Cor-El. I already have it set to "Use NewsFox." I'm stumped.

  • How do u close the apps when done with them to save power with iOS 7

    How do u close the apps when done with them to save power with iOS 7

    To close out apps, simply double click the home button and instead of holding down the app icons and clicking on the X mark in older versions, you have to swipe the app window up and away.
    Also you can save on battery by turning of background app refresh from settings .... See this article for details , http://nyacomputing.com/how-to-close-out-background-apps-in-ios-7-and-save-on-ba ttery/

  • When you download a file and choose "open with" rather than "save as", what temporary folder is the file saved to?

    When I downloaded an important document, I accidentally chose "open with" rather than "save as" and I'm unable to re download the file to save it from the internet. I know its somewhere on my computer, but I can't find it! What temporary folder are the "open with" files saved to?
    Thanks,
    Kayla23

    hello, such files will be stored in the default windows temp folder. you can get to it by pressing windows-key+R & opening: '''%temp%'''

  • When I click on the download button the box with Run or save comes up then disappears before I can click on it. Then nothing happens. I have tried this numerous times the same thing keeps happening

    Question
    When I click on the download button the box with Run or save comes up then disappears before I can click on it. Then nothing happens. I have tried this numerous times the same thing keeps happening> edit

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

  • Enhancement for MIGO when SAVE with any of these tables afru,aufk,jest,tj02

    Enhancements/BADI's for MIGO Transaction When SAVE.
    Tables: afru,aufk,jest,tj02t,afpo,
    eban,qave,qals.
    can anyone pls suggest Enhancements/Exits/BADI's
    for MIGO transaction where i can use any of the
    above tables .
    i found mb_migo_badi, i dont think i can use this.
    If any one know any user exits to do it  .
    Regards
    Ashok.

    Hi Madhu,
    user exits for stopping PO creation without production order confirmation.
    Regards,
    Ashok.

  • Error when I startup JDev with Webcenter extension

    I'm using JDev Studio Edition Version 11.1.1.5.0 and when I start JDEV I get this error. I ignore the error and select to continue but I don't know if it could have an impact on my development.
    Aug 24, 2011 8:06:32 AM oracle.webcenter.portal.dt.config.PortalConfigUtil getPageTemplateFromConfig
    SEVERE:
    java.lang.NullPointerException
         at oracle.webcenter.portal.dt.config.PortalConfigUtil.getPageTemplateFromConfig(PortalConfigUtil.java:69)
         at oracle.webcenter.portal.dt.config.PortalConfigUtil.getDefaultPageTemplate(PortalConfigUtil.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.webcenter.portalframework.sitestructure.preference.PortalPreferences.getDefaultPageTemplate(PortalPreferences.java:482)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adfdt.view.rich.util.ExpressionEvaluationUtils.evaluate(ExpressionEvaluationUtils.java:106)
         at oracle.adfdt.view.rich.util.ExpressionEvaluationUtils.evaluate(ExpressionEvaluationUtils.java:38)
         at oracle.adfdtinternal.view.rich.pagelayout.dynamic.DynamicPageTemplateUtils._getViewIdFromString(DynamicPageTemplateUtils.java:94)
         at oracle.adfdtinternal.view.rich.pagelayout.dynamic.DynamicPageTemplateUtils.getViewIdFromPageTemplate(DynamicPageTemplateUtils.java:50)
         at oracle.adfdtinternal.view.rich.pagelayout.grammar.PageLayoutElementDefProvider.getFixedAttributeElementDef(PageLayoutElementDefProvider.java:71)
         at oracle.bali.xml.grammar.resolver.GrammarResolver.getFixedAttributeElementDef(GrammarResolver.java:163)
         at oracle.bali.xml.metadata.DerivedXmlKey.createElementKey(DerivedXmlKey.java:125)
         at oracle.bali.xml.model.ModelValidationContext.performAdditionalValidation(ModelValidationContext.java:84)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:378)
         at oracle.bali.xml.validator.Validator._validateChildren(Validator.java:621)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:538)
         at oracle.bali.xml.validator.Validator._validateChildren(Validator.java:621)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:538)
         at oracle.bali.xml.validator.Validator._validateChildren(Validator.java:621)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:538)
         at oracle.bali.xml.validator.Validator._validateChildren(Validator.java:621)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:538)
         at oracle.bali.xml.validator.Validator._validateElement(Validator.java:349)
         at oracle.bali.xml.validator.Validator.validateDocument(Validator.java:141)
         at oracle.bali.xml.validator.Validator.validateSubtree(Validator.java:85)
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3173)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3104)
         at oracle.bali.xml.model.XmlModel.__initializationComplete(XmlModel.java:2479)
         at oracle.bali.xml.model.XmlContext._initializeModel(XmlContext.java:307)
         at oracle.bali.xml.model.XmlContext._setSourceModel(XmlContext.java:2127)
         at oracle.bali.xml.model.XmlContext.setModel(XmlContext.java:325)
         at oracle.bali.xml.addin.XMLSourceNode._createAndInitXmlContext(XMLSourceNode.java:1533)
         at oracle.bali.xml.addin.XMLSourceNode._getXmlContext(XMLSourceNode.java:1487)
         at oracle.bali.xml.addin.XMLSourceNode.getXmlContext(XMLSourceNode.java:172)
         at oracle.bali.xml.gui.jdev.JDevXmlContext.getXmlContext(JDevXmlContext.java:207)
         at oracle.bali.xml.addin.XMLEditorAddin._getXmlContext(XMLEditorAddin.java:1023)
         at oracle.bali.xml.addin.XMLEditorAddin.createPlugins(XMLEditorAddin.java:865)
         at oracle.ide.ceditor.CodeEditor.installPluginsRegistered(CodeEditor.java:2196)
         at oracle.ide.ceditor.CodeEditor.initializeEditor(CodeEditor.java:2099)
         at oracle.ide.ceditor.CodeEditor.setContext(CodeEditor.java:1420)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:161)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:95)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:232)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:195)
         at oracle.ideimpl.editor.SplitPaneState.loadStateInfo(SplitPaneState.java:409)
         at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:969)
         at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1959)
         at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
         at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
         at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
         at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:406)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:430)
         at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:2022)
         at oracle.ide.layout.Layouts.activate(Layouts.java:814)
         at oracle.ide.layout.Layouts.activateLayout(Layouts.java:195)
         at oracle.ideimpl.MainWindowImpl$6.runImpl(MainWindowImpl.java:728)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    To my best knowledge the message reads that you are missing a page template. So, unless you use this page template in your application/spaces, you should be OK. However, it also indicates that something went wrong WebCenter extension installation (it is probably one of standard page templates), so I'd be a bit worried what else could be wrong (concerning WebCenter Framework).
    Have you tried to reinstall the extension?

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • Something's Wrong with my Screen Saver !!!

    For some reason I can't seem to turn off my screen saver. I go to system preferences and swith the "start screen saver" to either "never" or "2 hours", etc and it goes off in like 10-15 minutes anyway. The weird thing is that it doesn't even go into the screen saver, the screen just goes black.
    I tried testing the screen saver in the test mode and it works fine.
    I'm wondering if the problem is because i'm using a Ben Q monitor instead of an apple one?
    Anyways, it sounds like a stupid problem but it's REALLY making life difficult for me. If someone can help me it would SERIOUSLY make my life a lot easier.

    Welcome to Apple Discussions!
    Are you sure this is the screensaver? Check it isn't the display being set to sleep by going to the energy saver preference pane and ensuring that the display is not set to sleep after such a short time.
    Also, while unusual, it's possible that your display has a 'sleep' or 'energy saving' mode, which could be set through it's menus. make sure there is either no such option, or that if there is, it is switched off.
    Assuming neither of the above helped, does the power light on the monitor go from green (or whatever it's normal 'on' color) to something like yellow or orange when the screen goes blank? If it doesn't then the screen is still receiving data from the mini and it would thus suggest a problem with the display. If it goes yellow/orange then it means the mini is not outputting video data so the screen is going to sleep - which would suggest the mini or display is sleeping. If it goes off altogether, then the display is powering down and is thus at fault (possibly just a slightly loose power connector).
    When this happens, can you bring the system back to life by tapping a key/moving the mouse/clicking a mouse button?

  • Report Designer - Query with variable

    Hi!
    When testing the report designer, we have found an issue - it’s not possible to embedding queries with variables.
    We have found note https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200000232982006
    that suggest a solution to the issue.
    My question is simply, does anyone know if this is a temporary fix, or is this a constraint that is not planned to be fixed by SAP? The note is a bit ambiguous.
    BR
    bjørn

    Hello,
    Queries with variables are still in restrictions for Report Designer.
    You can use this work-arond creating Query View and fill up the variables. This allows you to define a Report in RD. Then, use Web Appication Designer to include your Report into Web Application and replace the Query View with your initial Query.
    For the integration do following:
    1. Create new Web Template in WAD
    2. Drag-and-drop Web Item "Report"
    3. Go to Property Window in WAD and search for "REPORT" (description Report Design) parameter in Web Items Parameters
    4. Use the button on the right side of the parameter to open Report Designer and choose your Report in it.
    5. You should see that new Data Provider was created in WAD -> Open it and set it to your initial Query.
    5. Save you Web Template and execute in the browser.
    Regards, Karol
    Development BI

  • Example file, illustrator file with variables linked to xml

    CS5 – Where can i find an example of an illustrator files with variables, linked to an xml file. We want to export it immediately to .pdf format when the file is linked. Is this possible? The illustrator help files are not so clear about this matter.

    Follow the Help documentation's steps to create at least one of each of the four supported types of variable bound objects.
    Capture the DataSet.
    Edit the bound objects' content.
    Capture the DataSet.
    Save Variable Library. That's your XML file.
    JET

  • Help with the open/save message box

    Hi everyone, I have a link to a PDF on my website and I need it to open in browser.  Right now it always comes up with the open/save message box.
    This is no good because I need to embed a direct page link (ie #page=9), and the open/save message box removes the page variable and opens to page one.
    It's strange because I have two PDF links on this particular page and while one works fine (and opens in browser) the other constantly prompts with open/ save.
    Suggestions?  I've already gone into the PDF preferences and set it to "Open PDF in Browser"... this does not help.
    Thanks,
    Nathan

    Well - Yes --- and No.  When I try to re-save a document or use the new Save As... implementation I am generally offered my Mac. But - If I create a New document and then use Cmd-S I am taken back to the iCloud Save window with the disclosure triangle closed. I am seeing this in TextEdit and Preview, but I have not checked all my document creator applications to see if the protocol is across the board.)
    (Note  - the "On My Mac" button is only available in the OPEN Dialog - not the SAVE Dialogs.)

  • Audio sync issues with variable frame rates as well as .ts files

    I'm using Premiere Pro CS6 and CC, in Windows 8.
    I bought an AverMedia Live Gamer HD card to capture 1080p footage with, and the the videos it produces work perfectly during playback. No sync issues whatsoever. I'm saving them as MP4 at 30fps.
    The problem is when I import them into Premiere Pro, the audio loses sync at certain points. After a bit of digging, I've discovered that the videos have a variable frame rate, which Premiere Pro does not support. I don't know why, considering competing products that are significantly cheaper can handle them with a problem, but oh well. The capture card can also save videos in .TS format, which produces a constant frame rate, however when I import them into Premire Pro the sync is immediately off by a second or more. I assume this is for an entirely different reason. Again, they play back normally without a problem. Upon emailing AverMedia, I was told this was Adobe's problem and there was nothing they could do about it.
    What I'm wondering is if there is any sort of realistic solution to this as of now. Is there any way that Premiere can work properly with files that have a variable frame rate? If not, is this being worked on?
    Or maybe there's a way to get the .TS files back in sync, that way the variable frame rate issue doesn't matter anyway.
    Converting the files is not a long term solution. I'm working with hours and hours of HD video, and it would take way too much time to do this.
    Manually resyncing the audio is also not a solution. Again, this would just be way too much wasted time with each project.
    The only solution I see as of now is to switch to Sony Vegas until this problem is resolved in Premiere, if it ever is. I'm really hoping there is some other way, so if anyone has an idea as to how to fix this, I'd really appreciate it.
    Thank you.
    tl/dr:
    Is there any way to get around Premiere Pro not working with variable framerates? My .TS files are also out of sync, is there any way to fix that? Without converting or manually resyncing.

    >If not, is this being worked on?
    Discussed many times before... never a "yes" answer to your question... tell Adobe what YOU want at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    If enough people make a request, Adobe MAY add the feature (I don't work for Adobe, so no guarantee of anything)

  • IMessage beta loose all saved conversations when I open and close a window.

    iMessage beta looses all saved conversations when I open and close a window.
    Just reporting this bug... Could not find anyother place to do it.
    Jonathan

    I thought it was doing that also. But I found that if I start a new chat with someone I was messaging before, then the old messages re-appear in the messages window.

Maybe you are looking for