Should whitespace be preserved by default?

Hi:
I'm using xmltype.transform() to apply a stylesheet to an XML document and it seems to be ignoring whatever attempts I make to have spaces in certain places. Is the default to strip spaces out? I've even tried adding preserve-whitespace in the stylesheet though I think it may be deprecated. This didn't fix things either.
Here's the procedure that loads the data and applies the transform.
PROCEDURE GetSQLQueryFromXML(XMLClob in CLOB, XSLStylesheet in CLOB,
            SQLQuery out CLOB) IS
    -- Define the local variables
  xmldata               sys.XMLType ;  -- The XMLType format of the XML to transform
  xsldata               sys.XMLType ;  -- The XMLType format of the stylesheet to apply
  sqlQuery_XMLType      sys.XMLType ;  -- The XMLType format of the SQL query.
  --v_SQLQuery            Clob;     -- Holds XML Clob
BEGIN
  -- Get the XML document using the getXML() function defined in the database.
  -- Since XMLType.transform() method takes XML data as XMLType instance,
  -- use the XMLType.createXML method to convert the XML content received
  -- as CLOB into an XMLType instance.
  xmldata := XMLType.createXML(XMLClob);
  -- Since XMLType.transform() method takes an XSL stylesheet as XMLType instance,
  -- use the XMLType.createXML method to convert the XSL content received as CLOB
  -- into an XMLType instance.
  xsldata := XMLType.createXML(XSLStylesheet);
  -- Use the XMLtype.transform() function to get the transformed XML instance.
  -- This function applies the stylesheet to the XML document and returns a transformed
  -- XML instance.
  -- DBMS_XMLGEN.CONVERT() is being used as a work around to an Oracle bug that
  -- prevented us from being able to surround text strings with apostrophes for
  -- searches.  dbms_xlmgen.convert returns a Clob which is what we want anyway.
  -- The bug is supposedly fixed in Oracle 11g.
  if(xmldata is null) then
    dbms_output.put_line('*** xmldata is null!!!');
  end if;
  if(xsldata is null) then
    dbms_output.put_line('*** xsldata is null!!!');
  end if;
  SQLQuery := dbms_xmlgen.convert(xmldata.transform(xsldata).getStringVal(),
                dbms_xmlgen.ENTITY_DECODE);
