Using document function in xsl template - not working in BI Publisher

Hi,
I have a requirement where I need to display the data in one xml file based on the contents of a second xml. I am using Oracle BI Publisher 10.1.3.4.1 and template used for report generation is xsl-fo.
1) ReportData.xml - contains the data xml
2) ReportFilter.xml - contains the display information.
I need to display the tags in the ReportData.xml based on the presence , absence of different tags in ReportFiler.xml
I guess one of the option is to declare 2 datasource as use concatenated datasources. However , I am trying to use the "Document" function that is available in xsl transformation to reference the display xml.
I have tried the different options for using the document function
*1) <xsl:variable name="filterCheck" select="document('ReportFilter.xml')"/>*
Errors out saying : XML-22021: (Error) Error parsing external document: 'Access not allowed : file:/
C:/OracleBI/oc4j_bi/bin/ReportFilter.xml '.
*2) <xsl:variable name="filterCheck" select="document('file:///C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
Errors out saying ; Caused by: oracle.xdo.parser.v2.XPathException: Access not allowed : file:/C:/Or
acleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml
*3) <xsl:variable name="filterCheck" select="document('C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
Errors out saying : Caused by: java.net.MalformedURLException: unknown protocol: c
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:153
*4)<xsl:variable name="filterCheck" select="document('file:/C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
Errors out syaying : Caused by: oracle.xdo.parser.v2.XPathException: Access not allowed : file:/C:/Or
acleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml
I have placed the document I need to access in all the 3 locations mentioned above
ie in my
*1) C folder*
*2) C:/OracleBI/oc4j_bi/bin*
*3) C:/OracleBI/xmlp/XMLP/DemoFiles*
Is there any special permissions that I need to grant to enable access to these files?
Please let me know if anyone has successfully made the document function to reference other xml documents in BI Publisher.
Regards
Sujith
Edited by: user10979469 on Dec 8, 2009 11:48 AM

Tim,
Thanks a lot for the reply. Set the option to enable external document access and it works perfectly.
Just for other who are looking at this post.
Go to the Report in BI Publisher
Click on Configure link on the top right
Go to the Section FO Processing
Disable external references - Server value is "True" . Set it to "False".
Apply changes.
Restarted the oc4j, just to be on safer side (not sure if this is required)
The document function will open documents from any location on your machine.
Thanks again Tim
Regards
Sujith

