Problem applying XSL template for Hash calculation.

Hi,
This may not be exactly a Java problem,
I got a problem removing whitespaces in XML via XSL.
My XSL:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:ns1="http://www.serverurl.inf/patterns/dss/schemas">
     <xsl:output method = "text" indent="no" encoding="ISO-8859-1"/>
     <xsl:strip-space elements="*"/>
<xsl:template match="/"><xsl:value-of select="normalize-space(/ns1:messageDSS/ns1:header)"/>
<xsl:value-of select="normalize-space(/ns1:messageDSS/ns1:body)"/>
</xsl:template>
</xsl:stylesheet>This XSL woks fine until I got Strings with duplicate spaces within, like:
<!-- xml fragment -->
   <ns1:tagA>Aaa Aaa</ns1:tagA>     <ns1:tabB>Bb Bbb</ns1:tagB>
   <!-- will be transformed to:  Aaa AaaBb Bbb -->
   <ns1:tagC>Cc  ccc</ns1:tagC>   <ns1:tagD>Ddd    DD</ns1:tagD>
   <!-- will be transformed to: Cc cccDdd DD -->
   <!-- but should be transformed to: Cc  cccDdd    DD -->
   <!-- the within string repeating spaces are removed, and this is not what I want. -->Thanks for any help.

I don't think XSLT/XPath 1.0 has any built-in or easily accessible way to trim the strings the way you want. With XSLT/XPath 2.0 you can use replace(foo, '^\s+|\s+$', ''). With XSLT/XPath 1.0 you will need to check whether an extension function supported by your XSLT processor allows a similar regular expression based replacement or you will need to write your own template trimming the spaces.