END GetSQLQueryFromXML;What I'm trying to do is transform some XML into a SQL query string. I'm losing whitespace though so in certain cases (using LIKE or NOT LIKE) it generates improper SQL. This isn't an Oracle XML thing because I get the same error when working in a "playground" site. ( http://www.paulchaplin.com/lab/xslt/ pretty handy!)
My test XML file is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<variable type="QueryContent">
  <queryType><![CDATA[PERSON]]></queryType>
  <tableName><![CDATA[PERSON]]></tableName>
  <queryItem>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[PERSON_KEY]]></columnName>
    <fieldName><![CDATA[PERSON_KEY]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[INTEGER]]></fieldType>
    <value><![CDATA[8901234]]></value>
  </item>
  <item>
    <distinct><![CDATA[true]]></distinct>
    <columnName><![CDATA[LAST_NAME]]></columnName>
    <fieldName><![CDATA[LAST_NAME]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[SMITH]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[FIRST_NAME]]></columnName>
    <fieldName><![CDATA[FIRST_NAME]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[JANE]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[MIDDLE_NAME]]></columnName>
    <fieldName><![CDATA[MIDDLE_NAME]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[MIDNAME]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[SUFFIX_NAME]]></columnName>
    <fieldName><![CDATA[SUFFIX_NAME]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[MS]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[FULL_NAME]]></columnName>
    <fieldName><![CDATA[FULL_NAME]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[SMITH, JANE]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[EMPLOYER_ORG_CODE]]></columnName>
    <fieldName><![CDATA[EMPLOYER_ORG_CODE]]></fieldName>
    <criteria></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value />
  </item>
  <item>
    <distinct><![CDATA[true]]></distinct>
    <columnName><![CDATA[SSN]]></columnName>
    <fieldName><![CDATA[SSN]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[222222222]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[GRADE_CODE]]></columnName>
    <fieldName><![CDATA[GRADE_CODE]]></fieldName>
    <criteria></criteria>
    <fieldType><![CDATA[PICKLIST]]></fieldType>
    <value/>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[POB_CITY]]></columnName>
    <fieldName><![CDATA[POB_CITY]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[PASCAGOULA]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[POB_COUNTY]]></columnName>
    <fieldName><![CDATA[POB_COUNTY]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[JACKSON]]></value>
  </item> 
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[POB_STATE_CODE]]></columnName>
    <fieldName><![CDATA[POB_STATE_CODE]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[PICKLIST]]></fieldType>
    <value><![CDATA[MS]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[POB_COUNTRY_CODE]]></columnName>
    <fieldName><![CDATA[POB_COUNTRY_CODE]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[USA]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[BIRTH_DATE]]></columnName>
    <fieldName><![CDATA[BIRTH_DATE]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[DATE]]></fieldType>
    <fieldFormat>DD-MON-YYYY</fieldFormat>
    <value><![CDATA[11-NOV-1911]]></value>
  </item>
  <item>
    <distinct><![CDATA[false]]></distinct>
    <columnName><![CDATA[SX]]></columnName>
    <fieldName><![CDATA[SX]]></fieldName>
    <criteria><![CDATA[=]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA[F]]></value>
  </item>
  <item>
    <distinct><![CDATA[true]]></distinct>
    <columnName><![CDATA[SITE_CODE]]></columnName>
    <fieldName><![CDATA[SITE_CODE]]></fieldName>
    <criteria><![CDATA[NOT LIKE]]></criteria>
    <fieldType><![CDATA[STRING]]></fieldType>
    <value><![CDATA]></value>