Similar Messages

  • Xsl:if not working in bi publisher template

    Hi,
    I have a template which has form field, which I defined as below:
    <xsl:if test="string(number((//ROW/TOTALDATACHECKS))) != 'NaN' ">
    <xsl:value-of select="format-number((1-(sum(//ROW/TOTALDATADISCREPANCIES) div sum(//ROW/TOTALDATACHECKS)))*100,0.00)"/>%
    </xsl:if>
    I see that, if I replace xsl:value-of tag with plain text "xxxxx" , it is rendering fine in the rendered report. But I need xsl:value-of to evaluate the farmula I have in the above implementation.
    I did the above implementation to avoid xsl errors in case of denominator in the farmula being null.
    Please suggest solution for the xsl:if issue I had. Any alternate solution to avoid xsl error for denominator being null is also welcome.
    Thanks,
    -Vijay-

    I am using rtf file as a template in BI Publisher. The rtf file has several form fields which gets populated by the sql query executed by BI Publisher.
    The form field I was referring has a farmula in which the denominator has a field read from sql query result. When the denominator becomes zero, BI publisher is throwing error and not rendering report.
    To handle above scenorio, I pasted the xsl piece of code (pasted in my first post of this thread) in that to handle this. But for the reason mentioned in the prior post its not successful.

  • Using document() function in xsl - first iteration is OK; second iteration is Empty.

    I am processing an input xml file (say input.xml) via (report.xsl) to generate
    a report.
    report.xsl in turn loads another *xml file (schema.xml) through document() function
    so as to process the input.xml. <schema.xml> contains some look-up information
    dictating how <input.xml> need to be processed.
    Here is how I am referencing the "schema.xml" in the "report.xsl".
    <xsl:variable name="schemaFile" select="document('schema.xml')"/>
    <xsl:variable name="schemaRoot" select="$schemaFile/Schema"/>
    <xsl:variable name="schemaList" select="$schemaRoot/SchemaFactors"/>
    When I run the report first time (my appserver is weblogic 7.0), everything is
    working fine. I see the results I wanted.
    However, when I run the report for the second time during the same session, I
    am getting "schemaList" as empty.
    The values of "schemaFIle" and "schemaRoot" appear to be correctly loaded in both
    the cases. The problem is with "schemaList" variable which is coming out empty
    during the second iteration.
    can any of you please throw some pointers on why this is happening and how to
    resolve this?

    Hello,
    Sounds like a bug. If you have a small test case, could you provide
    that to our outstanding support group (http://support.bea.com or
    [email protected]), it would certainly help tracking this down.
    Thanks,
    Bruce
    venkata wrote:
    >
    I am processing an input xml file (say input.xml) via (report.xsl) to generate
    a report.
    report.xsl in turn loads another *xml file (schema.xml) through document() function
    so as to process the input.xml. <schema.xml> contains some look-up information
    dictating how <input.xml> need to be processed.
    Here is how I am referencing the "schema.xml" in the "report.xsl".
    <xsl:variable name="schemaFile" select="document('schema.xml')"/>
    <xsl:variable name="schemaRoot" select="$schemaFile/Schema"/>
    <xsl:variable name="schemaList" select="$schemaRoot/SchemaFactors"/>
    When I run the report first time (my appserver is weblogic 7.0), everything is
    working fine. I see the results I wanted.
    However, when I run the report for the second time during the same session, I
    am getting "schemaList" as empty.
    The values of "schemaFIle" and "schemaRoot" appear to be correctly loaded in both
    the cases. The problem is with "schemaList" variable which is coming out empty
    during the second iteration.
    can any of you please throw some pointers on why this is happening and how to
    resolve this?

  • I am using laptop hitting and slow system not working

    i am using laptop hitting and slow system not working and very late opan file browser every think . plez help me

    Hi,
    Shut down the notebook.  Tap away at the esc key as you start the notebook to enter the Start-up Menu.  Select the Bios option ( usually f10 ) and under the Advanced or Diagnostic tab you should find the facility to run tests on both the Hard Drive and Memory.  Post back with the details of any error messages.
    Note:  If the option to run these tests is not available in the Bios Menu, use the f2 diagnostic menu instead.
    Can you also post back with the following details.
    1.  The full Model No. and Product No. of your notebook - see Here for a guide on locating this information.
    2.  The full version of the operating system you are using ( ie Windows 7 64bit ).
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • When using TODATE function MDX query is not correctly generated

    Essbase 9.3.1.2 and OBIEE 10.1.3.4.1.
    When using TODATE function MDX query is not correctly generated.
    This leads to unexpected values not only on cumulative columns in report (generated with TODATE), but also other columns (calculated with AGO function or directly read from cube) have incorrect values.
    The problem occurs when you filter on a column that is not in the select list. If you filter on just one level of dimension, results are fine. You can filter on multiple dimensions as long as you filter on just one level of each dimension.
    If you filter on two or more levels of one dimension, than results are not correct. In some cases results for TODATE column are all zeros, in some cases it is a random value returned by Essbase (same random value for all rows of that column), and in some cases BI Server returns an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Essbase Error: Network error [10054]: Cannot Send Data (HY000).
    Here is generated MDX code:
    With
    set [Grupe proizvoda2] as '{[Grupe proizvoda].[N4]}'
    set [Grupe proizvoda4] as 'Generate([Grupe proizvoda2], Descendants([Grupe proizvoda].currentmember, [Grupe proizvoda].Generations(4), leaves))'
    set [Segmentacija2] as '{[Segmentacija].[RETAIL]}'
    set [Segmentacija4] as 'Filter(Generate({[Segmentacija2]}, Descendants([Segmentacija].currentmember, [Segmentacija].Generations(4),SELF), ALL), ([Segmentacija].CurrentMember IS [Segmentacija].[AFFLUENT]))'
    set [Vrijeme3] as '{[Vrijeme].[MJESEC_4_2009]}'
    member [Segmentacija].[SegmentacijaCustomGroup]as 'Sum([Segmentacija4])', SOLVE_ORDER = AGGREGATION_SOLVEORDER
    member [Accounts].[MS1] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],2,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS2] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],1,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS3] as 'AGGREGATE({PeriodsToDate([Vrijeme].[Gen2,Vrijeme],[Vrijeme].currentmember)}, [Accounts].[Trosak kapitala])'
    select
    { [Accounts].[Trosak kapitala],
    [Accounts].[MS1],
    [Accounts].[MS2],
    [Accounts].[MS3]
    } on columns,
    NON EMPTY {crossjoin ({[Grupe proizvoda4]},{[Vrijeme3]})} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [NISE.NISE]
    where ([Segmentacija].[SegmentacijaCustomGroup])
    If you remove part with TODATE function, the results are fine. If you leave TODATE function, OBIEE returns an error mentioned above. If you manually modify variable SOLVE_ORDER and set value to, for example, 100 instead of AGGREGATION_SOLVEORDER, results are OK.
    In all cases when this variable was modified in generated MDX, and query manually executed on Essabse, results were OK. This variable seems to be the possible problem.

    Hi,
    Version is
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Sorry, in my last post i forgot to mention that i already created a function based index but still it is not using because, there is a UNIQUE constraint on that column.
    Thanks

  • I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    The apps can only be run on an iOS device.   They will not run on your PC.

  • After upgrading from 4.6C to ECC 6.0 templates not working in smartform

    Hello,
    After upgrading from 4.6C to ECC 6.0 templates not working properly in smartform, although value is flowing to the point the template is getting called and inside the template there are text elements where placeholders are kept to display the value, when the print is taken there are no values being displayed by the text elements.
    Please note - Text elements doesnot have any conditions present in the condition tabstrip.
    Thanks,
    Abhishek

    Hi,
    After the upgrade, you will have to do the security upgrade.
    Please follow these steps.
    1. Go To SU25
    2. Run step 2A to 2D.
    3. In step 2C, you shall get the list of all the affected roles.
    Click on first role. It will take you to authorizations of that role. Click on the "New" tab there to find the new objects added to the role after the upgrade.
    Note: You can open the same role in the unupgraded system to check.
    4. Provide the access to the required authorization objects.
    5. Disable the unwanted authorization objects.
    6. Generate the profile.
    7. Follow the same steps for all the affected roles listed.
    Please note that you will have a list of new objects added.You need to maintain them inorder to avoid any access issues.
    8. After step 2C, complete 2D.
    Regards,
    Imran

  • My network is not working i am in ghana and i use MTN  network but it is not working why is it like that

    my network is not working i am in ghana and i use MTN  network but it is not working why is it like that... pls get back to me now

    It sounds as if you need to call your mobile carrier.

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • I am trying to connect my old mac desktop and my mac book pro to my new mac desktop to use as monitor but it will not work??

    I am trying to connect my old mac desktop and my mac book pro to my new mac desktop to use as monitor but it will not work??

    Hi ashleydanc588,
    If you are interested in more information on using an iMac in Target Display Mode, including what machines are compatible, you may find the following article helpful:
    Target Display Mode: Frequently Asked Questions (FAQ)
    http://support.apple.com/kb/ht3924
    Regards,
    - Brenden

  • Streaming Audio through Iphone 5 to desktop or laptop using bluetooth preinstalled on all devices not working. Help!!!.

    Streaming Audio through Iphone 5 to desktop or laptop using bluetooth preinstalled on all devices not working. Help!!!. Does anybody else have this problem?. Or does anybody have a solution to the problem. If So please help me its driving me demented seriously concidering to go to android for that sort of stuff cause of the dame restrictions on apple devices!

    iOS devices do not pair with computers, as data transfer over bluetooth is not supported.
    Computers are not airplay compatible unless you have downloaded an app to make them so.
    User to user forum, so I don't care if you switch to android or any other threats you make.

  • The Open URL or File function is not working when I publish as a exe?

    The Open URL or File function is not working when I publish as a exe.  I have tried putting the exe in the same location as the files with no luck.  How do I get the buttons to function properly with a exe file.

    Have you set the Publish folder as a trusted location in Flash Global Security?
    If not, please read this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    It may explain your issue.

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

  • Comments Not Working on Website - published to non-.mac server

    Hi there. I've read on a few non-apple sites of users having trouble with Comments and some other functions of their websites, built in iWeb, not working when they publish to a non-.mac server. I've built my website in iWeb, published via CyberDuck to a BlueHost server -- but now users can not post comments on my blog.
    Has anyone found a way to fix this issue??
    It seems incredibly pointless to even now have my own domain. I'm super close to giving up on iWeb all together because of this ridiculous issue.
    Thanks in advance.
    www.kellerowski.com

    Unfortunately, blog comments are a MobileMe only feature along with the hit counter etc.
    You have to publish to MobileMe if you want these features.
    There are workarounds however. If you want to continue to use an iWeb blog, then you can use a third party comments feature. Take a look here http://www.intensedebate.com. It is free to set up on the site and all you then do is copy and paste the code into an html snippet on the page you want comments to appear in whatever format you want them.
    Your other option is to ditch iWeb and if it is just a blog you want, use something like http://www.wordpress.com. This is free and you don't need a domain name and the blog is published on WordPress servers.
    Your other option for a blog is http://www.posterous.com.
    The iWeb blog system is not that good, so you might look into changing if a blog is what you want rather than a website.

  • Scheduling is not working in BI Publisher

    Hi all,
    I am trying to schedule the report on BI publisher it's giving the following error:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was: localhost:1521:xe (I am using oracle database 10g and obiee 10.1.3.2).
    I have followed the instructions provided in the link "Exploring Advanced Features of Oracle Business Intelligence Publisher"
    Created mail server as instructed in the link ...
    Problems are:
    Unable to connect incoming and outgoing mail servers. I have used my machine host name i.e user as both incoming and outgoing server (u.ser.com)
    also Scheduled jobs are not working in BI publisher.
    Please let me know the solution for the above problem.
    regards
    chandra kanth.

    gurus,
    pls answer the above one, as i am unable to proceed further.
    regards
    chandra kanth.

