Stylesheet error

when assigning a stylesheet to the xsql page i get this error
XSQL-011: Error processing XSLT stylesheet: emp.xsl
XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
any help
this is my style sheet
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title>Employee Info</title>
</head>
<body>
<table border="1" cellspacing="0">
<tr>
<th>Employee Name</th>
<th>Salary</th>
</tr>
<xsl:for-each select="ROWSET/ROW">
<tr>
<td><xsl:value-of select="ENAME"/></td>
<td><xsl:value-of select="SAL"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
thanks
null

Copie the following from the EMPDEPT.XSQL file provide by Steve Muench with the new XSQL samples. Note the reference to the stylesheet.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="empdept.xsl"?>
<xsql:query connection="demo" null-attribute-indicator="true" xmlns:xsql="urn:oracle-xsql">
Copied the following from the EMPDEPT.XSL file provided by Steve Muench with the new XSQL samples. Note the 'xsl:version="1.0" entry. I think this is what is missing in your stylesheet.
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0" >
<!-- This is an example of a single-template stylesheet -->
<head><link rel="stylesheet" type="text/css" href="coolcolors.css" />
</head>
<body class="page">
Hope this helps.
Good Luck!
null

Similar Messages

  • Stylesheet error with weblogic application server 9.1

    Hi ALL,
    I deployed my application on weblogic AS 9.1.
    i have created my own domain using sun JDK 1.5.
    i am able to log in into my application & able to do all the tasks.
    but when i click on a specific tab weblogic AS 9.1 waits for some time & give this error on its console :-
    <b>ERROR: 'Variable 'can-modify' is multiply defined in the same scope.'
    FATAL ERROR: 'Could not compile stylesheet'</b>
    i am not find any more details in the weblogic server error log.
    the same application works fine with weblogic 8.1 sp4 + jdk 1.4 & tomcat 5.0.27 + jdk 1.5( without any error)
    so i think the problem is not because of jdk, it something to do with weblogic!
    does anybody has info about this.
    it will be great help.
    regards
    Rahul

    I found that error is coming from this line.
    <b><xsl:variable name="can-modify" select="/dashboard/@can-save|/dashboard/@can-saveas" /></b>
    can somebody suggest why this happening, same code works is weblogic 8.1 & give error in 9.1.
    -Rahul

  • Could not compile stylesheet error on tomcat environment.

    I have created xslt for generating pdf report.It's working fine on OPM when I run through OPM.
    But when I deployed same XSL on tomcat enviroment it doesn't compile error.
    Following the XSLT I have created
    and it give me the error for this line
    i.e ERROR: 'Syntax error in 'name() eq'attribute' '.'
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
    <xsl:if test="name() eq'attribute' ">
              <fo:block margin-left="1cm">
              <xsl:for-each select="@question-text">
              <xsl:value-of select="."/>=
              </xsl:for-each>
              <xsl:if test="string-length(normalize-space(text())) > 0">
                             <xsl:value-of select="text()"/>
                   </xsl:if>
              </fo:block>
    </xsl:if>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>

    Not every xslt parser acts the same, the one in OPM is not so restrictive (unfortunately)
    Try adding a space between eq and 'attribute'.

  • OAM lost pswd mgmt stylesheet issue

    We are getting stylesheet error after making changes to lpm_changepwd.xsl. How do we go about troubleshooting it? We are able to open the the xsl file in IE and see the content.
    Thanks.
    VS

    Hi VS,
    It is very useful to have an xml tool such as XML Spy (there are also free utilities, such as Exchanger) so that you can validate the XSL, and directly see the effect of applying it to XML without using the WebPass/Identity Server.
    To get the XML, you can add the parameter &format=xmlnoxsl to the url in the relevant WebPass page (in this case the Change Password screen) so that you can copy it into the xml tool for testing.
    Regards,
    Colin

  • Applying StyleSheet to a TextArea component

    I'm finding it not possible to attach a style sheet to a
    TextArea component with AS3, V3 component... Is there a workaround,
    maybe accessing the TextAreas' textField..??.

    You'll need to roll out your own TextArea to get around the
    error. Something
    like this:
    package
    import fl.core.UIComponent;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import fl.controls.TextArea;
    public class StylizedTextArea extends TextArea
    public function StylizedTextArea()
    super();
    protected override function drawTextFormat():void {
    // if no style sheet exists, call the super method
    if(textField.styleSheet == null){
    super.drawTextFormat();
    return;
    // This is where the StyleSheeting error occurs. The
    TextField class will
    // not allow a TextFormat to be applied if a StyleSheet
    exists
    // commenting this block seems to fix the error -- needs more
    testing
    var uiStyles:Object = UIComponent.getStyleDefinition();
    var defaultTF:TextFormat = enabled ?
    uiStyles.defaultTextFormat as
    TextFormat : uiStyles.defaultDisabledTextFormat as
    TextFormat;
    textField.setTextFormat(defaultTF);
    var tf:TextFormat =
    getStyleValue(enabled?"textFormat":"disabledTextFormat") as
    TextFormat;
    if (tf != null) {
    textField.setTextFormat(tf);
    } else {
    tf = defaultTF;
    textField.defaultTextFormat = tf;
    setEmbedFont();
    if (_html) { textField.htmlText = _savedHTML; }

  • How to use standard java functions in a XSLT mapping

    Hi All,
    I wish to use a standard java function in a XSLT mapping, The issue is either i am giving incorrect namespace which is used to invoke the function or the signature of the function call is incorrect, I have read all the links in http://help.sap.com, and i know <b> one can enhance a XSLT mapping by writing one's own java code and thereby using java standard functions </b>, but the requirement is such that i need to try and use java standard function in XSLT mapping itself.
    Please refer to the sample code below:
    <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="1.0"  
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:javamap="java:java.lang.String">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:variable name="input" select="Title">
    <xsl:if test="function-available('javamap:toUpperCase')">
    <xsl:value-of select="javamap:toUpperCase($input)"/>
    </xsl:if>
    Author:<xsl:value-of select="Author"/>
    </xsl:template>
    </xsl:stylesheet>
    error encountered is: Illegal number or type of arguments.
    please reply if you have tried a similar scenario in SAP XI.
    Thanks & Regards,
    Varun

    Hi Varun,
        First of all i want to tell you that as per the documentation you can only call the static function inside xslt mapping. Your toUpperCase method is a non static function.
    What i am getting is that you have an element called Author and you want to convert its value into uppercase.
    you can write your own user defined function which is static.
    Signature of your java method :
    public static string toUpperCase(String Author,Map inputparam)
    try this xslt map.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:JavaProgram">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="Author">
                 <xsl:value-of select="//Author_name"/>
         </xsl:param>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <Author>
                 <xsl:if test="function-available('javamap:toUpperCase')">
                  <xsl:value-of select="javamap:toUpperCase($Author,$inputparam)"/>
                 </xsl:if>
         </Author>
         </xsl:template>
    </xsl:stylesheet>
    Hope this will work.
    Thanks and Regards
    Vishal Kumar

  • XSLT for dynamic target field names

    Hello,
    I got a requiremt where I need to create target field names from input values.
    Input XML -
    <?xml version="1.0" encoding="UTF-8"?>
    <Createelement_MT>
    <Field Name="A">
    <Value>1</Value>
    </Field>
    <Field Name="B">
    <Value>1</Value>
    </Field>
    </Createelement_MT>
    Expected OutPut XML -
    <?xml version="1.0" encoding="UTF-8"?>
    <Createelement_MT>
    <Statement><TableName><table>XYZ</table>
    <access>
    <A> 1 </A>
    <B> 2 </B>
    </access>
    </Statement></TableName>
    </Createelement_MT>
    The value of the attribute 'Name' of field 'Field' should be the name of target field.
    XSLT:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="@*|node()">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="Createelement_MT">
    <xsl:element name="statement">
    <xsl:element name="TableName">
    <xsl:element name="table">ABC</xsl:element>
    <xsl:element name="access">
    <xsl:for-each select="Field">
    <xsl:element name="{@Name}">
    <xsl:value-of select="Value"></xsl:value-of></xsl:element></xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    Error:
    Error: at xsl:element on line 15 of file:///......: XTDE0820: Invalid element name. Invalid QName {}
    Please help me with the xslt code for this requirement.
    Thanks!

    Hi,
                Please try this code
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml"/>
         <xsl:template match="/">
              <Createelement_MT>
                   <Statement>
                        <TableName>
                             <table>XYZ</table>
                        <access>
                             <xsl:for-each select="Createelement_MT/Field">
                                  <xsl:variable name="field" select="@Name"></xsl:variable>
                                  <xsl:element name="{$field}">
                                  <xsl:value-of select="Value"></xsl:value-of>
                                  </xsl:element>
                             </xsl:for-each>
                        </access>
                        </TableName>
                   </Statement>
              </Createelement_MT>
         </xsl:template>
    </xsl:stylesheet>
    input xml
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Createelement_MT>
    - <Field Name="A">
      <Value>1</Value>
      </Field>
    - <Field Name="B">
      <Value>1</Value>
      </Field>
      </Createelement_MT>
    output xml
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Createelement_MT>
    - <Statement>
    - <TableName>
      <table>XYZ</table>
    - <access>
      <A>1</A>
      <B>1</B>
      </access>
      </TableName>
      </Statement>
      </Createelement_MT>
    One small request, if you think your question has been answered,could you please kindly, if possible, close this thread.
    regards
    Anupam

  • Current datetime in xslt

    Hi ,
    I want to get the current datetime during my xlst tranform. I used the below codes but can not get it .
    xslt 1.0
    <xsl:stylesheet ...
    xmlns:ex="http://exslt.org/dates-and-times" extension-element-prefixes="ex">
    <xsl:value-of select="ex:date-time()"/> ...
    </xsl:stylesheet>
    error i got: the function date-time() can not be found.
    xlst 2.0
    <xsl:value-of select="current-dateTime()"/>
    error i got : the function current-dateTime() can not be found.
    Does anyone know how i can solve this problem? Any example or suggestion is welcomed.
    Thanks in advance.
    Dennis

    If that piece of xslt has any chance to succeed, you have to do either one of the modification.
    [1] Either you change the version attribute to 2.0. Oracle xslt processor is one of the earliest to get xslt 2.0 support at the time it is still a working draft. I think current-dateTime() xslt 2.0 function should be supported.
    <xsl:stylesheet version="2.0"[2] There are quite a bit of oracle proprietary extensions there. Hence, if you understand the suggestion(s) all along, it should do the task without appealing to the other extensions which may have their own functions to get the current date-time. This is how you should do for a test, keeping the version="1.0" unchanged.
    <xsl:stylesheet version="1.0"
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns0="http://www.example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    exclude-result-prefixes="xsl xsd ns0 xref xp20 bpws ora ehdr orcl ids hwf date ">
    <xsl:template match="/">
    ...etc
    <TimeStamp><xsl:value-of select="date:toString(date:new())"/></TimeStamp>
    ...etc
    </xsl:template>

  • XSLT - html table problem

    Hi,
    I'm having a real problem with trying to get my xslt stylesheet to produce a html table.
    I want the table to look something like the following:
    |radio-button description | radio-button description |
    |radio-button description | radio-button description |
    |_________________________________________|
    So that each table row has the following:
    <tr><td>radio-button</td><td>decsription</td>
    <td>radio-button></td><td>description</td></tr>
    The code in the stylesheet is as follows:
    <CODE>
    <xsl:template match="table-RdbDataOptions2" >
    <!-- Add the data options and user info -->
    <table width="100%" border="0" align="left">
              <xsl:for-each select="td">
    <tr>
                   <td colspan="2">
                             <xsl:choose>
                                  <xsl:when test="position()=1">
                                       <div align="left" class="subheading"><xsl:value-of select="." /></div>
                                  </xsl:when>
                                  <xsl:when test="position()=2">
                                       <div align="left"><xsl:value-of select="." /></div>
                                  </xsl:when>
                             </xsl:choose>
                        </td>
                   </tr>
              </xsl:for-each>
    <!-- now build a 2x row/2x cell table-->
    <xsl:for-each select="rdb-DataOption">
    <xsl:choose>
    <xsl:when test="not(@recfav='')">
    <xsl:choose>
    <!-- when an uneven number, start a new table row. Add unevens to this row -->
    <xsl:when test="position() mod 2=1">
    <tr>
    <xsl:choose>
    <xsl:when test="@dataseriescheck=''">
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@aggregatecheck=''">
    <td> <input type="radio" name="rdbDataOptions" value="aggregate" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:when><!-- end of test position() mod 2 = 1 -->
    <xsl:otherwise><!-- Add new row for even numbers -->
    <tr>
    <xsl:choose>
    <xsl:when test="@cummulativecheck=''">
    <td> <input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@averagecheck=''">
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:otherwise><!-- end of adding new row for even numbers -->
    </xsl:choose>
    </xsl:when>
    </xsl:choose><!-- end of check for not recents -->
    <xsl:otherwise><!-- Recent -->
    <xsl:choose>
    <!-- when an uneven number, start a new table row. Add unevens to this row -->
    <xsl:when test="position() mod 2=1">
    <tr>
    <xsl:choose>
    <xsl:when test="@dataseriescheck=''">
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@aggregatecheck=''">
    <td><input type="radio" name="rdbDataOptions" value="aggregate" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOptions" value="series" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:when><!-- end of test position() mod 2 = 1 -->
    <xsl:otherwise><!-- Add new row for even numbers -->
    <tr>
    <xsl:choose>
    <xsl:when test="@cummulativecheck=''">
    <td><input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td> <input type="radio" name="rdbDataOption" value="cummulative" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    <xsl:when test="@averagecheck=''">
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:when>
    <xsl:otherwise>
    <td><input type="radio" name="rdbDataOption" value="Average" disabled="disabled" checked="checked"/></td>
    <td><div align="left"><xsl:value-of select="." /></div></td>
    </xsl:otherwise>
    </xsl:choose>
    </tr>
    </xsl:otherwise><!-- end of adding new row for even numbers -->
    </xsl:choose>
    </xsl:otherwise>
    </xsl:for-each>
    </table>
    </xsl:template>
    </CODE>
    The jsp creates the table in the following way:
    <CODE>
    <table-RdbDataOptions2>
    <td><%=Lang.get("DataOptions", User.getPrimary(), User.getFallback())%></td>
    <td><%=Lang.get("SelectDataOption", User.getPrimary(), User.getFallback())%></td>
    <rdb-DataOption recfav="<%=strDisabled %>" dataseriescheck="<%=strDataOption[0] %>" ><%=Lang.get("ShowDataSeries", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" cumulativecheck="<%=strDataOption[1] %>" ><%=Lang.get("ShowCumulative", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" aggregatecheck="<%=strDataOption[2] %>" ><%=Lang.get("ShowAggregate", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    <rdb-DataOption recfav="<%=strDisabled %>" averagecheck="<%=strDataOption[3] %>" ><%=Lang.get("ShowDataSeriesAverage", User.getPrimary(), User.getFallback())%></rdb-DataOption>
    </table-RdbDataOptions>
    </CODE>
    The following is the error I'm receiving:
    javax.servlet.jsp.JspException: Error applying stylesheet..........
    I can easily produce a table with like this:
    |radio button description |
    |radio button description |
    |radio button description |
    |radio button description |
    |____________________|
    but unfortunately that's not what's req'd!
    Any help is disciplining the above stylesheet so that it does what its told would be greatly appreciated.
    Yours, with respect!
    Eddie.

    Well,
    Funny how just looking at your own posting can highlight pretty obvious errors.
    The reason for the stylesheet error msg was that the opening & closing table tags in the jsp didn't match!
    However, I now get an almost empty table. I get the table headers - in other words, this part of the stylesheet is working properly:
    <CODE>
    <xsl:for-each select="td">
    <tr>
                   <td colspan="2">
                             <xsl:choose>
                                  <xsl:when test="position()=1">
                                       <div align="left" class="subheading"><xsl:value-of select="." /></div>
                                  </xsl:when>
                                  <xsl:when test="position()=2">
                                       <div align="left"><xsl:value-of select="." /></div>
                                  </xsl:when>
                             </xsl:choose>
                        </td>
                   </tr>
              </xsl:for-each>
    </CODE>
    But the rest is returning 'empty'. So, it nows seems that one or more of my tests is not working properly.
    Onwards & upwards,
    Eddie

  • XSLT document function issue

    I have XSL transformation using document() function to combine xml docs, using Oracle 10.2.0.2.
    <xsl:for-each select="document('/export/home/myunixdirectory/Products.xml')/PRODUCTS">
    When I run DBMS_XSLPROCESSOR.processXSL(proc, ss, document_in); I get error
    ==============
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    ==============
    Products.xml is valid, tried it with no unix directory specified, etc., no luck. Also have commented out section related to document function and code works, so it is related to this document processing in the Oracle XSL processor. The transformation works in XMLSPY (pointing to files on local drive).
    Any ideas on how to get this to work?

    Here's more info in case anyone wants take a crack at guessing what's wrong. I've tried a bunch of different methods for document() function, at this point I am nearly convinced it is not supported by the Oracle XSL processor.
    Products.xml...
    <?xml version="1.0" encoding="UTF-8"?>
    <PRODUCTS>
         <PRODUCT>
              <BRAND_CODE>11111</BRAND_CODE>
              <BRAND_NAME>SOMETHING HERE</BRAND_NAME>
              <GRADE>P</GRADE>
         </PRODUCT>
    </PRODUCTS>
    XSL file (simplified)…in same directory as Products.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
         <xsl:variable name="geterrorwhenrun" select="document('Products.xml')"/>
         <xsl:template match="/REGION">
              <REGION>
                   <xsl:attribute name="xsi:noNamespaceSchemaLocation">any.xsd</xsl:attribute>
              </REGION>
         </xsl:template>
    </xsl:stylesheet>
    Error I get...
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    PL/SQL Code...
    -- parse xsl file
    DBMS_XMLPARSER.parse(p, xslfile);
    -- get document
    xsldoc := DBMS_XMLPARSER.getDocument(p);
    -- make stylesheet
    ss := DBMS_XSLPROCESSOR.newStylesheet(xsldoc, xslfile);
    proc := DBMS_XSLPROCESSOR.newProcessor;
    DBMS_XSLPROCESSOR.showWarnings(proc, true);
    docfrag := DBMS_XSLPROCESSOR.processXSL(proc, ss, document_in);
    -- GET ERROR on line above, however if I comment out the geterrorwhenrun variable line, transform works

  • Problem using CSS in Flash MX 2004

    While working through a tutorial using Flash MX 2004 and CSS
    StyleSheets, publishing the page produces the error below each time
    I attempt to publish the page and I am unable to continue. There
    doesn't seem to be a problem with the code, and the TextField.as
    file is in the location where this error indicates that it is not.
    Can anyone help?
    //********************************* Error Message
    **Error** C:\Documents and Settings\Administrator\Local
    Settings\Application Data\Macromedia\Flash MX
    2004\en\Configuration\CLASSES\TextField.as: Line 47: The class
    'TextField.StyleSheet' could not be loaded.
    var styleSheet:TextField.StyleSheet;
    **Error** Scene=Scene 1, layer=a, frame=1:Line 4: The class
    'TextField.StyleSheet' could not be loaded.
    var cssStyles:TextField.StyleSheet = new
    TextField.StyleSheet ();
    Total ActionScript Errors: 2 Reported Errors: 2
    //********************************* /Error Message
    //-------------------------- The code that produces the error
    var cssStyles:TextField.StyleSheet = new TextField.StyleSheet
    cssStyles.load("styles/styles.css");
    cssStyles.onLoad = function (success) {
    if (success) {
    loadedInfo.styleSheet = cssStyles;
    } else {
    loadedInfo.text = "There has been an error loading the
    requested information. Please contact the Webmaster and report your
    error.";
    //-------------------------- /The code that produces the
    error ----------------------\\
    TX!
    David Marion
    Email: [email protected]

    I found the problem!!
    While exploring the Fireworks MX 2004 folder located under
    "C:\Documents and Settings\USER\Application Data\Macromedia\"
    folder I discovered that this folder was empty. So, I connected the
    old hard drive and investigated the contents of the corresponding
    folder on that drive. Discovering the wide assortment of files and
    folders in that folder, I simply copied the contents of that folder
    to the Fireworks MX 2004 folder and retried running the application
    and IT WORKED!
    Thanks for all your communications and in depth
    troubleshooting steps, I will keep them in may Application
    troubleshooting Tool Tips for future reference. I have included the
    actions used here which brought about the successful resolution of
    this issue so that if you'd like you might include them in any Help
    Desk Methods you may have. It was truly a collaborative effort
    because I would not have thought to explore the Application Data
    folder to resolve this issue without you pointing me in that
    direction.
    Thanks again!

  • XSL-1009 XSL:Version

    The following xsl sample will translate with ORAXSL without errors in one of my docs:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <xsl:value-of disable-output-escaping="yes" select="'&lt;?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?&gt;'"/>
    <xsl:element name="Order">
    <xsl:element name="OrderHeader">
    <xsl:call-template name="parsePOHeader">
    <xsl:with-param name="HEADER" select="//POHEADER"/>
    <xsl:with-param name="ProcessPO" select="'Y'"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:if test="count(//POLINE) &gt; 0">
    <xsl:element name="OrderDetail">
    <xsl:element name="ListOfItemDetail">
    <xsl:for-each select="//POLINE">
    <xsl:call-template name="parseLINE">
    <xsl:with-param name="LineItem" select="."/>
    </xsl:call-template>
    </xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    <xsl:call-template name="createOrderSummary">
    <xsl:with-param name="NumLines" select="count(//POLINE) + count(//POSUBLINE)"/>
    <xsl:with-param name="Amount" select="//POHEADER/OPERAMT[@qualifier='EXTENDED' and @type='T']"/>
    </xsl:call-template>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    The following xsl with the same stylesheet statement errors out.
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <xsl:value-of disable-output-escaping="yes"
    select="'&lt;?soxtype
    urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.so
    x$1.0?&gt;'"/>
    <xsl:element name="Order">
    <xsl:element name="OrderHeader">
    <xsl:call-template name="parsePOHeader">
    <xsl:with-param name="HEADER"
    select="//POHEADER"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:if test="count(//POLINE) &gt; 0">
    <xsl:element name="OrderDetail">
    <xsl:element name="ListOfItemDetail">
    <xsl:for-each select="//POLINE">
    <xsl:call-template name="parseLINE">
    <xsl:with-param name="LineItem"
    select="."/>
    </xsl:call-template>
    </xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    <xsl:call-template name="createOrderSummary">
    <xsl:with-param name="NumLines"
    select="count(//POLINE) + count(//POSUBLINE)"/>
    <xsl:with-param name="Amount"
    select="//POHEADER/OPERAMT[@qualifier='EXTENDED' and
    @type='T']"/>
    </xsl:call-template>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    ERROR:
    A nonfatal internal JIT (3.10.107(x)) error 'GetRegisterA' has occurred in :
    'oracle/xml/parser/v2/XSLNodeList.indexOf (Lorg/w3c/dom/Node;)I': Interpreting method.
    Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
    oracle.xml.parser.v2.XSLException: XSL-1016: Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
    Error occurred while processing OAGIShowPONeal.xml: XSL-1016: Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
    I made the suggested change to the XSL
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="'http://www.oracle.com/XSL/Transform/java/" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">.
    And I get the following error:
    Error occurred while processing ORATransformShowPO.xsl: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    I searched Technet.oracle.com for an explanation. According to Steve Muench, 7/24/2000, I need to use the following : <xsl:stylesheet version="1.0" xmlns:xsl=" " target="_new">http://www.w3.org/1999/XSL/Transform">
    This makes no sense because it has an odd number of quotes and > symbols but I tried it. I have the same error, again.
    Can anyone make sense of this?
    Big Hurrah for the solution!

    I typed the words "turn off jit" into Google and came up with a link like:
    http://java.apache.org/faq/fom-serve/cache/152.html
    that might help.

  • Mismatch in themes of WD called from BSP iview in EP.

    Hello All,
    in my BSP iview, i am calling a webdynpro abap application using iframe tag in the BSP application and passing the url of WDA application .
    but the EP theme is diiferent (green color) and the WD has different theme (Blue color).
    is there any solution to have a same theme for the WD application when displayed in EP???
    please let me know.
    Regards,
    Chandra

    Hi,
    with note 1033496 you prevent the Stylesheet Errors,but i guess you will also get the Blue Theme inside the BSP-Iframe. If you can use the Portal Stylesheet for the WD-Iview without Limitations described in the Note perhaps also try this:
    Instead of using the WD-URL as IFRAME source in the BSP perhaps use the URL of a WD-IView.For that you first have to create an Iview for your WD-Application.Then call the preview of this Iview. This Preview-URL(or the PCD) you can call as source inside the BSP IFRAME. I haven't tried it but perhaps then the WD will be displayed inside the BSP-IFrame with your grey Portal Stylesheet because you are calling the Iview directly instead of the WD-APP in the BSP.
    Regards
    Frank

  • Infopath SharePoint Library

    Hello.
    I have an InfoPath SharePoint Library. I have just released it for lots of senior managers to review and it has suddenly had a lot of errors appearing, it was perfect this morning.
    1) This appears in multiple browser when I try to view the document (form) library. However sometimes I refresh and it works perfect and others the message reappears. It does seem to help most of the time if I clear the cache. (Ctrl + F5).
    "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Correlation ID:feb7c97a-dd49-4e6a-8d65-b0b2171afdc8"
    2) So I open up SharePoint Designer and where the web part is meant to be it says.
    "This Web Part does not have a valid XSLT stylesheet:Error: Reference to undefined entity 'nbsp'.
    I have used the search function to search the code, (which I haven't touched or written at all) and it only finds '&nbsp;' as it should do?
    Please help this is urgent.
    Thank you very much for your answers in advance.

    Hmm. I can't gather much from this as to what it may be. I will say that &nbsp means a space. I found the below and it is suggesting to change &nbsp to &#160.
    http://sharepoint.stackexchange.com/questions/43912/unable-to-display-this-web-part-to-troubleshoot-the-problem-open-this-web-page
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • URL Redirect to DataSheet View

    I've created a custom form with a custom SharePoint control button.   I want this button to save the form, close the form, and open from the original window in the datasheet view mode.   I am having a hard time knowing what script to
    use to get this to happen.   The script below does everything I need except open in datasheet mode, instead it's opening in standard view.  Any help with the remaining/missing code would be greatly appreciated.
    onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirectsource={AllItems.aspx?ShowInGrid=True;View=%7BDC3DA0C3%2DB504%2D4399%2D81B6%2D577362AFCFF6%7D;InitialTabId=Ribbon%2EList;VisibilityContext=WSSTabPersistence')}" />

    I've created a custom form with a custom SharePoint control button.   I want this button to save the form, close the form, and open from the original window in the datasheet view mode.   I am having a hard time knowing what script to
    use to get this to happen.   The script below does everything I need except open in datasheet mode, instead it's opening in standard view.  Any help with the remaining/missing code would be greatly appreciated.
    onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirectsource={AllItems.aspx?ShowInGrid=True;View=%7BDC3DA0C3%2DB504%2D4399%2D81B6%2D577362AFCFF6%7D;InitialTabId=Ribbon%2EList;VisibilityContext=WSSTabPersistence')}" />
    Have you tried &amp; in stead of & in the url?
    Giving the following script:
    onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={AllItems.aspx?ShowInGrid=True&amp;View=%7BDC3DA0C3%2DB504%2D4399%2D81B6%2D577362AFCFF6%7D&amp;InitialTabId=Ribbon%2EList&amp;VisibilityContext=WSSTabPersistence}')}"
    Jeroen Molenaar
    Jeroen
    Using &amp gives me the error just like using & 
    This web part does not have valid XSLT stylesheet: Error Require white space was missing.                                                                                                                                                                                                           

Maybe you are looking for

  • How can I save my open tabs when I close FF4. FF3 gave me the option to save and quit when closing.

    I use multiple tabs every day and they are for the most part the same tabs on Fire Fox 3.6. When I closed my FF3 at the end of the day I had the option of saving my tabs so the would open again the next day. On FF4 I no longer have this option. Now i

  • Exporting data from DB to a XML file (in InDesign CS3)

    Hi folks, I receive my data from a call to a database in InDesign, then I need to save them in XML file in my local drive, I use Mac OS X but I want to use the same code (as much as possible) shared with the same version of plugin on Windows. I also

  • XSLT transformation error when importing target group in CRM Survey cockpit

    Hi, I created a target group using the segment builder and exported that to a local file. Then when creating a survey using CRM survey cockpit (tcode: SURVEY) and trying to import the same target group from the local file; I get an error : "Error whe

  • Can I export an iPhoto album as thumbnails?

    Let's say I have an iPhoto album of 200 jpeg pictures.  When I highlight the album in the left sidebar of the iPhoto page, all the pictures display as thumbnails. I want to remove the pictures from iPhoto and put them on a DVD or CD-R.  This is no pr

  • How to create clickable (drill down) Graphs

    Hi Experts, I have a requirement in which i want to create clickable(drill down) graph/pie chart. I saw SAP standard program "GRAPHICS_IGS_CE_TEST". It works fine for graph display but it doesn't provide any drill down option, Although it has some ev