</item>
<item>
<distinct><![CDATA[false]]></distinct>
<columnName><![CDATA[JOB_TITLE]]></columnName>
<fieldName><![CDATA[JOB_TITLE]]></fieldName>
<criteria><![CDATA[LIKE]]></criteria>
<fieldType><![CDATA[STRING]]></fieldType>
<value><![CDATA[CLERK]]></value>
</item>
</queryItem>
</variable>
My XSL file is:<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
<!-- IF there are any column flagged as distinct, we'll be doing selecting -->
<!-- just those columns with DISTINCT from the general query. -->
<!-- Generate the DISTINCT outer query first, if there is one. Then generate -->
<!-- the query that will always be generated. Then close the outer query if -->
<!-- there is one. -->
<xsl:preserve-space elements="*" />
<xsl:variable name="aspace"> </xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="." mode="distincts"/>
<xsl:apply-templates select="." mode="normal"/>
<xsl:apply-templates select="." mode="closeDistincts"/>
</xsl:template>
<!-- If there are any column flagged with DISTINCT we'll create an outer query -->
<xsl:template match="/" mode="distincts">
<xsl:for-each select="/variable/queryItem/item/distinct[text() = 'true']">
<xsl:variable name="distinctCount" select="position()" />
<xsl:if test="$distinctCount = 1">
<xsl:text>SELECT DISTINCT </xsl:text>
</xsl:if>
<xsl:if test="$distinctCount &gt; 1">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:value-of select="../columnName"/>
</xsl:for-each>
<!-- If we had any DISTINCT elements, generate the "FROM (" clause. -->
<xsl:if test="count(/variable/queryItem/item/distinct[text() = 'true']) > 0">
<xsl:text> FROM (</xsl:text>
</xsl:if>
</xsl:template>
<!-- If we did a DISTINCT outer query then we need to close it with a ')' -->
<xsl:template match="/" mode="closeDistincts">
<xsl:for-each select="/variable/queryItem/item/distinct[text() = 'true']">
<xsl:variable name="distinctCount" select="position()" />
<xsl:if test="$distinctCount &lt; 2">
<xsl:text>) </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- This will generate a query. It may or not be an inner query. -->
<xsl:template match="/" mode="normal">
<xsl:variable name="apos">'</xsl:variable>
select * from
<xsl:value-of select="/variable/tableName"/>
where 1=1
<xsl:for-each select="variable/queryItem/item">
<xsl:choose>
<!-- if the value node is not null... -->
<!-- <xsl:when test="./value/text()[normalize-space(.)]"> -->
<xsl:when test="./value/text()">
AND
<xsl:value-of select="./fieldName"/>
<xsl:copy-of select="$aspace"/><xsl:value-of select="./criteria"/><xsl:copy-of select="$aspace"/>
<xsl:choose>
<xsl:when test="string(./fieldType)='NUMBER'">
<xsl:value-of select="./value"/>
</xsl:when>
<xsl:when test="string(./fieldType)='INTEGER'">
<xsl:value-of select="./value"/>
</xsl:when>
<xsl:otherwise>
<!-- Type is something that we treat as a string compare. -->
<!-- Currently those types are String, CLOB, RADIO and PICKLIST -->
<xsl:copy-of select="$apos"/>
<xsl:value-of select="./value"/>
<xsl:copy-of select="$apos"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Not how the last two predicates need spaces around the operators.  It doesn't matter when the operator is "=" or ">" but "LIKE" and "NOT LIKE" mess things up when trying to run the generated SQL.SELECT DISTINCT LAST_NAME, SSN, SITE_CODE FROM (
select * from
PERSON
where 1=1
AND
PERSON_KEY=8901234
AND
LAST_NAME='SMITH'
AND
FIRST_NAME='JANE'
AND
MIDDLE_NAME='MIDNAME'
AND
SUFFIX_NAME='MS'
AND
FULL_NAME='SMITH, JANE'
AND
SSN='222222222'
AND
POB_CITY='PASCAGOULA'
AND
POB_COUNTY='JACKSON'
AND
POB_STATE_CODE='MS'
AND
POB_COUNTRY_CODE='USA'
AND
BIRTH_DATE='11-NOV-1911'
AND
SX='F'
AND
SITE_CODENOT LIKE'B'
AND
JOB_TITLELIKE'CLERK')
Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

This thread may help : Oracle XSLT Transformation not preserving space in text element [Oracle XSLT Transformation not preserving space in text element: A Workaround]