Maybe you are looking for

  • Applications folder missing in Home folder

    The Application folder is missing in my Home folder. It's still there on the dock. How do I get the folder back (or alias) back in my Home folder. Thanks, -Ed

  • How do I stop Apple TV purchases from automatically downloading to my desktop?

    I bought movies from old Apple TV and every time I upgrade Apps on my desktop iMac it tries to download these movies. i don't want them on my iMac. I have deleted and removed each time mid download, but it keeps trying. I find nowhere that I can stop

  • Mapping in TopLink workbench: Sorting order for one-to-one mapping field

    Hi, we have a requirement; though it is one-to-many relationship, we wanted to map it as one-to-one, so that we get latest of the mappped entity based on attribute:*noOfVisits*. For this, I am trying to make descending order by noOfVisists in workben

  • IOS 8.1.3 install problem

    i I have two 5S's, one installed first time, the other just sits there after agreeing the licence. The only way out appears to be a restart, ther is 14Gb of space and a retry gives no error message. Both phones are 8.1.2 and operate without problems.

  • Formula column right or wrong

    hi frds i just want to know whether this formula colum in report builder is right or wrong function CF_1Formula return Number is X NUMBER; begin SELECT sum(ABS(nvl(TRAN.QUANTITY,0))) INTO X FROM RCV_TRANSACTIONS TRAN,RCV_SHIPMENT_HEADERS RCV,PO_LINES