Dynamically Reference Position within Absolute Path in XSL

All---
I have a file that I am parsing into many records. However, much of the information is duplicated and I do not want to considerate for my XSL. For this reason, I need to add logic to filter out those records that have the same account number as the previous record. It would seem that the best way to do this would be an "if" statement that compares the account number from the record in question to the account number in the previous record. This is what I have come up with:
<xsl:for-each select="/imp1:container/imp1:Record">
<xsl:if test='(position() = "1") or (imp1:Patient/imp1:AccountNumber != /imp1:container/imp1:Record[(position() - 1.0)]/imp1:Patient/imp1:AccountNumber)'>
As you may have guessed, this does not work. Any thoughts?
Thanks, Eric

I tried my solution with Saxon 8.8 and Oracle XDK 10.2.0.2
I created a source XML document of:
<container xmlns="urn:foo">
  <Record>
    <Patient>
       <AccountNumber>101</AccountNumber>
       <Something>Y</Something>
    </Patient>
  </Record>
  <Record>
    <Patient>
       <AccountNumber>101</AccountNumber>
       <Something>Y</Something>
    </Patient>
  </Record>
  <Record>
    <Patient>
       <AccountNumber>102</AccountNumber>
       <Something>Y</Something>
    </Patient>
  </Record>
</container>and an XSLT stylesheet of:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:imp1="urn:foo" version="1.0">
  <xsl:output method="text"/>
  <xsl:template match="/">
  <xsl:for-each select="/imp1:container/imp1:Record">
    <xsl:variable name="prevRec" select="preceding-sibling::imp1:Record"/>
    <xsl:variable name="curAcctNum" select="imp1:Patient/imp1:AccountNumber"/>
    <xsl:variable name="prevAcctNum" select="$prevRec/imp1:Patient/imp1:AccountNumber"/>
    <xsl:if test='not($prevRec) or $curAcctNum != $prevAcctNum'>
       <!-- etc. -->
       <xsl:value-of select="imp1:Patient/imp1:AccountNumber"/>
       <xsl:text>&#xa;</xsl:text>
    </xsl:if>
  </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>Which produces an output on the command line of:
101
102So it seems to be correctly ignoring the duplicate entries. Is something about my test source data not mimicking faithfully enough your situation?

