Simple xml config file

I have created a simple config file using something like:
      XMLEncoder e = new XMLEncoder(
                                  new BufferedOutputStream(
                                      new FileOutputStream("Config.xml")));
      e.writeObject(base.toString());
      e.writeObject(numberFrom);
      e.writeObject(numberTo);
      e.writeObject(numberPad);
      e.writeObject(maxTasks);
      e.writeObject(maxSubTasks);
      e.writeObject(textFrom);
      e.writeObject(textTo);
      e.close();which produces a file like:
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.4.2_05" class="java.beans.XMLDecoder">
<string>C:\</string>
<int>1</int>
<int>20</int>
<int>2</int>
<int>0</int>
<int>1</int>
<string>a</string>
<string>z</string>
</java> I want to make it a bit more version proof so need to get something more like:
<?xml version="1.0" encoding="UTF-8"?>
<program name=myprog>
<dir>C:\</dir>
<version>1</version>
<myval1>20</myval1>
<myval2>2</myval2>
</program>There's probably loads of errors in that bit;) but you get the idea. I'm a bit new to xml programming.
Can anyone give me any urls of help or examples that might do this?
Thanks,
David.

You could use a binding api such as JAXB or xmlbeans. In essence these apis abstract the xml as pure java objects. Alternatively you could use an xml parser such as dom4j and build the XML 'by hand'. This class will create an example config file and write it to the file system
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
* Class to create a simple xml config file using W3C api
* @author wollnyj
public class CreateConfig {
     * create the config file
     *?xml version="1.0" encoding="UTF-8"?>
     *<program name=myprog>
     *    <dir>C:\</dir>
     *    <version>1</version>
     *    <myval1>20</myval1>
     *    <myval2>2</myval2>
     *</program>
     * @param configFile
     * @throws ParserConfigurationException
     * @throws IOException
    public CreateConfig(String configFile) throws ParserConfigurationException, IOException {
        //Document doc = parseXml(configFile);
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        Document doc = factory.newDocumentBuilder().newDocument();
        Element program = doc.createElement("program");
        program.setAttribute("name","myprog");
        Element dir = createEle("dir","c:\\",doc);
        Element version = createEle("version","1",doc);
        Element val1 = createEle("myval1","20",doc);
        // etc...
        program.appendChild(dir);
        program.appendChild(version);
        program.appendChild(val1);
        doc.appendChild(program);
        write(doc,new File(configFile));
     * @param args
     * @throws Exception
    public static void main(String[]args) throws Exception {
        CreateConfig create = new CreateConfig("F:\\config.xml");
     * Write an xml document to the file system
     * @param document The document to be written
     * @param xmlFile The output file
     * @throws IOException The file does not exist or could not be created
    private void write(Document document, File xmlFile) throws IOException {
        OutputFormat format = new OutputFormat(document);
        format.setIndent(4);
        format.setLineSeparator(System.getProperty("line.separator"));
        format.setLineWidth(80);
        FileWriter writer = new FileWriter(xmlFile);
        XMLSerializer fileSerial = new XMLSerializer(new BufferedWriter(writer), format);
        fileSerial.asDOMSerializer();
        fileSerial.serialize(document);
    private Element createEle(String name, String value, Document doc) {
        Element ele = doc.createElement(name);
        Text textNode = doc.createTextNode(value);
        ele.appendChild(textNode);
        return ele;
}

Similar Messages

  • XML Config File

    Firslty, I am a visual studio developer now working on a project in j2ee / weblogic.
    I have a project that currently uses an IP address that is hard coded. Ideally I would like this changed to some sort of XML config file. Can someone please provide me with an idiots guide to doing this please.
    Thanks in advance......

    The Preferences API does allow new ones to be created and to be written in
    XML format, but I found the XML format allowed very rigid and not very useful for
    what I wanted to do.The article caused me to finally read up on Preferences. It's neat, but not really for the same thing as configuration files. Configuration files typically have data which is fixed for the program, regardles of environment. Messages, SQL text and so on. The Preferences system is for stuff that's specified when it's installed on a particular system (URLs, file directories etc.), and simple stuff that you want to persist for a user, like window positions, user name etc..
    On windows it's stored in the registry. On unix hidden away on your home directory.

  • Urgent: UWL XML Config file

    Hi all!
    I copied the business object EXTSRV to ZEXTSRV and created a new method zprocess that is mainly a copy of the Process method of the EXTSRV BO just that the creation part of the url is diffirent. I kept the call_browser function.
    Then, I assigned this method to a task in the workflow this task is copy of the standard task TS50000075. I added the itemtype to the UWL XML config file and uploaded it to the system successfuly then i cleared the cash.
    When i double click on the item in the UWL it partially works. I see the text written in the task but it is supposed to pop up a window. This window doesn't appear.
    Can anyone help with that?
    Thank you in advance,
    Hajar

    Hi
    Just check this out Please do not forget to give points
    User Roles     Restricts who can get work items via the user role. For example, you can assign a portal role here, such as buyer. Only users with the role buyer will see items from the provider system in UWL.You can have multiple user roles separated by semi-colon. By specifying user roles for the portal users, it can be restricted as to who gets the work items in UWL.  For example, you can assign a portal role to a user, such as buyer.  Only users with the role buyer will see items from a system, for example, B7QCLNT000 in UWL.
    Pull Channel Delta Refresh Period (in Seconds)     Delta Pull mechanism of UWL enables new items to be fetched from the back end SAP systems every minute by default every 60 seconds, and every 30 seconds for alerts. However, this can be configured. The user does not need to use the refresh function to update the inbox. Once items are retrieved, timestamps are updated for the users whose items are successfully retrieved. These retrieved items are updated in the UWL cache. Setup necessary from Business Workflow to enable Delta Pull MechanismSome configuration settings are required if you use the UWL and the Extended Notifications for SAP Business Workflow. Define the following two batch jobs:...&#9679;      Background job (for example UWL_DELTA_PULL_1), consisting of a single step of ABAP report RSWNUWLSEL in FULL mode, using a report variant.Run the job once a day.1.     &#9679;      A background job (for example UWL_DELTA_PULL_2), consisting of a single step of ABAP report RSWNUWLSEL in DELTA mode (default mode is delta, so report variant is optional).Run the job every one to three minutes (depending on the performance of the back end SAP system).Setup necessary from UWL to enable Delta Pull Mechanism The UWL service user in portal, with user id uwl_service, has to be granted access to the corresponding back end systems. This is a predefined service user provided by UWL. When the back end system is configured in the UWL administration page, an automated process is triggered to create a corresponding UWL service user in the back end system.Check role assignments and profiles status of this automated generated UWL service user and perform user comparison if necessary.&#9679;      If SAPLogon ticket is used (without using user mapping), you first create the system entry. A message about uwl_service user appears. Then in the back-end system give the uwl_service user an initial password. Now edit the system entry.&#9679;      If user mapping is used, you can first configure the back end system in the UWL administration page. Then access the respective back end system to initialize the password for the user uwl_service. Then, do user mapping in the portal as usual for service user uwl_service.In case uwl_service fails to be created in the back end and does not exist, you can manually create a back end user with the id uwl_service and assign the role SAP_BC_UWL_SERVICE and the rights as other end users.ORMap uwl_service to an existing back end user. Make sure that there is no multiple user mapping (there must not be two portal users mapped to the same back end user). This back end user must have the role SAP_BC_UWL_SERVICE.
    Snapshot Refresh Period (in minutes)     All items at the current time are fetched from the backend (for example from the SAP Business Workflow). The cache is synchronized thereafter. New / modified / deleted / updated items are fetched every session (every log on) if you leave the field value empty or enter a negative number.To specify a particular time frame for which the refresh occurs, enter the number of minutes
    The above registration procedure is usually sufficient to use a UWL iView. Item type retrieval and registration requires a connection to the systems and may take a couple of minutes.
    For each system, they are generated as the configuration named uwl.webflow.<system_alias> or uwl.alert.<system_alias>.
    In Manager Self-Service (MSS), the Universal Worklist groups together in Workset: Work
    Overview the various workflow tasks and alerts that are relevant for a manager.
    The standard MSS delivery includes the configuration file com.sap.pct.erp.mss.001.xml for the universal worklist.
    1. In the portal, choose System Administration &#8594;&#61472;System Configuration &#8594;&#61472;Universal
    Worklist and Workflow &#8594;&#61472;Universal Worklist &#8594;&#61472;UWL Systems Configuration.
    2. Create the following system connections:
    If you have already registered a suitable connector to the system connected to
    the system alias, the existing connector is sufficient and you do not have to
    register an additional one.
    &#9675; System alias: SAP_ECC_Financials
    Connection types:
    &#9632; WebFlowConnector
    &#9632; AlertConnector
    &#9675; System alias: SAP_ECC_HumanResources
    Connection type WebFlowConnector
    &#9675; System alias: SAP_SRM
    Connection type WebFlowConnector
    Leave the Web Dynpro Launch System field blank for all system connections.
    with regards
    subrato

  • Where can i find the doc about xml config file of 9ias?

    i cant find the "Oracle9iAS Containers for J2EE User&#8217;s Guide",
    it should contains the info about the xml config file, i dont
    know why oracle launch a product without the config guide, i
    have read ton of material for learning the configuration of 9ias
    but still have not find the answer!
    i cant find it in otn:
    http://otn.oracle.com/tech/java/oc4j/content.html#technicaldocs,
    it have jsp, servlet....etc guide but no config guide, if
    someone seen it in microsoft or sun or borland website, please
    call me :)

    i mean the deployment config file in the application server like: server.xml, application.xml, web.xml, it is the J2EE standard, and can be used between all application server, tomcat, 9ias, weblogic........

  • Generate a xml config file for SPA3102

    Hi everyone,
    I'm trying to create a xml config file for my SPA3102
    I tried  http://<phone -or- device ip address>/admin/spacfg.xml
    to generate the xml but i had a  404 Not Found !
    web page so i'm searching a solution to generate a config file from the existing configuration
    I don't want to generate 2 html files for voice and router
    can you help me ?

    Basically, XML config file for this SPA3102 can be generated using SPC tool software (Profile
    compiler). However, I think this tool is only available from your Value Added Reseller or from your VoIP.Thanks.

  • Should I use .INI or .XML config files on cRIO?

    I'm looking to make a configuration file for an application running on a cRIO-9022. It will contain a small amount of configuration data (like numeric offsets, file paths, and IP addresses). I have 2 questions:
    1) Which file format should I use (.ini or .xml)? I have used .INI in the past because it is human readable/configurable with notepad, but it seems like .xml is becoming the new standard
    2) I would like to be able to modify config parameters on the PC that connects to the cRIO. What is the best way to modify the config file if it is stored on the cRIO hard disk (FTP the file to PC, make changes, FTP back? Network Streams?)
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    JimMacD wrote:
    Thanks for the info.
    Any clever ways of accessing and changing the Config File data from a LV application running on a PC that doesn't require manually editing the file? I want the operator to just be able to click a button that says "cRIO Config", open a dialog, and change the values from there.
    uhm.... Yes!
    In This Post I show a bit of my hand on just exactly what I keep in a ini.config file (wel,l 1 section of a config file)  It would be nearly idiotic of me to not provide a Config editer since there are numerous Enum type defs in the delimited value for each key.  so since I, as the developer, know what sections (and possibly keys) are there I can read the file and load them to indicators on a config editor GUI.
    I've actually done this two ways-
    1) a seperate app that only "admin Engineers" know the location of "Launch Config editor.exe.
    2) In the application referanced above I have a button that opens a MODAL panel to edit the file (remember- I know what is in the file).   Users need permissions (Users- Passwords and permissions are kept in a config file, of course!) to even display the "Edit Sequence" button. but the "super user" can edit the step parameters. 
    HINT: one of these "Steps" loads a xml file to expose telnet commands and config for the uP on the DUT.   I expect the firmware on the Linux DUT will change in the future and did not want to rebuild my app whenever a typo was fixed in a command line tool.  BUT, since there are "special characters" that do not fit nicely into a .ini I exposed the telnet commands and line ends IP address and the login script  in a xml file.
    I know this did not directly answer your question!  but It should provide some food for thought.
    If you can share your data structure- I can be more specific. 
    Jeff

  • Problem with mapping parameter when specified through an XML config file

    I have decided to attept to stipulate UDT mapping parameters from C# to Oracle in the AppConfig File.
    The original code (which worked) was as follows:
    namespace RoyalLondon.Processes.Oracle.Dto
    [OracleCustomTypeMappingAttribute("TEST_SCHEMA.T_PROJECT_CODE_CHANGES")]
    class ProjectCodeChangeTableFactory : TableFactoryTemplate<ProjectCodeChangeTableDTO>
    So, I've commented out the [OracleCustomTypeMappingAttribute line and added the following into the config file:
    <oracle.dataaccess.client>
        <settings>
          <add name="ProjectCodeChangeTableDTO"
           value="udtMapping factoryName='RoyalLondon.Processes.Oracle.Dto.ProjectCodeChangeTableFactory, RoyalLondon.Processes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
                             typeName='T_PROJECT_CODE_CHANGES'
                             schemaName='TEST_CON_DEV'"/>
        </settings>
    </oracle.dataaccess.client>
    This yields the following error message:
    Unhandled Exception: System.InvalidOperationException: Custom type mapping for ' RoyalLondon.Processes.Oracle.Dto.ProjectCodeChangeTableDTO' is not specified or is invalid.
    All the documentation I have read suggest that this ought to be ok. Is there anything obvious I am missing?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    ummm, nevermind.
    Turns out I hadn't updated the list of files that went in my servlet's jar file. I was recompiling the jar file successfully each time, but the list of files being included needed to contain a new class. This was a really stupid mistake on my part.
    Just one of those things that I was bound to solve as soon as I broke down and posted something on the web. Sort of like taking your umbrella with you to ensure that it won't rain.
    If anyone is reading this I am sorry I wasted your time.
    Jon

  • How to hide navigation button in xml config file

    I have a photo gallery with a navigation button that allows for additional photo categories that I don't want to appear. Unfortunately, I can't open the .fla as it appears to have been created with a newer version of Flash. The code in the config.xml file is basically:
    <navigation>
      <menu 1> <content>
    </menu 1>
    <menu 2> <content>
    </menu 2>
    etc.
    </navigation>
    Is there a tag I can add to make the navigation link disappear?

    Deleting the navigation tags will make the xml malformed.  You need to keep those, but the parts in between can go.

  • XSL for a Pie chart with a very simple XML data file

    Hi All
    Using BI Pub Desktop 10.1.3.2.1 with Oracle Apps R12.1.3.
    I am trying to do a pie chart for the below data in an xml file. Normally this is pretty straight forward but with the below simple data structure I am a bit stuck, maybe thinking about it too much. Appreciate any help on what the xsl should like.
    xml file contains only the below. There is no other data in the file.
    <G2>
    <ITEM>ALL</ITEM>
    <AA>10</AA>
    <BB>20</BB>
    <CC>50</CC>
    <DD>30</DD>
    </G2>
    I want to be able to have a pie chart that shows the labels: AA, BB, CC and DD with the corresponding data values of 10,20,50 and 30.
    Thanks for viewing the question.
    Cheers Cel

    Please disregard. i went back to the original blog code and started over, and figured this out.

  • UWL - I want to add the column "item type" in the UWL XML config file

    Hi,
    when personalizing a view in the default UWL iView, a user can add the column "Item Type", which shows the icon of the corresponding item.
    I want to add this column to a default view configuration in the XML file, so that all users have this column available by default. I guess the right attribute to do so would be the "columnOrder" attribute of a view. I tried to add the value itemType and objectType, but none of this worked, the column did not appear.
    From help.sap.com at
    http://help.sap.com/saphelp_nw70/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    I found some attributes and I tried statusIcon, externalId and externalType. statusIcon does not show the item type icons and the other two don't work at all. The table shows that they have the attribute "Visible to user = NO".
    Does anybody know the correct value which I have to add to the columnOrder attribute or how I have to configure the XML file?
    Thanks a lot for any help,
    Fabian

    I found it myself, it's the attribute "itemTypeIcon" which has to be added to the columnOrder attribute.

  • Using StringMatchFilter in Log4J XML Config. File?

    I'm trying to use the StringMatchFilter in an appender to determine based on the contents of the message when to send an email, when testing with single words it works great. For example if the message has "Here is a DEBUG" and my "StringToMatch" value is DEBUG then that message is correctly identified. However if I want to match on more specific string like "Here is DEBUG" for my "StringToMatch" value it will match on every message that has the word "Here" in it anywhere. So it would incorrectly match on "Here is a WARN" when the "StringToMatch" value specified is "Here is DEBUG". Below are my two files I'm using to run my test. How should I specify a string with embedded spaces for this to work? I've tried with single quotes inside the double quotes like this: "'Here is DEBUG'" but it still matched on 'Here'.
    My XML Config. file looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
      <appender name="EMAIL"  class="org.apache.log4j.net.SMTPAppender">
              <param name="BufferSize" value="512" />
              <param name="SMTPHost" value="???" />
              <param name="From" value="???" />
              <param name="To" value="???" />
              <param name="Subject" value="Test LogMessage" />
              <layout class="org.apache.log4j.PatternLayout">
                      <param name="ConversionPattern" value="[%d{ISO8601}]%n%n%-5p%n%n%c%n%n%m%n%n" />
              </layout>
              <filter class="org.apache.log4j.varia.StringMatchFilter">
                      <param name="StringToMatch" value="Here is DEBUG" />
                      <param name="AcceptOnMatch" value="true" />
              </filter>
              <filter class="org.apache.log4j.varia.LevelRangeFilter">
                      <param name="LevelMax" value="FATAL"/>
                      <param name="LevelMin" value="DEBUG"/>
              </filter>
      </appender>
      <root>
        <appender-ref ref="EMAIL"/>
      </root>
    </log4j:configuration>and my test java code looks like this:
    import org.apache.log4j.Logger;
    import org.apache.log4j.xml.DOMConfigurator;
    public class Test{
       static Logger logger = Logger.getLogger(Test.class);
       public static void main(String args[]) {
          DOMConfigurator.configure("/home/agsteam/testing/log4j/Test.xml");
          logger.debug("Here is DEBUG");
          logger.info("Here is some INFO blah");
          logger.warn("Here is some WARN");
          logger.error("Here");
          logger.fatal("fatal here");
    }In the above example code every logger message matches, the debug, info, warn, error and fatal all match because of the the 'here' that is found in the message, even though the filter StringToMatch values has "Here is DEBUG".
    Thanks for any help.

    There's an XML parser in the tomcat common diretories. Check out the documentation for XML parser on www.java.sun.com for descriptions.
    Basically there's two levels of XML parsing, the first generates "events" for tags, attributes etc. the second comiples into a tree of Node objects.

  • SWFVISU task not appearing in any of the UWL Config files

    Hello Workflow/Portal gurus, gotta question...
    Scenario: I want custom workflow single-step tasks used in perf. mgmt. workflows to launch BSP application.
    My understanding is that when you maintain link between workflow task and BSP application in SWFVISU followed by 'Register item types for all systems' in UWL and clearing Cache, UWL config file should be updated to include the task maintained in SWFVISU with appropriate launching parameters. I have used this successfully in the past with Wedbdynpro applications.
    In my portal system, a new custom task that I maintain in SWFVISU is not even appearing in any of the UWL config file. when we use 'Register item types for all systems' option in UWL followed by clearing Cache,one of the config file does successfully get updated (we see success message and update date and time) but custom task is missing from the config.
    Also, when I manually try to configure custom task and launching applications using one of the UWL wizard it gives error symbol with no messages. UWL behaves strange (Auth is not an issue) and couple of things we checked per UWL/Portal config docs seems to be in order.
    Any pointers what we could be missing? Is there anything else other than adding task in SWFVISU followed by 'Register item types for all systems' in UWL and clearing Cache that needs to be done?
    Appreciate your help,
    Saurabh

    Hi,
    i had the same problem that all entries form SWFVISU could not be displayed in the XML config file.
    The solution is very simple since SP 18 of NW portal: you need to configure a RFC destination in the Visual Admin (see Note 1133821).
    Though if you are not using Delta Pull you have to create this destination to register the UWL.
    I hope this helps.
    Regards,
    Marc

  • Does Jabber for Mac 9.2.1 require jabber-xml.config?

    Hello,
    Does anybody know if new Jabber for Mac version 9.2.1 require a jabber-xml config file?
    Users with this new version are complaining that they can't search on the directory and that usernames are not showing correctly on the contact list (they just see the username@domain instead).
    Jabber for mac version 8.x works correctly as it has been doing for a while.
    Regards.

    Yes, the latest release along with the feature regression, requires the .xml file
    Global configuration files
    Global configuration files apply to all Cisco Jabber for Mac users. Cisco Jabber for Mac downloads the global configuration file from your TFTP server during the login sequence.
    The default name for the global configuration file is jabber-config.xml.
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/jabber/mac/9.2.1/JABM_BK_CB0ACEBC_00_cisco-jabber-for-mac-installation_chapter_010.html
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • JAXP working with XML-XSL files - urgent help

    I have the code below to transform xml file into html file using xsl file:
    Transformer transformer = tFactory.newTransformer(new StreamSource("D:/Test/26120108026263560502.xsl"));
    transformer.transform(new StreamSource("D:/Test/26120108028469387014574415483532664948806162003.xml"), new StreamResult(new FileOutputStream("D:/Test/Test.html")));
    The code works fine with simple xml, xsl files, but it shows strange error messages when transforming more complex xsl file, please look at the errors below:
    [Error] 26120108026263560502.xsl:3:80: Element type "xsl:stylesheet" must be declared.
    [Error] 26120108026263560502.xsl:4:58: Element type "xsl:output" must be declared.
    [Error] 26120108026263560502.xsl:6:75: Element type "xsl:include" must be declared.
    [Error] 26120108026263560502.xsl:12:25: Element type "xsl:template" must be declared.
    [Error] 26120108026263560502.xsl:14:7: Element type "html" must be declared.
    [Error] 26120108026263560502.xsl:15:7: Element type "head" must be declared.
    [Error] 26120108026263560502.xsl:16:8: Element type "title" must be declared.
    [Error] 26120108026263560502.xsl:17:75: Element type "xsl:value-of" must be declared.
    [Error] 26120108026263560502.xsl:19:74: Element type "meta" must be declared.
    [Error] 26120108026263560502.xsl:20:8: Element type "style" must be declared.
    [Error] 26120108026263560502.xsl:38:25: Element type "body" must be declared.
    [Error] 26120108026263560502.xsl:39:48: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:40:55: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:41:49: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:43:67: Element type "table" must be declared.
    [Error] 26120108026263560502.xsl:44:7: Element type "tr" must be declared.
    [Error] 26120108026263560502.xsl:45:21: Element type "td" must be declared.
    [Error] 26120108026263560502.xsl:45:24: Element type "b" must be declared.
    [Error] 26120108026263560502.xsl:45:51: Element type "br" must be declared.
    [Error] 26120108026263560502.xsl:46:123: Element type "xsl:value-of" must be declared.
    It look to me that JAXP can't recognize the tags. Everyone's help is appreciated.
    Neil

    Here is the top part of it: ***********************
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="no" encoding="UTF-8" />
    <xsl:include href="http://connexion.vdr.com/ematrix/reports/xsllib.xsl" />
    <xsl:template match="/">
    <html>
    <head>
    <title>
    <xsl:value-of select="//businessObject[objectType='CRA']/objectName"/>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <style>
    TABLE
    font-family: Arial Narrow, Tahoma, Verdana;
    border: #000000 solid;
    border-width: 2px 2px 0px;}
    TABLE.BOTTOM
    font-family: Arial Narrow, Tahoma, Verdana;
    border: #000000 solid;
    border-width: 2px 2px 2px;}
    TD.DATA, TH.DATA
    border: #cccccc solid;
    border-width: 0px 1px 1px 0px;}
    </style>
    </head>
    <body bgcolor="#FFFFFF">
    <xsl:call-template name="ECRHeaderTable" />
    <xsl:call-template name="ECRHeaderDetailsTable" />
    <xsl:call-template name="ECRDetailsTable" />
    Anh here is the top part of file xsllib.xsl in the xsl:include: ********
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!--*******************************************************************
    CalJulian - Calculate the Julian date for any date
    Inputs: Year - Year
    Month - Month
    Day - Day
    hour - hour (24 hour based, 0=midnight, 23=11pm)
    min - minute
    sec - second
    History:
    http://www.nr.com/julian.html
    *********************************************************************-->
    <xsl:template name="CalJulian">
    <xsl:param name="Year"/>
    <xsl:param name="Month" select="1"/>
    <xsl:param name="Day" select="1"/>
    <xsl:param name="Hour" select="0"/>
    <xsl:param name="Min" select="0"/>
    <xsl:param name="Sec" select="0"/>
    <xsl:variable name="jy">
    <xsl:choose>
    <xsl:when test="($Year < 0) and ($Month > 2)">
    <xsl:value-of select="$Year + 1"/>
    </xsl:when>
    <xsl:when test="($Year >= 0) and ($Month <= 2)">
    <xsl:value-of select="$Year - 1"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$Year"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    The files work fine when I use msxsl.exe without any errors. I forgot to mention that dispite all the errors, JAXP still creates the html file but seeing the errors is not a good thing.
    Neil

  • UWL xml config - coll task status completed when progress = 100%?

    The progress bar shown in the uwlCollaboration iview enables users to click and choose progress = 25,50,75 or 100% for each task. The task's status changes automatically to 'In progress' if 25,50 or 75% is chosen. For 100% I would expect status to change to 'Completed'. This doesn't happen. Status is set to 'Confirmed' even if no final verification step is set for the task. When first set to confirmed the task's status is unchangable and cannot be set to completed.
    I have checked the uwl.collaboration xml config file. The action 'redirectAction5' handles the 100% step, but I cannot find how and where to set how this should correspond to changing progress to completed.
    <Action name="redirectAction5" groupAction="no" handler="UIActionHandler" referenceBundle="menu_progress100" returnToDetailViewAllowed="yes" launchInNewWindow="no">
          <Properties>
            <Property name="newValue" value="100"/>
            <Property name="actionName" value="progress"/>
            <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
          </Properties>
        </Action>
    Thanks for any help
    Henning

    Hi Henning,
    My guess is that this is related to the fact that tasks is by default set to "Task Requires Final Approval", you can check this by clicking 'show options' when starting a task.
    When this option is set, the users that starts the task needs to approve it before the task is complete.
    Could this be of help?
    You next question might be how to change this default setting Sorry I do not know, anybody else?
    Regards Lars A

Maybe you are looking for