Xsl:sort not sorting

I tried the example of John Butler.
Source:
<?xml version="1.0" encoding="US-ASCII"?><SortTest>
<SortKey>Allergens</SortKey> <SortKey>Muscle, Skeletal</SortKey> <SortKey>Food Handling</SortKey> <SortKey>Muscle Contraction</SortKey> <SortKey>allergen Blo t 5</SortKey> <SortKey>Food</SortKey> <SortKey>Food Hypersensitivity</SortKey> <SortKey>Muscle</SortKey>
</SortTest>
and XSL:
<?xml version="1.0" encoding="US-ASCII"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" default-space="strip"> <xsl:output indent="no" /> <xsl:template match="/"> <xsl:apply-templates select="*"/> </xsl:template>
<xsl:template match="SortTest"> <xsl:element name="{name(.)}"> <xsl:apply-templates select="SortKey"> <xsl:sort order="ascending" data-type="text" case-order="upper-first" select="."/> </xsl:apply-templates>
<xsl:text>
</xsl:text>
</xsl:element> </xsl:template>
<xsl:template match="SortKey"> <xsl:text>
</xsl:text>
<xsl:copy-of select="."/> </xsl:template></xsl:stylesheet>
and get the (unsorted!) output
<SortTest>
<SortKey>Allergens</SortKey>
<SortKey>Muscle, Skeletal</SortKey>
<SortKey>Food Handling</SortKey>
<SortKey>Muscle Contraction</SortKey>
<SortKey>allergen Blo t 5</SortKey>
<SortKey>Food</SortKey>
<SortKey>Food Hypersensitivity</SortKey>
<SortKey>Muscle</SortKey>
</SortTest>
How do I get XSL:SORT to work?

Here is my results
D:\src\XMLMAP~1>type testsort2.xml
<stuff>
<item>boot</item>
<item>apple</item>
</stuff>
D:\src\XMLMAP~1>type testsort2.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="stuff/item">
<xsl:sort select="."/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="item">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">,</xsl:if>
</xsl:template>
</xsl:stylesheet>
D:\src\XMLMAP~1>..\oraclexml\bin\xslsample testsort2.xml testsort2.xsl
XSL processor sample
Parsing XML file testsort2.xml
Parsing Stylesheet testsort2.xsl
Initializing the result context
XSL Processing
<root>bootapple</root>
D:\src\XMLMAP~1>