Similar Messages

  • How to get absolute path of a form within the Forms

    Aslam o Alikum (Hi)
    How to get absolute path of a form within the Forms 6i or 9i
    For example
    i am running a from "abc.fmx" from C:\myfolder directory
    can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"

    There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
    I already have some code to do all this for you see:
    http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt

  • Links within a table are changed to an absolute path when I cut and paste

    Hi,
    We have help topics that contain tables and each cell in the table contains a hyperlink to another topic within the project. When I need to rearrange these links, I cut and paste them. When I cut and paste one of them, everything works as I would expect.
    Unfortunately, if I select multiple links/cells at the same time and perform a cut and paste, the links are automatically changed. They go from being a relative path to an absolute path.
    For example, this: ../MainMenu/Topic.htm#bookmark
    Gets changed to this: C:/Projects/2015/IM/MainMenu/Topic.htm#bookmark
    I'm using RoboHelp 9 with Windows 7.
    Any thoughts or suggestions?
    Thanks.
    Ashley

    https://support.mozilla.com/en-US/kb/Clipboard+not+working

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

  • Absolute paths to eclipse project root? Why?

    I am a dedicated follower of the Flex and related technologies since its first appearance (some years back, Flex 1.5)
    Flash Builder (formerly Flex Builder) back then (version 2) seemed to have a problem with paths relative to project location.
    More precisely, parts of generated projects always point to absolute locations either inside or outside the eclipse project workspace.
    Unfortunately, the problem still persists. In the past I had reported this issue (long time to remember/extract details now) but without success as it seems.
    This is very important for projects intended to be developed by more than one persons (different development machines, different paths etc.)
    for an example, with Flash Builder 4, create a new Flex project (Web), activate WTP integration, complete project generation and then check files
    .actionScriptProperties and .flexProperties
    you will observe absolute path references to essential files
    here is an example of my .actionScriptProperties
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <actionScriptProperties mainApplicationPath="Main.mxml" projectUUID="43b42874-f3f0-4b6b-932c-6a1d4e492b56" version="6">
    <compiler additionalCompilerArguments="-services &quot;D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/services-config.xml&quot; -locale en_US" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath/>
    <libraryPath defaultLinkType="0">
    <libraryPathEntry kind="4" path="">
    <excludedEntries>
    <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
    </excludedEntries>
    </libraryPathEntry>
    <libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
    <libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/fds.swc" useDefaultLinkType="false"/>
    <libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/player/playerfds.swc" useDefaultLinkType="false"/>
    <libraryPathEntry kind="1" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/locale/{locale}"/>
    </libraryPath>
    <sourceAttachmentPath/>
    </compiler>
    <applications>
    <application path="Main.mxml"/>
    </applications>
    <modules/>
    <buildCSSFiles/>
    </actionScriptProperties>
    here is a copy of my .flexProperties
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <flexProperties enableServiceManager="false" flexServerFeatures="6" flexServerType="8" flexWarLocation="D:/lcds/lcds.war" serverContextRoot="/WebContent" serverRoot="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent" serverRootURL="http://localhost:8400/net.eliasbalasis.flex.web.sample" toolCompile="true" useServerFlexSDK="false" version="2"/>
    D:/lcds/lcds.war i suspect is fine because it is the location of the LiveCycle Data Services WAR used to create the project (it is external anyway)
    However, D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent is not fine at all. It is a location inside the project workspace. It should be referenced using some kind of variable, similarly to ${PROJECT_FRAMEWORKS} above.
    I observed that there is a variable ${DOCUMENTS} under Eclipse-->Preferences-->Workspace-->Linked Resources which references the Eclipse project workspace root (extremely convenient).
    Unfortunately, it seems that this variable can only be used within the context of other eclipse configuration files like .project and .classpath but not within the context of .actionScriptProperties and .flexProperties
    This is the same exact issue I reported in the past (see above)
    Flex Builder/Flash Builder family of products are the only Eclipse Based tools I have so far worked with that have such a big trouble handling file path locations relative to eclipse workspace root
    OOPS. CORRECT ME IF I AM WRONG PLEASE.
    I just replaced the eclipse workspace root with ${DOCUMENTS} and the project still compiles and generates deployment packages successfully.
    Perhaps the "Linked Resources" variables work in the context of flex configuration files.
    However I am not 100% sure.
    Please verify or otherwise provide a solution, as I am ready to select Flex technology products for the development of a new quite complex, multi developer, large scale system and this will be the only reason making me consider abandoning Flex and use other technology products

    I loooove Eclipse for reason.
    Yes, you are right, use of variables is great thing.
    However, there are 2 ways
    1.
    Use all paths relative to Eclipse workspace root. No absolute paths anywhere and No variables.
    2.
    Use tool-supplied variables (like ${DOCUMENTS} supplied by FB4 plugin pointing to Eclipse document root)
    However, although the variable is supplied by FB4 plugin, when a project is generated its files still contain absolute path references
    I had to manually introduce the ${DOCUMENTS} variable in project files discovering that variables work in the context of FB4 plugin project files.
    In earlier versions of FB plugin variables where not processed.
    Congratulations FB4 team, you saved the day.
    All I am saying is that there shouldn't be absolute paths in generated FB project files. Replacing manually currently works but it is not the easiest thing for all users. I happened to know where to look. Others may not.
    I believe FB team has to consider making actual use of the supplied variables in next version of FB (or alternatively, not use variables at all)
    p.s.
    You will love Eclipse, trust me :-)

  • Can I link to images using absolute paths in HTML Help and still see them locally?

    I'm publishing HTML help pages to a Web server.  All .htm files on the Web server are in their own folder, and all image files are in a separate folder.  Links to images are generally of the form <img src="/images/clear.png" height="14" width="8">.  That is, the images use an absolute path reference from the doc root folder (rather than relative path from the current file folder, such as "../images/myImg.png").
    I can modify the HTML for the images to follow this convention, but then I cannot see the images locally within RoboHelp, but must instead wait until the files are integrated with the Web server.  Is there a way to set up a RoboHelp project so that I can force an image path of "/images" both locally and in the HTML?
    Using RoboHelp 9.0.1.232.
    Thanks.

    RoboHelp expects the images to be within the project and will need that if you are to see them when working. It then uploads them to the server when you publish.  There is a check box when you publish so that only updated files get  uploaded.
    You could point Resource Manager to the server folder with the images and then link to those images. What happens then is the image gets downloaded into your project so that you see it when working. If the server image changes you will see the icon in Project Manager changes so that you can update the local copy. It would be a one-off exercise changing your workflow.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Relative path of XSL in RTF

    Hello,
    I want to use common xsl file in RTF template. I will hardcode the path of the xsl file. Path should be relative path. Can anyone tell me how can I import xsl file into RTF template using relative path. e.g relative path may be BIP web cerver path. Currently I am using <?import: http://xp1111.xxx.co.in:9704/abc.xsl?> but it is not relative path.
    Thanks,
    Amit D.

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path.
    Thanks,
    Amit D

  • Probelm in getting absolute path of the application folder?

    I have problem in getting the absolute path of the application folder.
    I wriiten the following line in my action class:
    String absPath = getServlet().getServletContext().getRealPath("/");
    when i run my application 'DTH' in Tomcat server, I am getting correct path :
    C:\Tomcat\jakarta-tomcat-5.0.25\webapps\DTH
    But when i run this application in weblogic server, I am getting null value for the above line.
    Can any one help me in this?

    public java.lang.String getRealPath(java.lang.String path)
    This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).
    so, getRealPath() might not be a very good approach because of its different behavior when used from a war or exploded application.
    What you could do is:
    1. pass the path as a parameter inside web.xml (config files, log files etc)
    2. For dynamic lookup of files you could make use of ClassLoader.getResource().
    Hope it helps.

  • Ora:processXSLT xpath function and absolute paths

    It looks like ora:processXSLT xpath function does not honor absolute paths when specifying the location of the xslt to use in the first parameter. For example, if I call it like this:
    <copy>
    <from expression="ora:processXSLT('/u01/transforms/mytransform.xsl',bpws:getVariableData('xslInput','payload'))"/>
    <to variable="xslOutput"/>
    </copy>
    I get the following error in the bpel logs:
    Error while processing xpath expression, the expression is "ora:processXSLT('/u01/transforms/mytransform.xsl', bpws:getVariableData("xslInput", "payload"))", the reason is javax.xml.transform.TransformerException: java.io.FileNotFoundException: /u01/oracle/bpel/integration/orabpel/domains/test/tmp/.bpel_transformTest_1.0.jar/u01/transforms/mytransform.xsl (No such file or directory).
    Please verify the xpath query.
    It is assuming that the xsl will be relative to the bpel suitcase and just appending the supplied path to the relative path for the bpel process. Why would I want to do this? Well, I have hundreds of these maps and I want to be able to select one at runtime. I'm also adding new ones every day and I don't want to have to redeploy the process that uses them each time I add a new map. Is there any way to force this process to recognize the absolute path? I can work around it for now by using a bunch of ../../../../ stuff but that's a kludge and I'd like to find a better way to do it.
    I get the same error with xdk:processXSLT.
    Any suggestions?
    Thanks!
    Sean

    Hi Sean,
    Did you try to the file path with the file:// prefix and not just the path?
    ~ronen

  • How access an element using getElementById() without absolute path?

    hello,
    Currently I'm working on a JSF woodstock project.
    I'm trying to acceess the different components used the JSF page inside a javascript by using document.getElementById()
    this is a part of code in my JSF file. please have a look on it.
    <webuijsf:form id="form1">
                            <webuijsf:panelGroup id="pnlGrpBankListMainContainer" style="left:2px; top:89px; margin-left:1.5%; margin-top:1%; width:50%; position:absolute;">
                                <webuijsf:table augmentTitle="true" title="#{BankList.screenName}" id="table1" paginateButton="true"
                                    paginationControls="true" clearSortButton="true" extraActionTopHtml="style='height:35px'">
                                    <f:facet name="actionsTop" >
                                        <webuijsf:panelGroup id="grpPnlButtons">
                                            <webuijsf:checkbox binding="#{BankList.chkBoxSelectAllItems}" id="chkBoxSelectAllItems" name="chkBoxSelectAllItems" rendered="#{BankList.renderChkBoxAndImgSeparator}"
                                                selectedValue="selectAllItems" onClick="selectAllTableRows(this,'chkBoxBankListSelectedRowId',5);"/>
                                            <webuijsf:image id="imgSeparator" url="/resources/images/select_image_separator.gif" rendered="#{BankList.renderChkBoxAndImgSeparator}" />
                                            <webuijsf:button id="btnAdd" rendered="#{BankList.renderAddButton}"  text="Add" styleClass="btnStyle" immediate="true"
                                                onClick="return openAdd('#{BankList.requestContextPath}/faces/BankEntry.jsp', 500, 755,'Add  #{BankList.screenIdentifier}', '&action=ADD');"/>
                                            <webuijsf:button id="btnEdit"  rendered="#{BankList.renderEditButton}"  text="Edit" styleClass="btnStyle" disabled="#{BankList.disableEditButton}"
                                                onClick = "return openEdit('#{BankList.requestContextPath}/faces/BankEntry.jsp', 'chkBoxBankListSelectedRowId', 500, 755,'Edit  #{BankList.screenIdentifier}', '&action=EDIT');"/>
                                            <webuijsf:button id="btnDelete"  text="Delete" onClick="return confirmRecordsDelete();"  rendered="#{BankList.renderDeleteButton}"  styleClass="btnStyle" disabled="#{BankList.disableDeleteButton}"/>
                                            <webuijsf:button id="btnExportXls" disabled="#{BankList.disableExcelButton}" rendered="#{BankList.renderXlsButton}"
                                                styleClass="btnStyle #{BankList.excelButtonStyleClass}" style="position:relative; margin-left: 10px"
                                                text="x" onMouseOver="setMouseOverStyle(this);" onMouseOut="setMouseOutStyle(this);"
                                                onClick="return openXlsExport('#{BankList.requestContextPath}/faces/Export.jsp', 'chkBoxBankListSelectedRowId', 'Export  #{BankList.screenName}', '&screenIdentifier=#{BankList.screenIdentifier}');">
                                            </webuijsf:button>
                                        </webuijsf:panelGroup>
                                    </f:facet>when i access button element using absolute path like
    document.getElementById("form1:pnlGrpBankListMainContainer:table1:grpPnlButtons:btnEdit") it works fine.
    But when i try to access it using
    document.getElementById("form1:table1:btnEdit") it returns null.
    I've common javascrpt functions for all the screens.
    so i do not want to change the current javascript functionality nor do i want want to specify complete path for an element.
    So is there any way so that i can access the elements without absolute path or any othet solution?
    Edited by: sonali_amonkar on Apr 1, 2008 11:17 PM

    thanks for your reply mjswallow.
    Do you mean that I'll write a new javascript which will accept all the parent elements and inside this method I'lll call the common javascript methods that are present in our project?
    but this solution would result in changing the already existing javascript methods that i coded for all screens. right?
    that is i do not want to change.
    any other solutions you can think of?

  • Dynamic Reference to Registered XSD

    I generate docs from SELECT like this,
    <span style="color:red;">(I do not store this type of doc in DB/XDB)</span>:
    <div style="color:blue;">
    SELECT '&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;' || chr(10) ||
    xmlelement
    (&quot;ReinsuranceXfer&quot;,
    xmlattributes
        ('http://blah.com/blah2/types/common' AS &quot;xmlns&quot;,
         'http://www.w3.org/2001/XMLSchema-instance' AS &quot;xmlns:xsi&quot;,
         'http://blah.com/blah2/types/common http://blah3/xmlschemas/Sales_v1.xsd'
         AS &quot;xsi:schemaLocation&quot;),
     xmlelement
        (&quot;SalesTransactions&quot;,
         xmlattributes('DirectTransactions' AS &quot;xsi:type&quot;).......
    </div>
    the schema &quot;Sales_v1.xsd&quot; is XDB-registered.
    In stead of hard-coding <strong>&quot;Sales_v1.xsd&quot;</strong> in PL/SQL or View definition
    I want to DYNAMICALLY reference the value, so when I switch to
    version 2, registering the new schema (deleting the old one)
    the value <strong>&quot;Sales_v2.xsd&quot;</strong>
    can be dynamically referenced.
    Is there a better/&quot;smarter&quot; way to achieve the dynamic reference
    than this ?
    <div style="color:blue;">
    SELECT substr(any_path, instr(any_path, '/', -1) + 1) xsd
        FROM resource_view
       WHERE any_path LIKE '%Sales%.xsd';
    </div>
    thanks
    10gr2

    You can't invoke methods on bits of String as if they were references to objects. (Java isn't like PHP in this regard.)
    You can, however, use arrays as db suggested.
    Let's say I have a hundred toggle buttons. I might give them names like "okButton" "exitButton" etc. Or I might make them elements of an array of buttons, buttonArr.
    And I have a method toggle(int) that accepts an integer as input and verifies that the argument is within the range 1 to 100, throwing an exception if it is not. This method is intended to select the toggle button that corresponds to the integer it receives as input as selected. So the method would be implemented as
    buttonArr.setSelected(true);

  • Could not find agent library in absolute path

    Hi,
    I have a JVMTI agent which works on windows that I am trying to port to linux.
    I have compiled to code on Ubuntu 10.04 using Eclipse and have created shared library .so file.
    When I try to run an application with the agentpath argument, I get the error: "Could not find agent library in absolute path"
    When trying to run the mtrace sample from the java JDK, it works fine.
    My Java version is:
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
    I also tried running nm | grep Agent_OnLoad and got the following:
    00029220 T Agent_OnLoad
    00036230 b ZGVZ12AgentOnLoadE4data
    00030720 r ZZ12AgentOnLoadE19__PRETTY_FUNCTION__
    00036240 b ZZ12AgentOnLoadE4data
    My agent references several libraries such as boost asio and log4cxx could it be related somehow to these?
    I think it might be some sort of compilation issue because on windows it works fine.
    Thanks

    I managed to solve my problem.
    It turned out that the error was caused by missing referenced libraries that were not linked in to my so file.
    Once I added all of the required libraries, the agent started working.

  • Loading Absolute Paths

    Hi,
    I'm new to flash and I'm creating a flash mp3 player and have
    questions about loading paths. I'm trying to find out if it's
    possible to load absolute paths that are outside the document root
    of my website. The reason why I want the mp3's outside the document
    root is because I don't want the mp3's to be accessible for
    download. Here is the code that I'm using to try to accomplish this
    task....
    var getSong:LoadVars = new LoadVars();
    var sndTrack:Sound = new Sound();
    var pauseMs:Number = 0;
    getSong.load("mp3loader.php");
    getSong.onLoad = function(lSuccess:Boolean):Void {
    if (this.theSong) {
    txt_field.text = this.theSong
    } else {
    txt_field.text = "Song Not Found";
    if (lSuccess) {
    sndTrack.loadSound(this.theSong, true);
    sndTrack.onLoad = function(sSuccess:Boolean):Void {
    if (sSuccess) {
    sndTrack.stop();
    play_btn.onRelease = function() {
    sndTrack.start(pauseMs, 0);
    stop_btn.onRelease = function() {
    pauseMs = 0;
    sndTrack.stop();
    pause_btn.onRelease = function() {
    pauseMs = sndTrack.position / 1000;
    sndTrack.stop();
    } else {
    txt_field.text = "Song Could Not be loaded";
    The path that would be returned by the php file would be
    something similar to "/var/www/mp3s/mp3file.mp3 and the swf file
    could be located at "/var/www/public_html/player/mp3player.swf". If
    flash does not have the capability to load files outside of the
    document root of the website can you give alternatives to
    accomplish the same thing?
    Thanks
    Dana H.

    you can't prevent your mp3's location from being discovered
    by moving them to a different server.

  • Without absolute path, SAXParser1.4   does not find schemLocation!!!!!

    Hello
    I am validating soap messages according to xsd files with the SAXParser, Java 1.4.
    My xsds include references to other xsd files as following sample shows:
    <xs:include schemaLocation="C:/temp/shiphome.xsd"/>      
    The problem is, how to say the parser where the including files are without working with absolute path to the including xsds!!!?
    The code finds the file as follow:
    factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource", new File(schemaSource));
    Help!!
    Thanks

    Hi,
    well solution seems to be the following (from tomcat-users@...):
    j2ee.jar conflicts with some libraries from the tomcat-engine itsself.
    So my j2ee.jar 1.4 beta is ignored by the tomcat engine.
    I cannot place it in the general lib path, because i do not administrate the box myself.
    Solution for me is now to use the separate mail API (http://java.sun.com/products/javamail/) and javabeans (http://java.sun.com/products/javabeans/glasgow/).
    Hope that others find this helpfull, too.
    Do i get a refund for my J2EE book in my bookshelf, that i cannot use ?
    grml

  • Dynamic reference to buttons

    Hi all,
    I'd like to make dynamic references to togglebuttons (I'm using netbeans). In pseudo code, I would like to be able to do something like:
    For(int i = 1, i<10, i++){
    buttonName = toggleButton;
    buttonName.concat(numToString(i));
    convert buttonName to handler 'handle'
    handle.setSelected(true);
    With classes, it seems to me that I could use Class.forName, but I have no idea how to make this work for an interface element, and I can't find it on the web.
    Any help is welcome, thanks!
    Edited by: jefke33 on Jun 20, 2009 1:12 PM
    Edited by: jefke33 on Jun 20, 2009 1:13 PM

    You can't invoke methods on bits of String as if they were references to objects. (Java isn't like PHP in this regard.)
    You can, however, use arrays as db suggested.
    Let's say I have a hundred toggle buttons. I might give them names like "okButton" "exitButton" etc. Or I might make them elements of an array of buttons, buttonArr.
    And I have a method toggle(int) that accepts an integer as input and verifies that the argument is within the range 1 to 100, throwing an exception if it is not. This method is intended to select the toggle button that corresponds to the integer it receives as input as selected. So the method would be implemented as
    buttonArr.setSelected(true);

Maybe you are looking for

  • Background report save as PDF or excel

    Hello Guru's, I have a requirement my user execute one report in background now the output is appearing in ALV He wants now that is output should save as PDF or excel & send email to respective persons. Can we do this if yes please guide.I will be ex

  • From Firefox, can I open an FTP site in Windows Explorer?

    Firefox presents a simple FTP view of files. Firefox does not support active FTP mode, or uploading. Thus, some other program must be used to navigate and work an FTP site. Windows - Internet Explorer - provides a connection to open and view an FTP s

  • Ipad won't sync all my photos from new mac

    I have an original i-pad which used to sync all photos from my old mac - now I have a new mac and only some of the photos will sync with ipad - some photos are old and some are recent so it;s not an age thing.  Have updated ipad software and that has

  • How to revert to original image filenames in acr?

    Setup is Photoshop CS4 on Apple platform. ACR was used to batch rename a group of images with the option to preserve original filename in xmp activated. Due to an error when renaming, I now wish to have a few files revert to their original filename.

  • A bug in AirPort Extreme 802.11n

    I'm posting this on behalf of a colleague who has found a bug within the settings of the AirPort Extreme router both to make Apple aware as well as to see if anyone else is coming across this. He notes: "The bug is that the AirPort Extreme advertises