Similar Messages

  • Problem applying web template

    We've recently upgraded from SharePoint 2010 to 2013. We created a new site under the 2013 environment then created a template from it. When we try to apply that template to a new site we get the following error:
    Problem applying web template
    It then list the following features as not installed:
    List Feature
    Module Feature
    Web EventReceivers Feature
    Property Bag Feature
    Here is a screenshot of the error
    We haven't noticed any other issue up to this point. Any assistance would greatly be appreciated.
    Thanks,
    Bill

    How many of those as solutions are from CodePlex? I think the property bag one is 
    http://featureadmin.codeplex.com
    It has a 2013 upgrade on 
    http://pbs2013.codeplex.com
    If its unclear what the other features these are, it may be worth running the feature manager. This will potentially enable you to identify and disable those solutions.  The link is 
    http://featureadmin.codeplex.com
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Problem with xsl:template and call-template

    Hi
    in XSQL i am getting one row like this
    <REASON_FOR_REJECTION>1.Overhead line is not existing in front of the premises,2.The distance from the pole to the serice is more than 30 meters.,3.Another service is existing in the same premises with arrears.</REASON_FOR_REJECTION>
    In the above String for every comma i want to put <br>
    the output should come like this:
    1.Overhead line is not existing in front of the premises
    2.The distance from the pole to the serice is more than 30 meters.
    3.Another service is existing in the same premises with arrears
    i have written xsl like this;i am getting this error;
    XSQL-011: Error processing XSLT stylesheet: ../xsl/CMS48_RejectionLetter1.xsl
    (Error) Template 'ROWSET/ROW/REASON_FOR_REJECTION' invoked but not defined.
    wat's wrong with this code?
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java" version="1.0">
    <xsl:template match="/">
    <html>
    <body Class='Ecrm_Body'>
    <xsl:apply-templates/>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="ROW">
    <p>
    <xsl:apply-templates select="REASON_FOR_REJECTION"/>
    </p>
    </xsl:template>
    <xsl:template match="REASON_FOR_REJECTION">
         <xsl:param name="REASON_FOR_REJECTION"/>
    <xsl:variable name="year"
    select="substring-before(.,',')"/>
    <xsl:choose>
    <xsl:when test="string-length($year) > 0">
    <td><xsl:value-of select="$year"/></td>
         <xsl:call-template name="ROWSET/ROW/REASON_FOR_REJECTION">
    <xsl:with-param name="REASON_FOR_REJECTION">
              <xsl:value-of select="substring-after($REASON_FOR_REJECTION,',')"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <td><xsl:value-of select="$REASON_FOR_REJECTION"/></td>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>

    <xsl:call-template name="ROWSET/ROW/REASON_FOR_REJECTION">
    This looks for a template defined like this:
    <xsl:template name="ROWSET/ROW/REASON_FOR_REJECTION">
    not one defined like this:
    <xsl:template match="ROWSET/ROW/REASON_FOR_REJECTION">

  • Problem with xsl:template

    Hi
    in XSQL i am getting one row like this
    <REASON_FOR_REJECTION>1.Overhead line is not existing in front of the premises,2.The distance from the pole to the serice is more than 30 meters.,3.Another service is existing in the same premises with arrears.</REASON_FOR_REJECTION>
    In the above String for every comma i want to put <br>
    the output should come like this:
    1.Overhead line is not existing in front of the premises
    2.The distance from the pole to the serice is more than 30 meters.
    3.Another service is existing in the same premises with arrears
    i have written xsl like this;i am getting this error;
    XSQL-011: Error processing XSLT stylesheet: ../xsl/CMS48_RejectionLetter1.xsl
    (Error) Template 'ROWSET/ROW/REASON_FOR_REJECTION' invoked but not defined.
    wat's wrong with this code?
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java" version="1.0">
    <xsl:template match="/">
    <html>
    <body Class='Ecrm_Body'>
    <xsl:apply-templates/>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="ROW">
    <p>
    <xsl:apply-templates select="REASON_FOR_REJECTION"/>
    </p>
    </xsl:template>
    <xsl:template match="REASON_FOR_REJECTION">
         <xsl:param name="REASON_FOR_REJECTION"/>
    <xsl:variable name="year"
    select="substring-before(.,',')"/>
    <xsl:choose>
    <xsl:when test="string-length($year) > 0">
    <td><xsl:value-of select="$year"/></td>
         <xsl:call-template name="ROWSET/ROW/REASON_FOR_REJECTION">
    <xsl:with-param name="REASON_FOR_REJECTION">
              <xsl:value-of select="substring-after($REASON_FOR_REJECTION,',')"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <td><xsl:value-of select="$REASON_FOR_REJECTION"/></td>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>

    i made this change <xsl:call-template name="ROWSET/ROW/REASON_FOR_REJECTION"> to <xsl:call-template name="REASON_FOR_REJECTION"> and
    <xsl:template match="ROWSET/ROW/REASON_FOR_REJECTION"> to
    <xsl:template name="ROWSET/ROW/REASON_FOR_REJECTION"> ;
    but it is not going into 2nd template whyy??

  • Problem in creating template for the accounting transactions

    Hi,
    suppose for making an entry through fb50 we have to enter g/l a/c no. in that particular field but if some one does not want his end user to make an entry to this field other than putting an entry through his end user he wants system to take the required g/l a/c by default is it possible by creating template for that particular postings? if yes how to generate the template? i have tried to make a template through the recurring entries but not succeeded in that , so please help me.
    Thanking You
    santosh rothe
    9421542585

    You can create a template with a particular account code string from within FB50.
    Make sure you have the tree turned on (Tree On/ Tree Off button toggles display).
    Once you have entered the standard coding, right click on the Account Assignment Template folder to get a popup menu. Select "Save Account Assignment Template". A dialog box will ask you to name the template.
    You can then instruct users to use this template to record this type of transaction.
    However, this does not prevent the user from doing direct entry or changing account code strings. If you have a situation where for a particular combination of accounting elements, whether header or detail, for which the GL should always be a particular value, you can create a substitution rule in IMG which will automatically populate the GL field with the specific GL account value. The IMG transaction is OBBH.

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Problem when using template for new database (ora10g)

    Hi all,
    I've done this a few times now, on different servers weeks apart.
    I have an Oracle 10g install on a Windows Server 2003 box, and I have run the database configuration assistant to create a database. We will have several databases with the exact same setup when I move Oracle 10g to a production environment. I created the database exactly as I need it the first time round, then I save it as a template to use for the next ones. However, when I run the template I get the following error:
    ORA-01501: CREATE DATABASE failed
    ORA-09314: sltln: error translating logical name
    Whats driving me nuts is, if I just go ahead and retype everything back in the same as the last database it works fine, just seems to be the template which is messing me up.
    Heres the template I'm trying to use (hope just pasting it like this is ok.. if not, please some mod remove it and I'll attach it)
    Thanks!
    <DatabaseTemplate name="DCnn" description="" version="10.1.0.2.0">
    <CommonAttributes>
    <option name="ISEARCH" value="false"/>
    <option name="OMS" value="false"/>
    <option name="JSERVER" value="false"/>
    <option name="SPATIAL" value="false"/>
    <option name="ODM" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="IMEDIA" value="false"/>
    <option name="XDB_PROTOCOLS" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="ORACLE_TEXT" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="SAMPLE_SCHEMA" value="false"/>
    <option name="CWMLITE" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="EM_REPOSITORY" value="true">
    <tablespace id="SYSAUX"/>
    </option>
    </CommonAttributes>
    <Variables/>
    <CustomScripts Execute="false"/>
    <InitParamAttributes>
    <InitParams>
    <initParam name="O7_DICTIONARY_ACCESSIBILITY" value="TRUE"/>
    <initParam name="aq_tm_processes" value="1"/>
    <initParam name="background_dump_dest" value="{ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\bdump"/>
    <initParam name="compatible" value="10.1.0.2.0"/>
    <initParam name="core_dump_dest" value="{ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\cdump"/>
    <initParam name="db_block_size" value="8" unit="KB"/>
    <initParam name="db_cache_size" value="24" unit="MB"/>
    <initParam name="db_create_file_dest" value="E:\Oradata"/>
    <initParam name="db_create_online_log_dest_1" value="C:\Oradata"/>
    <initParam name="db_create_online_log_dest_2" value="D:\Oradata"/>
    <initParam name="db_create_online_log_dest_3" value="E:\Oradata"/>
    <initParam name="db_domain" value="JACOBSONCO.COM"/>
    <initParam name="db_file_multiblock_read_count" value="16"/>
    <initParam name="db_name" value="SDC7"/>
    <initParam name="db_recovery_file_dest" value="E:\Oradata\flash_recovery_area"/>
    <initParam name="db_recovery_file_dest_size" value="2048" unit="MB"/>
    <initParam name="fast_start_mttr_target" value="300"/>
    <initParam name="java_pool_size" value="0" unit="MB"/>
    <initParam name="job_queue_processes" value="10"/>
    <initParam name="large_pool_size" value="8" unit="MB"/>
    <initParam name="open_cursors" value="1000"/>
    <initParam name="pga_aggregate_target" value="24" unit="MB"/>
    <initParam name="processes" value="150"/>
    <initParam name="query_rewrite_enabled" value="FALSE"/>
    <initParam name="remote_login_passwordfile" value="EXCLUSIVE"/>
    <initParam name="shared_pool_size" value="80" unit="MB"/>
    <initParam name="sort_area_size" value="524288"/>
    <initParam name="undo_management" value="AUTO"/>
    <initParam name="undo_retention" value="10800"/>
    <initParam name="undo_tablespace" value="UNDOTBS1"/>
    <initParam name="user_dump_dest" value="{ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\udump"/>
    <initParam name="utl_file_dir" value="D:\FileTransfers\Triggers"/>
    </InitParams>
    <MiscParams>
    <databaseType>MULTIPURPOSE</databaseType>
    <maxUserConn>20</maxUserConn>
    <percentageMemTOSGA>40</percentageMemTOSGA>
    <customSGA>true</customSGA>
    <characterSet>WE8MSWIN1252</characterSet>
    <nationalCharacterSet>AL16UTF16</nationalCharacterSet>
    <archiveLogMode>false</archiveLogMode>
    <initParamFileName>{ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\pfile\init.ora</initParamFileName>
    </MiscParams>
    <SPfile useSPFile="true">{ORACLE_HOME}\database\spfile{SID}.ora</SPfile>
    </InitParamAttributes>
    <StorageAttributes>
    <ControlfileAttributes id="Controlfile">
    <maxDatafiles>100</maxDatafiles>
    <maxLogfiles>16</maxLogfiles>
    <maxLogMembers>3</maxLogMembers>
    <maxLogHistory>1</maxLogHistory>
    <maxInstances>8</maxInstances>
    <image name="<OMF_CONTROL_0>" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    <image name="<OMF_CONTROL_1>" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    <image name="<OMF_CONTROL_2>" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    </ControlfileAttributes>
    <DatafileAttributes id="<OMF_DEKINS_DATAFILE_0>">
    <tablespace>DEKINS</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>false</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">-2</increment>
    <maxSize unit="KB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_INDEX_DATA_DATAFILE_0>">
    <tablespace>INDEX_DATA</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>false</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">-2</increment>
    <maxSize unit="KB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_SYSAUX_DATAFILE_0>">
    <tablespace>SYSAUX</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">120</size>
    <reuse>true</reuse>
    <autoExtend>true</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_SYSTEM_DATAFILE_0>">
    <tablespace>SYSTEM</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">300</size>
    <reuse>true</reuse>
    <autoExtend>true</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_TEMP_DATAFILE_0>">
    <tablespace>TEMPORARY_DATA</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">200</size>
    <reuse>true</reuse>
    <autoExtend>true</autoExtend>
    <increment unit="KB">640</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_UNDOTBS1_DATAFILE_0>">
    <tablespace>UNDOTBS1</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">200</size>
    <reuse>true</reuse>
    <autoExtend>true</autoExtend>
    <increment unit="KB">5120</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="<OMF_USERS_DATAFILE_0>">
    <tablespace>USER_DATA</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">50</size>
    <reuse>true</reuse>
    <autoExtend>true</autoExtend>
    <increment unit="KB">1280</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <TablespaceAttributes id="DEKINS">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">-1</initSize>
    <increment unit="KB">-1</increment>
    <incrementPercent>-1</incrementPercent>
    <minExtends>-1</minExtends>
    <maxExtends>-2</maxExtends>
    <minExtendsSize unit="KB">-1</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_DEKINS_DATAFILE_0>">
    <id>1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="INDEX_DATA">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">-1</initSize>
    <increment unit="KB">-1</increment>
    <incrementPercent>-1</incrementPercent>
    <minExtends>-1</minExtends>
    <maxExtends>-2</maxExtends>
    <minExtendsSize unit="KB">-1</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_INDEX_DATA_DATAFILE_0>">
    <id>1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="SYSAUX">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_SYSAUX_DATAFILE_0>">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="SYSTEM">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>3</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>-1</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_SYSTEM_DATAFILE_0>">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="TEMPORARY_DATA">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>true</temporary>
    <defaultTemp>true</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>0</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>0</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_TEMP_DATAFILE_0>">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="UNDOTBS1">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>true</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">512</initSize>
    <increment unit="KB">512</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>8</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">512</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_UNDOTBS1_DATAFILE_0>">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="USER_DATA">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">128</initSize>
    <increment unit="KB">128</increment>
    <incrementPercent>0</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">128</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <datafilesList>
    <TablespaceDatafileAttributes id="<OMF_USERS_DATAFILE_0>">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <RedoLogGroupAttributes id="1">
    <reuse>false</reuse>
    <fileSize unit="KB">10240</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="OMF_1_REDOLOG_MEMBER_0" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="2">
    <reuse>false</reuse>
    <fileSize unit="KB">10240</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="OMF_2_REDOLOG_MEMBER_0" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="3">
    <reuse>false</reuse>
    <fileSize unit="KB">10240</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="OMF_3_REDOLOG_MEMBER_0" filepath="{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\"/>
    </RedoLogGroupAttributes>
    </StorageAttributes>
    </DatabaseTemplate>

    You may need to look into this?
    ORA-09314: sltln: error translating logical name
    Cause: Internal buffer may have overflowed
    Action: See OSD error accompanying this message

  • Problem with square function for a calculator

    i have done this calculator, which does all of the basic functions. but i am having problems setting up the square function. the calculator is setup is that 2 numbers must be entered. but with a sqaure calculation you only need 1 number. how can i set this up?
    this is my current coding:
    <code>
    import java.io.*;
    public class Math
    public static String input="";
    public static void main(String args[]) throws IOException
    BufferedReader getInput = new BufferedReader(new
    InputStreamReader(System.in));
    int len,
    counter=0;
    double number1,
    number2;
    String n1="",
    n2="",
    operation="";
    boolean gotOperation=false;
    System.out.println("Please type an equation (eg. 1+1 and press return key)");
    input = getInput.readLine();
    len=input.length();
    System.out.println("");
    while(counter!=len){
    if(input.charAt(counter)!='+' && input.charAt(counter)!='-' && input.charAt(counter)!='*' && input.charAt(counter)!='/' && input.charAt(counter)!='s' && input.charAt(counter)!='%'){
    if(gotOperation==false){
    n1=n1 + input.charAt(counter);
    counter+=1;
    else if(gotOperation==true){
    n2=n2 + input.charAt(counter);
    counter+=1;
    else{
    operation = input.charAt(counter) + "";
    counter+=1;
    gotOperation = true;
    number1=Double.parseDouble(n1);
    number2=Double.parseDouble(n2);
    if(operation.equals("+")){
    System.out.println(number1 + number2);
    else if(operation.equals("-")){
    System.out.println(number1 - number2);
    else if(operation.equals("*")){
    System.out.println(number1 * number2);
    else if(operation.equals("/")){
    System.out.println(number1 / number2);
    else if(operation.equals("%")){
    System.out.println(number1 / number2 * 100 + "%");
    else if(operation.equals("s")){
    System.out.println(number1 * number1);
    </code>
    below is where square function is linked
    <b>
    else if(operation.equals("s")){
    System.out.println(number1 * number1);
    </b>

    Here's some code, that does the trick, but no NumberFormatException handling, no division ny zero handling and still a bit clumsy.import java.io.*;
    public class Math {
         public static String input = "";
         public static void main(String args[]) throws IOException {
              BufferedReader getInput = new BufferedReader(new InputStreamReader(System.in));
              int len, counter = 0;
              double number1, number2;
              String n1 = "", n2 = "", operation = "";
              boolean gotOperation = false;
              System.out.println("Please type an equation (eg. 1+1 and press return key)");
              input = getInput.readLine();
              len = input.length();
              System.out.println("");
              while (counter != len) {
                   if (input.charAt(counter) != '+'
                        && input.charAt(counter) != '-'
                        && input.charAt(counter) != '*'
                        && input.charAt(counter) != '/'
                        && input.charAt(counter) != 's'
                        && input.charAt(counter) != '%') {
                        if (gotOperation == false) {
                             n1 = n1 + input.charAt(counter);
                             counter += 1;
                        } else if (gotOperation == true) {
                             n2 = n2 + input.charAt(counter);
                             counter += 1;
                   } else {
                        operation = input.charAt(counter) + "";
                        counter += 1;
                        gotOperation = true;
              number1 = Double.parseDouble(n1);
              number2 = 0.; // init
              if (!operation.equals("s")) { //not needed with "s"
                   number2 = Double.parseDouble(n2);     
              if (operation.equals("+")) {
                   System.out.println(number1 + number2);
              } else if (operation.equals("-")) {
                   System.out.println(number1 - number2);
              } else if (operation.equals("*")) {
                   System.out.println(number1 * number2);
              } else if (operation.equals("/")) {
                   System.out.println(number1 / number2);
              } else if (operation.equals("%")) {
                   System.out.println(number1 / number2 * 100 + "%");
              } else if (operation.equals("s")) {
                   System.out.println(number1 * number1);
    }

  • I am having problems applying my update for Illustrator

    Thanks for the suggestion...it worked!  I have the same problem with
    Adobe Illustrator CS6 Update (version 16.0.1)
    Installation failed. Error Code: U44M1P7
    Any solutions?

    Branched this out to a new discussion.  DKMethot please see Installation failed. Error U44M1P7 | Updates - http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html.

  • Apply template for content area page

    Does anybody know how i can apply a template
    for a content area page.
    I have to duplicate everything i did on the template to achive to same look and feel in the content area???????
    !@#$%*grrrrrrrrrrrrrrrrr
    null

    Harish,
    What are you trying to do?
    Are you using an unstructured UI template on your other pages, with release 3.0.8?
    If you are, you could put your presentation code in a stored procedure, and call the procedure within ORACLE tags from the template. For the CA page, call the procedure from a Dynamic Page, and display the Dynamic Page as a portlet on the CA page.
    In a future release we'll be combining portal and CA pages into a single entity, so we won't have these inconsistencies.
    Regards,
    Jerry
    Regards,
    Jerry
    null

  • New RTF Template for Quote Print

    Hi,
    Oracle has provided only XSL Template for Quote Printing. Since Client needs his own format of Quote Printing, Can we create a new Customized RTF template for Quote Printing? or Is there any easy way to do customize the XSL Template?
    Pls advise..
    Thanks in advance,
    Regards,
    Muru
    Message was edited by:
    Muru

    Hi Miru,
    I need ur help.I am working on the same customization of xsl template.can u please guide me through how to work with this.
    I need to customize print quote report
    Can u please tell me the link/steps how to customize the jsp form to replace the standard CP with custom one
    Secondaly,which one option is better ,creating a new rtf/modifying the existing xsl
    and how ?as i dont have any idea about xsl.but i know creatig rtf's
    Please guide me thru.
    Thanks a ton in advance
    kaur

  • Anyone can help?Trying to know the name of a Contract Terms xsl template

    I am trying to change some of the data fields in a Contract. It is not in the Contract Terms part, but in the first page, when I view the Contract via 'Purchase Order' Form > Terms > View Contract Terms and then select Preview Contract. There appears to be three parts, the first page that has the Contractors name, address, tele and email, then the PO on the next page then the Contract Terms on the following pages. It is the address data on the first page (which is taken from the 'Bill-To' on the PO) that I am trying to get from another data source (the DFF on the PO).
    1) What is the name of the xsl template for this first page?
    2) In order to customise this first page, to bring further data into the XML, how is this possible? I understand that the XML is created 'on the fly' and its not possible to obtain this, but is there any way of customising the fields that are put into this XML?
    prasanna
    Edited by: prasamb on Jul 27, 2009 7:58 AM

    xsl template is PO_STANDARD_XSLFO.xsl
    u must know how to code in xsl also
    u can not modify seeded xsl ,so you need to create new xsl-fo template
    Thanks
    Rahul

  • Same template for more than 8 regions in a page

    anyboday can explain how to apply same template for more than 8 regions in a page ?

    Hello,
    You should be able to apply the same template to any number of regions on the page. There is no constraint.
    Carl

  • Problem with xsl:import and xsl:apply-templates select="element_name"

    I import a xsl tranformation into another xsl file.
    During the transformation i want to limit the transformation to certain xml elements using the select attribute in apply-templates. However if I want restrict to xml elements whose templates are defined in the imported file, they will not be called.
    I'm using currently JWSDP1.4 but problem was also with 1.3.
    Can anybody help: Is this not xslt spec compliant or just a bug inXALAN ?
    regards pszawlow

    Solved it by myself:
    the problem was not the import but the following:
    xml file: looks like:
    <a>
       <b>
       </b>
        <c>
        </c>
    </a>xsl file looked like and should omit output of <c> </c>:
    <xsl:template match="/">
    <xsl:apply-templates select="b" />
    </xsl:template>
    <xsl:template match="b">
    </xsl:template>
    However / is not the level <a>, which I thought. So there was no matching <b>.
    I changed the xsl file to:
    <xsl:template match="/">
    <xsl:apply-templates />
    </xsl:template>
    <xsl:template match="a">
    <xsl:apply-templates select="b" />
    </xsl:template>
    <xsl:template match="b">
    </xsl:template>
    and it worked !

  • Xsl template problem generating parameterized link

    I am using an xsql query to generate a list of possible id's. When I apply this to my xsl template, I want to generate an html page with a series of links of the form:
    stylesheet code:
    This is inside of a <xsl:for-each loop.
    When I try to run this xsql query with the xsl template, I get an error saying that &id= is undefined.
    How can I force my style sheet to pass the ampersand through rather than interpreting it as indicating a variable name?

    If what you're saying is you want the &; symbol be be part of your parameter name, then I think you're going to run into trouble. You could build your href like this:
    <xsl:for-each select="XPath/id">
    </xsl:for-each>
    Which is almost exactly what Womisa said. The problem with this is your browser will interpret the &; symbol and treat 'id' as the parameter name. It will just assume that the first parameter after '?' was blank, spot the &; and treat 'id' as the second parameter.
    Following my example from yesterday you could use the concat() function inside the <xsl:value-of select""/>... call to dynamically build your href... but that will still have problems when the browser interprets the &;
    The only other suggestion I have is a bit of a hack... why not use another symbol when you build the href. Then when the href is called (assuming the URL points to an XSL transformed page) use the translate() function at the beginning of this XSL to swap your symbol back to an &;
    null

Maybe you are looking for

  • Problems downloading iTunes after upgrading to Windows 8.1

    I just upgraded to WIndows 8.1. When I opened my iTunes it said there was an update was available. I tried to update my iTunes but kept getting errors. SO i decided to try and download the update later but when I tried to go to the iTunes store I got

  • HT4623 Can the I-Pod 4th generation communicate with TV to be used as a mirror?

    Can the I-Pod 4th generation communicate with TV to be used as a mirror?

  • I had to trash pref files when upgrading to Logic 9

    Started with Logic 7 three years ago... So yesterday I upgraded to Logic 9 from 8, and I had two unusual problems. First, when I would record a track, the waveform overview wouldn't draw. It would make the blue box, with a line down the middle, and I

  • Counter of visit on MobileMe Gallery (pictures)

    How can I place a counter (that counts all the visits) of my .mac or MobileMe Gallery (pictures)? I know it is possible to place a counter on iWeb pages but not on the Gallery. Any suggestion would be mostly apreciated. Alex

  • JDO and EJB

    Parts of our application do not require distributed transactions and security provided by CMP entity beans. Instead, we need to use JDO behind a layer of session beans to provide transparent persistence for Java business object models. Standard JDBC