Similar Messages

  • I don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help?

    i don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help? I have even uninstalled and reloaded firefox
    == This happened ==
    Every time Firefox opened
    == My wife hit a button and doesn' know what happened

    See if this helps. View > Toolbars, if no check beside Navigation Bar, click on Navigation Bar to check it.
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(~~red:Linux & OSX see~~: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M then release the key
    <u>''Windows'' Method 2.</u> Tap once on the F10 key, while the Menu bar is visible, choose "View > Toolbars", click "Menu Bar" so that a check mark is placed next to Menu Bar
    <u>''Windows'' Method 3.</u> Tap once and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar so that a check mark is placed next to Menu Bar
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See:
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    http://kb.mozillazine.org/Toolbar_customization#Restoring_missing_menu_or_other_toolbars
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    '''[http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar How to customize the toolbar]'''
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.18; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10'''; see: http://www.adobe.com/support/security/bulletins/apsb10-14.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -''<u>In Windows,</u>'' check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -''<u>In Windows,</u>'' double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
    <u>'''You '''</u>~~red:<u>'''MAY'''</u>~~<u>''' need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Open the Adobe Reader installed on your system (''in Windows, Start > Program Files, find and click Adobe Reader to open''), click Help, click Check for Updates. Allow the download/update to occur. If you use this method, no need to proceed with the instructions below, <u>'''but'''</u> do look at the two bulleted items at the bottom "'''<u>NOTE for IE:</u>'''" and "Also see:". Restart Firefox and check your new version here: http://www.mozilla.com/en-US/plugincheck/
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -In Windows: check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -In Windows: double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • It should be possible to set default behavior for all file types

    It should be possible to set a default action for all file types. I'm so tired of having to manually sit and say "save this file" because Firefail always defaults to "open with" and has disabled the "Do this automatically for files like this from now on."
    And spare me the zealotry religious excuses for why its the fault of websites and not Firefail
    ''edited to remove swearing''

    I do want users to have full control to be able to set any folder view they want by using Apply to Folders; I just want to set the initial/default view to Detail because that matches what the majority of my users want.
    That is, what registry setting changes when I go to a picture folder, change the view to Detail, and click Apply to Folders? Having done that, I still retain the ability to change it to some other view and apply that to folders. But what registry setting
    represents the change I just made when applying Detail view to all Picture folders.?
    This settings is simple via GUI, but it is related a lot of registry keys, I made a test in my machine, capture the "Apply to Folders" process using Regshot tool (this is a small tool which can compare the regsitry changes after you change some
    settings), and this is the result:
    this is part of the registry changes, a plenty of registry keys and values need to be changed. hard to list them here. if you have interests, I recommend the tool Regshot, it can help you capture the regsitry changes.
    NOTE: Please Note: The third-party product discussed here is manufactured by a company that is
    independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's
    performance or reliability.
    Yolanda Zhu
    TechNet Community Support

  • Should I Reset Keychain to Defaults When I'm Logged on Guest User?

    Hi, advanced Merry Christmas. As guest and relatives are arriving for Christmas eve, I've logged on to Guest User but should I reset keychain (it appears on Safari) to default or should I cancel? If I reset, will it actually reset my admin account's keychain?
    Thank you in advance.
    God bless. Rev. 21:4

    Can you provide more details? You have formulated a question which appears to assume some behavior you see is normal and everyone would understand.
    I'm not sure how you would reset the keychain in the guest user, or why up you'd want to. When you log out of Guest, it completely erases the user information, including the keychain, if that is even used.
    If it is asking you to do that, can you post a screenshot of the dialog box?
    there was another post recently about Guest requesting a keychain password, so there may be some obscure problem with the Guest account.

  • UWL: Addtional filter should be shown up as default (Show Filters)

    Dear ALL,
    In UWL content area (Workitem Table) we have some thing called  Show Filters/Hidefilter option. by default the Addtional filters are not shownup in the UWL screen. Once we click show filter then addtional filter fields  will be shownup in the UWL Screen.
    my requirement is by default(While loading the UWL page/iview) automatically the addtional filters should be shown. can you help me out from this isse.
    Regards
    Sridhar

    Hi Sridhar,
    Hvae a look at [Link|http://help.sap.com/saphelp_nwpi711/helpdata/en/ad/d64842d59fb430e10000000a155106/frameset.htm].
    Regards,
    krishna

  • Whats the switch on the 7990 for and what should it be set to ( default )

    Hi
    Just a quick one, what is the switch for on the 7990 ? and what is the default setting? also are there any other fans that can be fitted to this card that are a bit quieter?
    Cheers karl

    This is no Lightning card but a reference AMD design card. Bios 1 (default position switch pointing to backplate) is unprotected can be overclocked and modded. Bios 2 (switching towards inside) is a protected non-overclocked backup bios. It is just meant to save the card when bios 1 is corrupted.
    There are no replacement silent fans. You'd need to switch to a custom aftermarket cooler but as far as I know there is none except for water cooling solutions.

  • Should I make FireFox my default browser?

    I'm using Safari 1.3.2 on my system (Panther) & have been running into my important Websites that warn me that I need an updated browser. Safari is not one of their alternatives. It's getting to using other Websites, as well. When I've run into problems with Safari, I've gone to FireFox & things went ok. I've resisted changing from Safari because I like it & have customized it. IOW, I know Safari. But, I'm not about to upgrade to Tiger or Leopard, just to get the most recent version of Safari.
    I've reluctantly decided to switch to FF as my default browser, unless any of you can give me a good reason NOT to. I really would like to stick with Safari, because I have to go thru a lengthy process of importing my Safari bookmarks & customizing FF all over, again. FF can't customize, automatically. And, Safari's bookmarks management is much easier to use than FF's.
    I'm tired of Apple's wedding its suite of programs to the current OS. IOW, if I want to update Safari, I must invest in a new OS. FF offers a way out of this & I guess I just need to get used to FF.

    I'm not about to upgrade to Tiger or Leopard, just to get the most recent version of Safari.
    If your choice is to remain with an operating system two generations behind, then regrettably you have no alternative.

  • Should itemCreationPolicy be inherited by default?

    Hello, I'm new to the forum and I have been toying around with Gumbo for a while now. I tend to use states a lot and did notice that setting itemCreationPolicy to immedate is the new way to go if you want to have your controls initiated in order to work with them in actionscript before a specific state is entered. Nesting buttons and textinput controls inside containers like Box or Panel and setting includeIn or excludeFrom on those containers works like a charm, but if I want to have a specific control inside a container instantiated immedately I have to set includeIn and itemCreationPolicy on every child of the container that appears before the control I want to have access to in actionscript.
    Example:
    <mx:VBox horizontalAlign="center" width="100%" height="100%" id="receiverSearchBox" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate"> 
    <mx:Text text="{resourceManager.getString('evoChat2008','message_receiver_long')}" styleName="standardLabel" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate" /> 
    <mx:TextInput id="txtReceiver" styleName="inputBox" enter="receiverSearchClick(null);" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate" />
    </mx:VBox>
    If itemCreationPolicy was inherited to the childs of a container it would require a lot less redundant mxml code. Besides that I think the new states syntax is pretty clean and elegant.

    Hmmm...
    Well, the intent of itemCreationPolicy and itemDestructionPolicy is that they be paired up with includeIn or excludeFrom.  The creation policy is simply a hint to the underlying factory used to create the state-specific instance, that it needs to create the managed instance as early as possible.
    In your example the VBox and its children are all included in the same states, so there is no need to specify includeIn or itemCreationPolicy on each child...  were you thinking of a different use case?
    e.g. This works fine - foo, bar, and baz are all accessible prior to entering state 'b'.
    <s:VGroup id="foo" includeIn="b" itemCreationPolicy="immediate">
       <s:Button id="foo"/>
       <s:Button id="baz"/>
    </s:VGroup>

  • Should not happen unless default context failed to deploy

              Can somebody please throw some light on this error?
              <Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP> <HttpServer5173817,null
              default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              HTTP/1.0". This should not happen unless the default context failed
              to deploy.>
              Myself and lot of other people in my team are getting this error
              when using beans in a cluster.
              I am getting this error consistently whenever I make some code
              changes in my bean class (not interface changes) and redeploy it
              and try to lookup through a stand-alone client.
              The only way I could find to overcome this problem is:
              1) edit config.xml to remove the Application element completely
              corresponding to the bean
              2) remove jar files from the applications directory
              3) re-deploy and run the client again.
              Thanks a lot
              Kiran Ganuthula
              

    Partly it could be WLS problem also. Under any circumstances default webapp should be able
              to deploy. I have seen somebody else also reported the same problem. The current problem is
              if you delete anything from apps dir, the corresponding entry is not being deleted from config.xml
              So next time when you boot the server, it tries to deploy the webapp and eventually it fails.
              I 'm not sure if this is the situation in your case.
              In anycase somehow Targets tag is not being picking up. That's why i asked you add
              "WebServers" tag. I think we have done some major changes in SP1, to make sure that
              default webapp deploys all the times.
              If you still have problems, post it to servlet or management group, we will discuss there.
              Kumar
              Kiran G wrote:
              > I edited the config.xml ONLY after getting this error. And, it worked.
              >
              > BTW, can you please be more specific about the changes to config.xml
              > to solve the problem?
              > If possible, can you give pertinent portion(s) of config.xml, highlighting
              > the changes.
              >
              > Thanks
              > Kiran G
              >
              > Kumar Allamraju <[email protected]> wrote:
              > >
              > >
              > >It appears your "default webapp" failed to deploy.
              > >Did you messed up with the config.xml?.
              > >
              > >Add the following to your default webapp tag?
              > >
              > ><Application
              > > Deployed="true"
              > > Name="DefaultWebApp_vindev1"
              > > Path="./config/vindev1/applications"
              > > >
              > > <WebAppComponent
              > > Name="DefaultWebApp_vindev1"
              > > Targets="vindev1"
              > > WebServers="vindev1"
              > > URI="DefaultWebApp_vindev1"
              > > />
              > > </Application>
              > >
              > >
              > >Here vindev1 is my domain's name..
              > >
              > >BTW, this is not a clustering question. So you better
              > >post it to servlet newsgroup where you get much
              > >better answers..
              > >
              > >Kiran G wrote:
              > >
              > >> I forgot to give these details about the problem.
              > >> I am running this cluster using WebLogic 6.0 on a SUN
              > >sparc machine.
              > >>
              > >> The error text given in my original posting appears
              > >in the managed
              > >> weblogic server's log. The exception that the client
              > >receives while
              > >> lookup is :
              > >>
              > >> javax.naming.CommunicationException. Root exception
              > >is java.rmi.UnmarshalException:
              > >> failed to unmarshal class java.lang.Object; nested exception
              > >is:
              > >> java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > >> java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > >>
              > >> "Kiran G" <[email protected]> wrote:
              > >> >
              > >> >Can somebody please throw some light on this error?
              > >> >
              > >> ><Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP> <HttpServer5173817,null
              > >> >default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              > >> >HTTP/1.0". This should not happen unless the default
              > >context
              > >> >failed
              > >> >to deploy.>
              > >> >
              > >> >Myself and lot of other people in my team are getting
              > >> >this error
              > >> >when using beans in a cluster.
              > >> >
              > >> >I am getting this error consistently whenever I make
              > >some
              > >> >code
              > >> >changes in my bean class (not interface changes) and
              > >redeploy
              > >> >it
              > >> >and try to lookup through a stand-alone client.
              > >> >
              > >> >The only way I could find to overcome this problem
              > >is:
              > >> >1) edit config.xml to remove the Application element
              > >completely
              > >> >corresponding to the bean
              > >> >2) remove jar files from the applications directory
              > >> >3) re-deploy and run the client again.
              > >> >
              > >> >Thanks a lot
              > >> >Kiran Ganuthula
              > >> >
              > >> >
              > >> >
              > >> >
              > >> >
              > >
              > >
              > ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
              > ><html>
              > >It appears your "default webapp" failed to deploy.
              > ><br>Did you messed up with the config.xml?.
              > ><p>Add the following to your default webapp tag?
              > ><p><Application
              > ><br> Deployed="true"
              > ><br> Name="DefaultWebApp_vindev1"
              > ><br> Path="./config/vindev1/applications"
              > ><br> >
              > ><br> <WebAppComponent
              > ><br> Name="DefaultWebApp_vindev1"
              > ><br> Targets="vindev1"
              > ><br> <b><font color="#CC0000">
              > >WebServers="vindev1"</font></b>
              > ><br> URI="DefaultWebApp_vindev1"
              > ><br> />
              > ><br> </Application>
              > ><br>
              > ><p>Here vindev1 is my domain's name..
              > ><br><br>
              > >BTW, this is not a clustering question. So you better
              > >post it to servlet
              > >newsgroup where you get much
              > ><br>better answers..
              > ><p>Kiran G wrote:
              > ><blockquote TYPE=CITE>I forgot to give these details about
              > >the problem.
              > ><br>I am running this cluster using WebLogic 6.0 on a
              > >SUN sparc machine.
              > ><p>The error text given in my original posting appears
              > >in the managed
              > ><br>weblogic server's log. The exception that the client
              > >receives while
              > ><br>lookup is :
              > ><p>javax.naming.CommunicationException. Root exception
              > >is java.rmi.UnmarshalException:
              > ><br>failed to unmarshal class java.lang.Object; nested
              > >exception is:
              > ><br> java.lang.ClassNotFoundException:
              > >RingoutSessionBeanHomeImpl_WLStub
              > ><br>java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > ><p>"Kiran G" <[email protected]> wrote:
              > ><br>>
              > ><br>>Can somebody please throw some light on this error?
              > ><br>>
              > ><br>><Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP>
              > ><HttpServer5173817,null
              > ><br>>default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              > ><br>>HTTP/1.0". This should not happen unless the default
              > >context
              > ><br>>failed
              > ><br>>to deploy.>
              > ><br>>
              > ><br>>Myself and lot of other people in my team are getting
              > ><br>>this error
              > ><br>>when using beans in a cluster.
              > ><br>>
              > ><br>>I am getting this error consistently whenever I make
              > >some
              > ><br>>code
              > ><br>>changes in my bean class (not interface changes)
              > >and redeploy
              > ><br>>it
              > ><br>>and try to lookup through a stand-alone client.
              > ><br>>
              > ><br>>The only way I could find to overcome this problem
              > >is:
              > ><br>>1) edit config.xml to remove the Application element
              > >completely
              > ><br>>corresponding to the bean
              > ><br>>2) remove jar files from the applications directory
              > ><br>>3) re-deploy and run the client again.
              > ><br>>
              > ><br>>Thanks a lot
              > ><br>>Kiran Ganuthula
              > ><br>>
              > ><br>>
              > ><br>>
              > ><br>>
              > ><br>></blockquote>
              > ></html>
              > >
              > >
              [att1.html]
              

  • Jdeveloper 10.1.3: JAXB - how to preserve whitespace in text element??

    Dear all,
    i am trying to use jaxb to do the xml <> java object conversion.
    i meet a problem that the jaxb seems don't preserve the white space when xml to
    java conversion (but java to xml is ok, the whitespace is preserved.)
    for example:
    an element with string type: <Address> with leading and trailing spaces </Address>,
    in java code, obj.getAddress() return "with leading and trailing spaces", the spaces
    are trimmed..
    is there any configuration to make?
    how can i preserve the whitespaces?
    thank you
    ping

    Hi, Branislav,
    That's great! It works!
    I choose to use the first method. I have two project modules, both use the same data model. I opened the data model project's properties editor, highlighted the business components node, and the the Connection dropdown list is right there.
    Thank you very much! You are always very helpful!
    Newman

  • Entries Should come by default in XD01

    Hi Gurus...
    Can we do the setting like when we will create the Customer in XD01 some entries should come by default for the Fields in XD01 like Reconcillation A/c # 6458321, Payment term field- Check, Sort Key # 006 & Cash management Group # Z9.
    Please give me the solution....
    Thanks in Advance
    I will really Appreciate....
    Thanks
    Amol Gawai

    Thanks Sai....
    This requirement is for only specific sales area & for other sales area there is no default entries.
    The situation is we have more than one company codes & sales org. , Distrubtion channel & Division
    I want the default entries only for one Sales Area.and for other Areas & Company codes it should be normal means no default Entries.
    Will it be possible with this Tcode-SHDO ?
    Again Thanks
    For Correct Solution , I Will definately rewards the points
    Thanks
    Amol Gawai

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Set default properties for Tools Content Modification Add Text?

    I'm running a French version of Adobe Acrobat XI version 11.0.0.
    I'm not enquiring about or alluding to the other tool that can be employed for adding text: Sign > Add Text.
    For instance, I'd like to change the default font, font size, font color, etc.
    Here's a picture:

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • White space not preserved with XSL Mapping

    Hello
    Is there a problem with preserving white space when using a XSL mapping? My schema has the following included:
                  <xs:element name="FileVersion" minOccurs="1" maxOccurs="1">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="5"/>
                        <xs:whiteSpace value="preserve"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>             
    The whiteSpace attribute alone didn't do it, so I've added length as well which didn't help either.
    My imported XSL mapping writes a fix value of " 6.00" (having a leading space) into the field:
         <FileVersion>
              <xsl:value-of select="' 6.00'"/>
         </FileVersion>
    Processing the mapping with an external tool provides the correct output with a leading space.
    The leading space is missing in the output file or when I do testing in the integration builder. Looking at the target payload in sxmb_moni also shows me the value without leading space:
      <FileVersion>6.00</FileVersion>
    What do I miss? I haven't really found a posting regarding the issue, hence I assume it isn't really one!? Any feedback is appreciated.
    Thanks,
    Daniel

    My XSLT mapping does not have a preserve-space declaration. I am using Altova MapForce, and apparently preserve-space is not a declaration that is supported by MapForce. I would need to manually add it to the mapping after generating it in the tool. Nevertheless, isn't preserve-space the default anyway if nothing is declared, and therefore not necessary?.

  • Preserving Meta Data when encoding JPEG (JAI)

    I have a project where the requirements are that images which I compress (using the JPEG encoder of JAI) must be as much compressed as possible, but also must not be altered in any other way from the original image file, i.e. things like meta data must be preserved exactly as it was, and preferably other things in the header (such as resolution) should also be preserved.
    I have had no problems with the compression process as such, but unfortunately it seems that JAI writes a fresh new (default) header every time the compressed (encoded) image is written out. I also tried the new Java Image I/O stuff for doing this, and it seems to have exactly the same behaviour.
    I have searched both thses APIs extesively for something which would enable me simply to set the option that original meta data (and preferably all header data) should be preserved, but to no avail.
    I do realize that image meta data can be both read and written (at least using the Image I/O), but I find it quite complex and also find it a pitty and a waste to have to do that when the requirements are not about altering/processing any of this data, but simply about leaving it alone.
    If any one has any suggestions about how this problem might be solved, I would be very interested to know about it, and very greatful for any hints or pointers to information also.
    Thank you.
    Helgi

    What do you meen about meta-data??? Can you provide an example.....
    i.e. an initial image you have, in what format is in, it's meta-data (as you say ) and what you finally get encoding

Maybe you are looking for

  • Support for JSP's located in WEB-INF directory

    Several application servers support the use of placing JSP pages underneath the WEB-INF directory, to insure that only server side workflow forwards requests to those pages and not direct URL access. IN addition the JSTL specification supports the us

  • New to Dreamweaver Old hand at Frontpage

    This is what the help section says: Edit an existing remote website in Dreamweaver You can use Dreamweaver to copy an existing remote site (or any branch of a remote site) to your local disk and edit it there, even if you didn't use Dreamweaver to cr

  • Safari/GMail problem

    For the past two days, whenever I boot Safari and try to go to GMail to retrieve my email, Safari crashes and a trouble report is generated to send to Apple. Otherwise, Safari runs just fine, as it always has, and I can access GMail using Chrome. I'm

  • Converting the quotation to the different Sales orders- with doc types

    Requirement : My client wants to create the quotation from Lead and Opertunity.. Company sells the High tech sofware as well Maintanence, customer may buy both together or only hightech products But he both the products can go together up to Quotatio

  • 2-way syncing of calendars with iCal/Outlook users

    Has anyone found an inexpensive hosted calendar solution that allows iCal and Outlook users to share calendars? more specifically a solution where the shared calendar can be edited by either party?