Similar Messages

  • XSL:SORT not supported in current XSL-transformator

    In iCS 5.1 the use of the xsl element sort (<xsl:sort>) in an xsl stylesheet does not sort the set of processed nodes (<xsl:for-each ...>) as we would expect it, but simply copies the xsl element <XSL:SORT> to the output stream at every location, where it is defined in the stylesheet (at the start of the output of each processed node) . This behavior is not according the W3C XSLT 1.0 specification. Are there any solutions available?
    Thanks in advance,
    Jakob.

    This question is related to xsl rathar than java/xml.Then it would be better if you asked it in a place where experts in XSL answer questions. Check out the Mulberry mail-list.
    This sort DOES NOT work (used xsl variable in xsl:sort)
    <xsl:for-each select="PerformanceVO">     
    <xsl:sort data-type="number" select="$sortColumn"
    order="ascending"/>
    </xsl:for-each>     I am pretty sure that must be an XSLT FAQ. I haven't looked but I bet you will find it in Dave Pawson's FAQs.

  • Xsl:sort attribute value templates for select and order

    I've tried the xdk_java_9_0_1_0_0.tar.gz update today and for that the reported bugs are still there : one urgent (quite a stopper for us) is this one
    <xsl:template match="/resultlist">
    <xsl:variable name="sortorder">descending</xsl:variable>
    <xsl:variable name="sortfield">name</xsl:variable>
    <xsl:for-each select="result">
    <xsl:sort select="./{$sortfield}" order="{$sortorder}"/>
    <xsl:value-of select="./index"/>,<xsl:value-of select="./name"/>
    </xsl:for-each>
    </xsl:template>
    still it does not replace {$sortfield} and {$sortorder}.

    This is known bug 1798018 in the Oracle XSLT processor.
    The only workaround I can think of is to use <xsl:choose> to optionally use different <xsl:for-each> blocks, one with order="ascending" and one with order="descending" as literal values.

  • Xsl:sort order attribute value template

    I am trying the use the following in XDB 10.1.0.2
    <xsl:sort order="{$myOrder} ...
    It appears that the order attribute does not allow an attribute value template.
    Any suggestions would be appreciated.
    Anthony

    This is known bug 1798018 in the Oracle XSLT processor.
    The only workaround I can think of is to use <xsl:choose> to optionally use different <xsl:for-each> blocks, one with order="ascending" and one with order="descending" as literal values.

  • Xsl:sort or sorting

    Hi all,
    Ineed to use a sorting function in one of the transformations in a BPEL project. The version of BPEL and Jdev i am using is 10.1.3.4
    Is it possible to use xsl:sort? If no, is there any alternative to perform sorting on the xml?
    Regards
    Silas

    It should work as it is supported by xslt 2.0. Please refer to Error: "xsl:sort" XSL Element Currently not Supported in the transform

  • Xsl sort

    This question is related to xsl rathar than java/xml. I would really appreciate if someone could help. The xml document I use is something like this below.
    <Performance>
         <SortInfo>
              <Column>CompletedMeasurement/VinCount</Column>
              <Order>TRUE</Order>
         </SortInfo>
         <PerformanceVO>
              <CompletedMeasurement>
                     <VinCount>35881</VinCount>
              </CompletedMeasurement>
         </PerformanceVO>
         <PerformanceVO>
         <CompletedMeasurement>
         <VinCount>45077</VinCount>
                          </CompletedMeasurement>
         </PerformanceVO>
    </Performance>I have a requirement to use xsl:sort on the xsl to sort this xml document. The sort does not work if use an xsl variable. This is my xsl variable declaration:
    <xsl:variable name="sortColumn" select="/Performance/SortInfo/Column"/>
    This sort works (note that I have NOT used any xsl variable
    <xsl:for-each select="PerformanceVO">     
    <xsl:sort data-type="number" select="CompletedMeasurement/VinCount" order="ascending"/>
    </xsl:for-each>
    This sort DOES NOT work (used xsl variable in xsl:sort)
    <xsl:for-each select="PerformanceVO">     
    <xsl:sort data-type="number" select="$sortColumn" order="ascending"/>
    </xsl:for-each>     

    This question is related to xsl rathar than java/xml.Then it would be better if you asked it in a place where experts in XSL answer questions. Check out the Mulberry mail-list.
    This sort DOES NOT work (used xsl variable in xsl:sort)
    <xsl:for-each select="PerformanceVO">     
    <xsl:sort data-type="number" select="$sortColumn"
    order="ascending"/>
    </xsl:for-each>     I am pretty sure that must be an XSLT FAQ. I haven't looked but I bet you will find it in Dave Pawson's FAQs.

  • Functions in xsl:sort

    Is it possible to use extension functions in the select attribute of xsl:sort? This way I could sort the nodes based on a computed value.
    e.g. <xsl:sort select="myns:myextfunc(ELEM1, ELEM2)">
    I tried using a standard XSL function like
    <xsl:sort select="concat(ELEM1, ELEM2)"/> and it seems to work but when I try to use an extension function it fails.
    TIA
    null

    With XML Parser 9.0.1 Production, this works for me:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ext="http://www.oracle.com/XSL/Transform/java/Ext">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:for-each select="/Employees/Emp">
    <!--
    | Due to a bug, need to declare the extension namespace on
    | the <xsl:sort> element itself.
    +-->
    <xsl:sort data-type="number" order="descending" select="ext:max(Salary,Bonus)"
    xmlns:ext="http://www.oracle.com/XSL/Transform/java/Ext"/>
    <xsl:value-of select="Name"/>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    public class Ext
    public static double max( double n, double m ) {
    return n > m ? n : m;
    <Employees>
    <Emp>
    <Name>B</Name>
    <Salary>10</Salary>
    <Bonus>12</Bonus>
    </Emp>
    <Emp>
    <Name>C</Name>
    <Salary>25</Salary>
    <Bonus>12</Bonus>
    </Emp>
    <Emp>
    <Name>A</Name>
    <Salary>10</Salary>
    <Bonus>2</Bonus>
    </Emp>
    </Employees>If I make sure Ext.class is in my CLASSPATH, and transform the above XML by the above stylesheet, I get:
    CBA
    which is the reverse-numerically-sorted list of max() calculations.

  • Xsl:sort order parameter

    Does the oracle xml parser support this syntax (works with Xalan)
    <xsl:sort order="{$order}" select="sortnode" />
    I need to parameterize the order="ascending/descending". I am sucessfully passing in my parameter (I can output it with <xsl:value-of select="$order"/>), but it doesn't seem to have any effect on the actual sorting.

    This is Bug 1798018. It was supposed to be fixed in 9.0.2C, but
    I just retested it and the problem still persists.
    The order and data-type attributes of <xsl:sort> don't
    behave properly as Attribute Value Templates.

  • XSL - Sort and Group?

    Hello,
    Anyone know if there is a way to do something like this?
    Original XML:
    <item>
    <word>word1</word><num>10</num><num2>9</num2>
    </item>
    <item>
    <word>word2</word><num>5</num><num2>3</num2>
    </item>
    <item>
    <word>word1</word><num>7</num><num2>6</num2>
    </item>
    I want to do something like group on <word> and sort accending on sum(<num>), min(<num2>) and end up with this:
    <item>
    <word>word1</word><num>17</num><num2>6</num2>
    </item>
    <item>
    <word>word2</word><num>5</num><num2>3</num2>
    </item>
    Is this possible?
    thanks,
    chad.

    Here's a start. See Chapter 9 of my book for a complete explanation of how to exploit XSLT keys like database functional indexes to make grouping operations like this be fast in XSLT. It takes a bit to wrap your mind around why and how it works and the book has figures that help illustrate this.
    <!-- chad.xml -->
    <list>
    <item>
    <word>word1</word><num>10</num><num2>9</num2>
    </item>
    <item>
    <word>word2</word><num>5</num><num2>3</num2>
    </item>
    <item>
    <word>word1</word><num>7</num><num2>6</num2>
    </item>
    </list>
    <!-- chad.xsl -->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:key name="g" match="item" use="word"/>
    <xsl:output indent="yes"/>
    <xsl:template match="/">
    <list>
    <xsl:for-each select="list/item[generate-id(.)=generate-id(key('g',word)[1])]">
    <xsl:sort data-type="number" select="sum(key('g',word)/num)"/>
    <xsl:variable name="items-with-same-word" select="key('g',word)"/>
    <item>
    <word><xsl:value-of select="word"/></word>
    <num><xsl:value-of select="sum($items-with-same-word/num)"/></num>
    <num2><xsl:value-of select="sum($items-with-same-word/num2)"/></num2>
    </item>
    </xsl:for-each>
    </list>
    </xsl:template>
    </xsl:stylesheet>This produces the output:
    <list>
    <item>
    <word>word2</word>
    <num>5</num>
    <num2>3</num2>
    </item>
    <item>
    <word>word1</word>
    <num>17</num>
    <num2>15</num2>
    </item>
    </list>

  • ParserException: XMLParser: Prefix 'xsl' is not mapped to a namespace

    Hi
    although I do not think this is an XI problem.. I hope that somebody with more XSLT experience that I might be able to help.
    I have a rather simple XSLT that is used to convert an EXCEL XML document into another XML format.  The XSL that I have worked when I tested it via standalone SAXON or MSXML transformation.
    But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace.
    Here is the top part of the XSL
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:sp="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:of="urn:schemas-microsoft-com:office:office">
    <xsl:output method = "xml"  version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" standalone="no" indent="yes"  />
       <xsl:template match="/">
         <dvabatch>
              <xsl:apply-templates select = "//of:DocumentProperties" />
         </dvabatch>
       </xsl:template>
    .... and so on.....
    and the top part of the XML source
    <?xml version="1.0"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>Peter Munt</Author>
      <LastAuthor>muntp</LastAuthor>
      <LastPrinted>2006-01-30T23:53:27Z</LastPrinted>
      <Created>2003-02-06T18:19:41Z</Created>
      <LastSaved>2006-03-01T03:59:11Z</LastSaved>
      <Company>DVA</Company>
      <Version>10.2625</Version>
    </DocumentProperties>
    <CustomDocum  ....
    ..... and so on .....

    Hi Peter,
    just for clarification:
    You zipped the XSL File and imported it into a Mapping Archive, then assigned the XSL Mapping to an interface mapping and receive the error in the Message Monitoring?
    Is that the case?
    regards,
    Peter

  • Oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'RO

    I'm using the oracle.xml.parser.v2. The files (xml, xsl) are:
    <?xml version="1.0" ?>
    <?xml-stylesheet type="text/xsl" href="king.xsl" ?>
    <ROWSET>
    <ROW>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    </ROW>
    </ROWSET>
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <INVITATION>
    <TO>
    <xsl:value-of select="ROWSET/ROW/ENAME"/>
    <xsl:text> &; FAMILY </xsl:text>
    </TO>
    </INVITATION>
    </xsl:template>
    </xsl:stylesheet>
    The error is: oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'ROWSET'.
    The files are well formed (tested with XML Spy 3.5). Can you see what's the problem? or is it a bug with the parser?
    help,
    Alberto
    null

    I encountered the same problem. When I change the order of the XML and XSL files, i am the same problem.
    Perhaps it's the environment AIX 4.3.3, JDK IBM 1.2.2 with JIT disable (because when JIT is enable some other problems become)??
    How can i resolve this bug ?
    Thanks.
    null

  • XSL-1009: Attribute 'xsl:version'  not found in 'BatchDelivery'.

    I have seen this error in many postings and have never understood just what was being transgressed. I am trying to prepare an xml file for inserting into a table using OracleXML putXML but I never get that far. I have exhausted all my guesses and interpretations of others' postings.
    C:\oracle\Samples\BatchDelivery>oraxsl -debug batchdelivery.xsl batchdelivery.txt out.xml
    Error occurred while processing batchdelivery.txt: file:/C:/oracle/Samples/Batch
    Delivery/batchdelivery.txt<Line 2, Column 83>: XSL-1009: Attribute 'xsl:version' not found in 'BatchDelivery'.
    C:\oracle\Samples\BatchDelivery>
    batchdelivery.xsl:
    <ROWSET xsl.version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/Transform" >
    <xsl:for-each select="BatchDelivery/BatchConfiguration">
    <ROW >
    <KEYCONFIGID><xsl:value-of select="KeyConfigID"/></KEYCONFIGID>
    <CARDREQUIREMENTSID><xsl:value-of select="CARDREQUIREMENTSID"/></CARDREQUIREMENTSID>
    <CARDPRODUCTID><xsl:value-of select="CardProductID"/></CARDPRODUCTID>
    <PHYSICALDESCRIPTIONID><xsl:value-of select="PhysicalDescriptionID"/></PHYSICALDESCRIPTIONID>
    <LOGICALDESCRIPTIONID><xsl:value-of select="LogicalDescriptionID"/></LOGICALDESCRIPTIONID>
    <PACKAGECONFIGID><xsl:value-of select="PackageConfigID"/></PACKAGECONFIGID>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    batchdelivery.xml
    <BatchDelivery xmlns="http://www.activcard.com/xml/ns/acms/batch/1.0" xmlns:xsl="http://www.w3.org/2001/XMLSchema-instance"
    xsl:schemaLocation="http://www.activcard.com/xml/ns/acms/batch/1.0/batch_1.0.xsd">
         <Header>
              <DocID>BD-CAC-0000000001</DocID>
              <Date>2001-06-15T00:00:00</Date>
              <Author>Oberthur</Author>
              <Comment>Batch Delivery sample</Comment>
         </Header>
         <DeliveryPlaceInfo>
              <DeliveryPlaceID>OCS-01</DeliveryPlaceID >
              <OrganizationName>Oberthur</OrganizationName>
              <Address>1600 Vault St</Address>
              <City>Storage City</City>
              <ZipCode>33333</ZipCode>
              <State>CA</State>
              <Country>USA</Country>
              <MainContactPerson>
                   <PersonName>joeDoe</PersonName>
                   <Tel1>1-608-578-5000</Tel1>
                   <Tel2/>
                   <Fax/>
                   <Email>[email protected]</Email>
              </MainContactPerson>
         </DeliveryPlaceInfo>
         <CardManufacturerInfo>
              <CardManufacturerID>Oberthur-01</CardManufacturerID>
              <OrganizationName>Oberthur Card Systems</OrganizationName>
              <Address/>
              <City/>
              <ZipCode/>
              <State/>
              <Country/>
              <MainContactPerson>
                   <PersonName/>
                   <Tel1/>
                   <Tel2/>
                   <Fax/>
                   <Email/>
              </MainContactPerson>
         </CardManufacturerInfo>
         <BatchConfiguration>
         <KeyConfigID>0000000002</KeyConfigID>     <CardRequirementsID>0000000001</CardRequirementsID>
         <CardProductID>0000000002</CardProductID>     <PhysicalDescriptionID>0000000001</PhysicalDescriptionID>
              <LogicalDescriptionID>0000000001</LogicalDescriptionID>
              <PackageConfigID>0000000001</PackageConfigID>
         </BatchConfiguration>
    </BatchDelivery>

    I am cursed by the tendency to mistype whenever I repeatedly cut/paste/test/post! Changing the "." to ":" has no affect whatsoever. I wish it did!
    Mike

  • Xslsample error - xsl:version not found in xsl styleshee

    I am getting the following error when running the example
    xslsample. I am able to run the domexample.
    omor>execute xslsample
    ('d:\orant\xdk\plsql\demo', 'family.xml', 'iden.xsl', 'family.out
    ', 'errors.txt');
    Parsing XML document d:\orant\xdk\plsql\demo/family.xml
    Parsing XSL document d:\orant\xdk\plsql\demo/iden.xsl
    The id is5242880
    The id is5242881
    XSL Root element information
    Qualified Name: xsl:stylesheet
    Local Name: stylesheet
    Namespace: http://www.w3.org/XSL/Transform/1.0
    Expanded Name: http://www.w3.org/XSL/Transform/1.0:stylesheet
    A total of 1 XSL instructions were found in the stylesheet
    BEGIN xslsample
    ('d:\orant\xdk\plsql\demo', 'family.xml', 'iden.xsl', 'family.out
    ', 'errors.txt'); END;
    ERROR at line 1:
    ORA-20100: Error occurred while processing: XSL-1009:
    Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    ORA-06512: at "SYS.XSLPROCESSOR", line 22
    ORA-06512: at "SYS.XSLPROCESSOR", line 346
    ORA-06512: at "SYS.XSLSAMPLE", line 59
    ORA-06512: at line 1

    Hi,
    as I wrote in the inital message, we even left out the output method or used "application/pdf". The result is unfortunately always the same. And I still claim this is not a problem with the stylesheet itself, it has to do something with the mobile's environment.
    Something I didn't tell: we have 2 servlets in our application, 1 responsible for output in html and 1 in pdf. The .fo stylesheet passed to the 'html servlet' is parsed correctly (and shows the source code, because it does not know about fo and conversion to pdf), the .xsl stylesheet passed to the 'pdf servlet' raises same exception/same line. You might tell us that there is a problem with the 'pdf servlet', but once again: why in online it is working?
    Greetings and thanx very much for your precious time!

  • XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'

    I'm just starting to test XML in Oracle 8.1.7 for NT, and received the following error while testing the Oracle provided "xslsample" procedure. I modified the "iden.xls" stylesheet and added version="1.0", but still receive the same error.
    execute xslsample('C:\XML\Sample','family.xml','iden.xsl','family.out','errors.txt');
    Parsing XML document C:\XML\Sample/family.xml
    Parsing XSL document C:\XML\Sample/iden.xsl
    The id is16777216
    The id is16777217
    XSL Root element information
    Qualified Name: xsl:stylesheet
    Local Name: stylesheet
    Namespace: http://www.w3.org/XSL/Transform/1.0
    Expanded Name: http://www.w3.org/XSL/Transform/1.0:stylesheet
    A total of 1 XSL instructions were found in the stylesheet
    BEGIN xslsample('C:\XML\Sample','family.xml','iden.xsl','family.out','errors.txt'); END;
    ERROR at line 1:
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version'
    not found in 'xsl:stylesheet'.
    ORA-06512: at "SCOTT.XSLPROCESSOR", line 22
    ORA-06512: at "SCOTT.XSLPROCESSOR", line 346
    ORA-06512: at "SCOTT.XSLSAMPLE", line 59
    ORA-06512: at line 1
    null

    There is a bug in the demo stylesheet. In iden.xsl the line:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">should instead be:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  • 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

Maybe you are looking for

  • Creative cloud

    Creative cloud icon is in the status bar, but nothing is happening?

  • How do I get Firefox to remember a password after having deleted it from the list of remembered passwords accidentally?

    I had to change my password for gmail and the password manager didn't ask to remember the new one. Now I have to re-type it each time and am wondering if there's some way to get the password manager to store the new one?

  • How to change from LR2 cat to LR3 cat

    Hi all, I have been using LR3 since it came out.  However, my catalog that I use "Lightroom 2 Catalog" was never updated to a "Lightroom 3 Catalog".  Does it matter, if so, how do I manually upgrade? When I backup my catalog, it backs up the catalog

  • My IP address is listed as being 250 miles away

    My IP Address is listed as Harrogate, Yorkshire some 250 miles away from me, is this normal?! It's usually Southampton or Bournemouth, I live 10 miles from Southampton.

  • HTML Conversion

    Hello, I have written a simple ABAP program  which produces a summary list. I am now trying to convert this list into an HTML output. I am using the FM  WWW_LIST_TO_HTML, which seems to be working fine. However, when I look at the html output file I