Xalan XSLT processor expands DTD in the transformed file

Hi All,
We are using Weblogic Server 8.1 for our app. Weblogic uses the XALAN parser/transformer internally... When we try to transform an xml to html, the transformer adds the DOCTYPE element with the dtd expanded... It also adds the xml declaration at the top eventhough we specified 'omit-xml-declaration="yes" ' in the xsl:output. Has anyone encountered this issue with Xalan. Please let me know.

One thing is sure. Whatever the classes you are going to use, need to be imported in your Jsp.
There is no need for different import statements. You can write in a single import statement (comma separated).
So, forget about the import statements and do your coding, finally you can look at the code and decide what classes (packages) you need to import.
I think you need to import
import javax.xml.parsers.*;
Hope this helps.

Similar Messages

  • Conditional mapping in the transformation file

    Can anyone tell me if it is possible to perform more complex mapping when loading transactional data? I have 2 requirements:
    1. When the Profit Centre is invalid, set it to a default value of "9999".  Where an invalid Profit Centre is a Profit Centre that does not exist as a valid dimension member.
    2. When the Profit Centre is null, then set it to a default value based on the Entity value.
        For example:
        When the Profit Centre is null and the Entity = 100, set the profit centre to 1000.
        When the Profit Centre is null and the Entity = 200, set the profit centre to 2038. etc
    Ideally I would like to define the mapping rules in either transformation or conversion files.
    Regards, Sharon

    What I can think right now is
    Case 1:
    If you're with BPC 7.0 NW, there is no option to accept not existing member and store it with a default value(Correct me if I'm wrong).
    But you can enable VALIDATERECORDS=YES in the transformation file to output the rejected records with wrong dimension member into a file. Since we need all the rejected records and keep processing the current import, set MAXREJECTCOUNT=-1.
    Next do additional task in your import package to rename all the rejected Profit Center with the default value (9999) and do re-import again.
    Limitation: this will work only if you want to do fix on 1 dimension  in this case the Profit Center. If you need to do fix on multiple dimension, this would not work because the rejected records could be caused by any dimension. So you're lucky in your case.
    If you're with BPC 7.5 NW, use DM BADI to do what you want.
    Case 2:
    You can use IF in your mapping section, for example:
    ProfitCenter=*IF(ProfitCenter = *str(),*IF(Entity=100,*str(1000),...),ProfitCenter)

  • How to use the transformation file

    Hello there!
    This message is to ask a question that maybe it could be familiar to you. I want to load data using a .txt file and a transformation file using the import package. Suppose  that the structure of my txt file is:
    How could I load this values using a transformation? I know that there exists an option named *MVAL(), but if I use the following syntax in mapping section it doesnu2019t work:
    I read something about accountval, does some boddy knows how to use it?
    Thanks in advance

    If you are using MVAL statement, then you need to maintain a conversion file also. Its compulsory. Please make sure that you have maintained a conversion file.
    If you are on 7.5 MS, then the statement will work. Please refer to the MVAL statement in the mapping section of the below link
    However, in 7.0 MS, the MVAL works only if the multiple key figures are corresponding to the time dimension. In your case, they correspond to the account dimension. You need to create separate transformation file for each of the key figures and then upload the flat file separately using each of the transformation files.
    Hope this helps.

  • How can i fix a member for a dimension in the transformation file?

    Hello everybody,
    anyone knows how can I fix a dimension member using the *mapping section of the transformation file in a data upload, I´m trying to fix the member for the Category dimension, I´ve tried an instruction like:
    but it doesnt work, any idea?

    The easiest way is to use the folloowing in the Transformation file:
    Category = *newcol(Actual)
    Hope this jelps.

  • Error validating the transformation file

    Hi All,
    We have a Sales Application for which we are loading the data through flat file. The data file has been created and uploaded using UJFS. The transformation file is giving error while validating saying that conversion files do not  exist. We have maintained the conversion files for each of the dimensions in BPC except the ones that have to loaded with a constant. Any help on the folllowing error log: The conversion files exist in the company folder. Please advise
    [Start validating transformation file]
    Validating transformation file format
    Validating options...
    Validation on options was successful.
    Validating mappings...
    Validation on mappings was successful.
    Validating conversions...
    The conversion file does not exist.  (ZTIME.XLS)
    The conversion file does not exist.  (ZACCOUNT.XLS)
    The conversion file does not exist.  (ZPRODUCT.XLS)
    The conversion file does not exist.  (CHANNEL.XLS)
    The conversion file does not exist.  (ZENTITY.XLS)
    Validation on conversions was successful.
    Creating the transformation xml file. Please wait ...
    Transformation xml file saved successfully.
    Connecting to server ...
    Begin validate transformation file with data file...
    [Start test transformation file]
    Validate has successfully completed
    [The list of conversion file]
    Conversion file: DataManager\ConversionFiles\ZTIME.XLS!CONVERSION
    Conversion file: DataManager\ConversionFiles\ZACCOUNT.XLS!CONVERSION
    Conversion file: DataManager\ConversionFiles\ZPRODUCT.XLS!CONVERSION
    Conversion file: DataManager\ConversionFiles\CHANNEL.XLS!CONVERSION
    Conversion file: DataManager\ConversionFiles\ZENTITY.XLS!CONVERSION
    Task name CONVERT:
    Cannot find document/directory
    Error: Validate with data file failed

    Hi Santosh,
    I am sure you would done it correctly. However, just to be on the safer side, lets revisit all the steps.
    From BPC excel, we create a new conversion. Check the name of the worksheet (not the workbook). By default, it will be Conversion. You can change it to something else also. Lets say, we change it to Account. So, the sheet's name is Account. We validate and save the conversion as myconversion.xls. This will create another file named myconversion.cdm. Check the location properly while saving the conversion file. The location would be
    Save it under company folder.
    Go to the server, where BPC has been installed. Go to the folder
    Check whether the conversion file is present or not. We should have both "myconversion.xls" and "myconversion.cdm".
    Create a new transformation file. Under the *CONVERSION section, We define the conversion file to be used. The format would be
    Dimension_Name=conversion_file_name.xls!sheet name
    In our example, it would be myconversion.xls!account. (check the use of the conversion file name and the sheet name).
    Save and validate the transformation file. Mostly, the issue is around the conversion file name and the sheet name. Check all the steps.
    Hope this helps.

  • How to write inline DTD  to the xml file?

    Hi All,
    I have java program which outputs a xml file! Currently I need to alter this program to insert inline DTD code in the output xml file.
    I want the xml file to look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE students[
    <!ELEMENT firstname (#PCDATA)>
    <!ELEMENT ssn (#PCDATA)>
    <!ELEMENT student (ssn, firstname)>
    <!ELEMENT students (student+)>
    Existing file is as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE students SYSTEM "StudentsDTDfile.dtd">
    The DOCTYPE line can be inserted into the xml using transfomer output key but then that always is for external dtd.
    It brings in the line <!DOCTYPE name SYSTEM " path"> .
    But i need an internal DTD. SO it should look like
    <!DOCTYPE name [<ELEMNETS>]>
    I am using DocumentBuilder class.
    Thanks in advance,
    Edited by: Mathew_Jacob on Jul 12, 2008 12:49 AM

    Or If Labview schema is acceptable, it is fairly straight forward.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Getting the entire DTD  in the output file

    Hi All,
    I have a program that takes an XML file(has DTD and XML in the same file) as input. After parsing it, the output is written into a specified file. The output has first few lines of the DTD and the entire XML part, but is not having the ELEMENT and ATTLIST lines of the DTD.
    My code runs like this:
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.newDocument();
    db.setErrorHandler(new CustomErrorHandler());
    doc = db.parse(inFile);
    XmlDocumentxDoc = (XmlDocument) doc;
    xDoc.write(new PrintWriter(fos));

    The standard parsers don't seem to do a very good job with DTDs. I've used a package at
    to build DTDs. I haven't found a better way to get an internal DTD into an XML document than to separately convert both to String and manually insert the DTD (with appropriate DOCTYPE, etc.) into the XML.

  • Random Number in the Transformation File

    Hi All,
    I need to send a random number while mapping from one xsd to other in the xsl file . The random number should be alpha numeric with 5 chartacters. I tried using generate-guid() but it generates 32 characters. How do u i shrink this to 5 characters and still get a random value?

    Just to add,
    the above mentioned function does not generate integers. For that u need to truncate the output of random to integer as below
    SELECT TRUNC(dbms_random.value(10000, 99999)) FROM dual;
    Edited by: Marius J on Sep 15, 2009 1:33 AM

  • How to Specify a Default Stylesheet to the XSLT processor

    How can you specify that a default stylesheet is been used to the XSLT processor?

    Specify the XSLT in the <XDK>/bin/oraxsl batch file.

  • How can I make my XSLT processor accept html code ?

    In my applications the Oracle xslt processor wont accept simple HTML tags within an XML source while transforming the source into HTML. Both processors either will throw parser exceptions or ignore the HTML code in the XML source completely, though output-escaping is explicitly enabled.
    In detail, I want to transform an XML source like this...
    Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
    ... with an XSL Stylesheet like this...
    <xsl:output method=html cdata-sections=element/>
    <xsl:template match=element>
    <xsl:value-of select=. output-escaping=yes/>
    ... which should result in a HTML code like this ...
    Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
    The result, however, is always like this:
    Hello, this is a XML text source mingled with htmlTM
    This means that the additional HTML tags inside the XML source have been completely ignored by the XSLT processor though I enabled the output-escaping.
    If anybody should think now that mingling HTML with XML text is stupid because I could also format the result with the XSL Stylesheet itself, he might be right, of course, but: I cant avoid this because in my application the XML source results from a users web form entry. The user working with the form must be able to decide whether he wants to include HTML in his text or not. In any case, any HTML code he enters should just be transported WITHOUT ANY CHANGES to the resulting HTML page, not omitted without comments! It seems quite simple to me, but the XSLT processor doesnt want to agree with me in this point :-(
    So, once again in brief: Is there any possibility to tell my XSLT processor not to parse, transform or manipulate HTML tags, but to transport them unchanged to the output ?
    After weeks of research any helping sign would be a great relief...
    Many thanks in advance.

    I don't understand the answer, can you please expand. I am trying to do a similar thing by creating an output buffer,
    assemble a mix of text and html tags and then output this buffer later. All of the html tags are skipped or re-escaped in the final html:
    In this example I want to print the IPRCROP, then add an html break (<br>).
    Example 1. Use xsl:text with escape = yes
    <xsl:variable name="buffy">
    <xsl:for-each select="documents/document">
    <xsl:value-of select="IPRCROP"/>
    <xsl:text disable-output-escaping="yes">&lt;br&gt;&lt;/br&gt;</xsl:text>
    <xsl:value-of select="$buffy"/>
    In this case the <br> and </br> end up re-escaped in the output html as #60 etc. so they appear literally as
    ALFALFA <br> BARLEY <br>
    and in source as: ALFALFA&#60; br &gt; &#60; /br &gt;BARLEY
    Example 2, try as pure text, it just skips the <br></br> altogether
    <xsl:variable name="buffy">
    <xsl:for-each select="documents/document">
    <xsl:value-of select="IPRCROP"/>
    <xsl:value-of select="$buffy"/>
    output = ALFALFABARLEY

  • XDK, XSLT Processor, Add JARs statically

    while using XDK's Oracle XSLT Extensions I'm facing an issue with class visibility after adding it via "loadjava" tool.
    I'm getting the following exception during transformation:
         oracle.xml.xpath.XPathException: Extension function error: Class not found ...
    The docs say the following: (Using the XSLT Processor for Java)
    "Note: The XSL class loader only knows about statically added JARs and paths in the CLASSPATH and those specified by wrapper.classpath. Files added dynamically are not visible to XSLT processor."
    So it's rather clear that loadjava adds classes dynamically. That explains the error message.
    The question however is: how to add classes statically?
    Thanks a lot in advance for you help!

    Trying some stuff at home now until we can call each other.
    Java version is a bit old, isn't it...?
    On my DB version at home (, server side, it mentions:
    [[email protected] ~]$ java -version
    java version "1.6.0_24"
    OpenJDK Runtime Environment (IcedTea6 1.11.11) (rhel-
    OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
    Will try to figure out what the local XDK stuff says.
    My $CLASSPATH is not set. The Oracle Java JDK version mentions:
    [[email protected] bin]$ $ORACLE_HOME/jdk/bin/java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
    After setting the environment on server database side, I get...
    [[email protected] oracle.xdk_11.1.0]$ oraxsl -v
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/oraxsl
    Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.oraxsl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: oracle.xml.parser.v2.oraxsl. Program will exit.
    [[email protected] oracle.xdk_11.1.0]$ echo $PATH
    [[email protected] oracle.xdk_11.1.0]$ echo $LD_LIBRARY_PATH
    [[email protected] oracle.xdk_11.1.0]$ echo $JAVA_HOME
    [[email protected] oracle.xdk_11.1.0]$ echo $ORACLE_HOME
    [[email protected] oracle.xdk_11.1.0]$ echo $CLASSPATH
    [[email protected] oracle.xdk_11.1.0]$ oraxsl -v
    Release version: Oracle XML Developers Kit - Production
    oraxsl: Number of arguments specified (1) is illegal
    usage: oraxsl options* source? stylesheet? result?
                -w                          Show warnings
                -e <error log>              A file to write errors to
                -l <xml file list>          List of files to transform
                -d <directory>              Directory with files to transform
                -x <source extension>       Extensions to exclude
                -i <source extension>       Extensions to include
                -s <stylesheet>             Stylesheet to use
                -r <result extension>       Extension to use for results
                -o <result directory>       Directory to place results
                -p <param list>             List of Params
                -t <# of threads>           Number of threads to use
                -v                          Verbose mode
                -debug                      Debug mode
                -m <version #>              XSLT Version, 1 or 2
    Please refer to the readme file for more information on the above options
    [[email protected] oracle.xdk_11.1.0]$ java -version
    java version "1.6.0_24"
    OpenJDK Runtime Environment (IcedTea6 1.11.11) (rhel-
    OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
    [[email protected] oracle.xdk_11.1.0]$ export PATH=$ORACLE_HOME/jdk/bin:$PATH
    [[email protected] oracle.xdk_11.1.0]$ java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)

  • XSLT Issue : Without the target file mapping is happening

    In one of my composite, which is a provider abcs transforms source to target, where in the transformation file, source and target are mentioned as usual, both are pointing to MDS locations.
    Source file is physically present in the MDS, but the target file is not present but still the transformation happening.
    The flow is like below.
    ProviderABCS -> Adapter service which will write the file.
    Some time the file is created with data and some time only the file is created without data.
    My question is how come there is no exception caught ? If i keep the target schema or wsdl file in MDS will this issue get resolved ?

    When i try to open the xslt file with designer view its complaining that the target file is missing, but when i deploy, iam able to deploy and run with some instances.
    Still investigating.. wll update you.. soon. In the mean time if any body have any other idea.. plz update the thread.

  • I need the transformation agent document

    I have to do a new functionality in my templates. I need to control if a subform appears depends on the value of a field of other subform.
    In a post called "Conditional logic" posted by Marco Degl'Innocenti on 8/2/2006 the solution proposed was to add in the transformation script (or in the produced field-nominated file) this statement:
    @at.if(@YOURFIELD.=="YOURVALUE","^subform subBOX","").
    It has to appear in the field-nominated (transformation) file, where you might want the BOX to appear in the data flow.
    It will then be expanded by jfmerge into the command:
    @if(@YOURFIELD.=="YOURVALUE","^subform subBOX","").
    The problem was I have no information how I can create the transformation file. I think that there is a document about the transformation agent.
    Can someone send me this document? Can someone send me information about this issue?
    Best Regards.

    Then I suggest you post your question the Microsoft Mac forums since it's their products you're having trouble with

  • How to calculate length of the string in transformation file

    Hello all
    I have tried a number of ways and I am not able to calculate the length of the incoming field in transformation file for my data load. Here is the issue.
    I have an incoming string of length 10 and I need to use it to update multiple dimensions which will need first 2, 4 ,6 , 8 characters respectively.
    Now in transformation file ID=ID(1:2) works perfect. However, the BW InfoObject will have multiple values as shown below:
    Business Organization
    Business Line
    Product Family
    Product Line
    I want to update my dimension for Business Organization. I need to update only the records where the length of the incoming string is 4. If I do ID(1:4), I will get the duplicate records and will see the ID less than 4 characters in rejected records. The latter is not such a big issue but the former one is as I need to fetch the right description as well. The formula should check the length and then only pass the record else a dummy value.
    A formula to achieve this in the transformation file is what I am looking for.

    Thanks Vadim for the quick response!
    I am also trying something similar and really appreciate your input here. However, I am not sure if the conversion is really happening.
    Here is what I have done:
    But the strings <> 4 in length are still passing through.

  • Issue with the /CPMB/EXPORT_TD_TO_FILE transformation file.

    Good evening to all,
    We have to export data from a cube to a text file. To do this we have create in the BPC (NW 7.5 SP 09) a package with the process chain /CPMB/EXPORT_TD_TO_FILE but when we execute the package, we get an error. We think that the error is generated by the transformation file. In the chainu2019s log we can see that the process didnu2019t finish successful, the Appl Source and the clear BPC tables variants are in red and we get this error u201CJob or process BPCAPPS waiting for eventu201D.
    Can anybody help us?
    our transformation file is like this:
    SKIP = 0
    SKIPIF =
    Is this the proper use of the TF in this case?
    The complete error log:
    /CPMB/MODIFY completado en 0 segundos
    /CPMB/APPL_TD_SOURCE completado en 2 segundos
    /CPMB/CLEAR completado en 0 segundos
    (Selección de miembros)
    TIEMPO: 2011.ENE
    Error de sentencia MDX: Valor CONTCORMOL                      /CPMB/T5DDIW
    Aplicación: FINANZAS status de paquete: ERROR
    Thanks in advance,
    Best regards

    Hi. Thanks for the reply.
    We still working on the issue. For a test we run the package without TF but we get the same error. We can find out the variant BPC Appl Source(APPL_TD_SOURCE) is the variant that generates the issue.
    When we ran the package the package didn't finish and it get the status get the status active but when we ran the package in an other application the package ends with an error.
    The variant log error was:
    Here is the log in english.
    /CPMB/MODIFY complete in 0 seconds
    /CPMB/APPL_TD_SOURCE complete en 5 seconds
    /CPMB/CLEAR complete en 0 seconds
    (Members selection)
    TIME: 2011.JAN,2011.FEB,2011.MAR,2011.APR,2011.MAY,2011.JUN,2011.JUL,2011.AGO,2011.SEP,2011.OCT,2011.NOV,2011.DEC
    Sentence error MDX: Value CONTCORMOL                      /CPMB/T5DDIW
    Application: FINANZAS Package status: ERROR
    Thanks for your help, best regards.

Maybe you are looking for

  • Another major problem after 10.4.8 update

    Hi everyone, I've never had any major problem with any Mac OS update yet until I had the crazy idea to install the 10.4.8 update last week. I wish I would have never done this. This is also the first time I wish I had Windows since I can't remember s

  • Oracle 8.1.7 install on Red Hat 8.0 or 7.2

    I have been trying to install Oracle 8.1.7 on both Red Hat 8.0 and 7.2 and have followed all the instructions as per the install documents as well as the tips/tricks posted at various tech websites such as http://www.puschitz.com/ and so on. I am not

  • Can't reinstall or use iphoto -- please help

    My problem with iPhoto started last week when it was recommended that I delete then reinstall iPhoto. Apparently I did something wrong. Now, whenever I try to open iPhoto it shuts down right away: it never opens thought the icon appears for a brief m

  • How to generate automatically a html/jsp page in my tomcat web container?

    I would like to generate a personal web-page for every user after registration. Have any sample code for me?

  • WRT54G, Windows 7 Home Premium & XBox 360: anyone able to stream media?

    I had no problem previously on XP streaming media from my PC to an XBox  360. However, with Windows 7, i find that even though the network map on PC shows the XBox 360, the PC only occasionally shows up as accessible on my XBox 360 - and as soon as I