Xsl:output ignored when doing transformation by XMLReader and XMLFilter

I want to make XML transformation via XSL file using XMLReader and filter as described in java tutorial http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/5_chain.html, but it is not working correctly. Transformation is not using encoding and method set in xslfile by <xsl:output method="xml" encoding="ISO-8859-2"/>.
I wrote simple test program whitch has two method doing transformation:
transform_method1 - transforms by XMLReader and filter
transform_method2 - transforms in other manner described in the same tutorial
The second method is working, but first not. Maybe someone has some solution why the first method is not working correctly?
Here is test class:
package xslt;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.transform.*;
import javax.xml.transform.sax.*;
import javax.xml.transform.stream.*;
import java.io.*;
public class TestTransform {
    public static void main(String[] args) {
        File xml_file = new File(args[0]);
        File xsl_file = new File(args[1]);
        File output_file_method1 = new File(args[2]);
        File output_file_method2 = new File(args[3]);
        transform_method1(xml_file, xsl_file, output_file_method1);
        transform_method2(xml_file, xsl_file, output_file_method2);
    private static void transform_method1(File xml, File xsl, File output) {
        try {
            BufferedInputStream bis = new BufferedInputStream(new FileInputStream(xml));
            InputSource input = new InputSource(bis);
            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser parser = spf.newSAXParser();
            XMLReader reader = parser.getXMLReader();
            SAXTransformerFactory stf = (SAXTransformerFactory) TransformerFactory.newInstance();
            XMLFilter filter1 = stf.newXMLFilter(new StreamSource(xsl));
            filter1.setParent(reader);
            StreamResult result = new StreamResult(output);
            Transformer transformer = stf.newTransformer();
            SAXSource transformSource = new SAXSource(filter1, input);
            System.out.println("encoding method1="+transformer.getOutputProperty(OutputKeys.ENCODING));
            transformer.transform(transformSource, result);
        } catch (Exception e) {
            e.printStackTrace();
    private static void transform_method2(File xml, File xsl, File output) {
        try {
            TransformerFactory tFactory =   TransformerFactory.newInstance();
            Transformer transformer = tFactory.newTransformer( new StreamSource( xsl) );
            System.out.println("encoding method2="+transformer.getOutputProperty(OutputKeys.ENCODING));
            transformer.transform(new StreamSource(xml), new StreamResult(output));
        } catch (Exception e) {
            e.printStackTrace();
}and here is test xml file:
<?xml version="1.0" encoding="ISO-8859-2"?>
<root>
    <line>Some text line 1</line>
    <line>Some text line 2</line>
    <line>Some text line 3</line>
</root>the test stylesheet:
<?xml version="1.0" encoding="ISO-8859-2"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-2"/>
<xsl:template match="root">
     <p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="line">
     <div><xsl:apply-templates/></div>
</xsl:template>
</xsl:stylesheet>I get output file from method1:
<?xml version="1.0" encoding="UTF-8"?>
    Some text line 1
    Some text line 2
    Some text line 3and method2 output:
<?xml version="1.0" encoding="ISO-8859-2"?>
<p>
    <div>Some text line 1</div>
    <div>Some text line 2</div>
    <div>Some text line 3</div>
</p>Output on System.out from program is:
encoding method1=UTF-8
encoding method2=ISO-8859-2Can someone help how can I make transformation like transform_method1 style not to ignore <xsl:output method="xml" encoding="ISO-8859-2"/> tag?

You have two transformations chained together. The first is the XMLFilter, which uses your XSLT, and the second is the Transformer, which takes its output and does an identity transformation on it. The second transformation is the one that produces your final XML, so it's the one that controls what encoding it gets.
So your stylesheet should be working. Your only "problem" is that you get a different encoding than you expected. And I put "problem" in quotes because the output you are getting is identical, in XML terms, to the output you want to get.

Similar Messages

  • I'm trying to isolate skin with a secondary layer and am successful.  I want to blur the skin to reduce blemishes but when doing so the blur and degrain sliders don't seem to have an effect. Can I apply a gaussian blur fx on just that secondary? Can't see

    I'm trying to isolate skin with a secondary layer and am successful.  I want to blur the skin to reduce blemishes but when doing so the blur and degrain sliders don't seem to have an effect. Can I apply a gaussian blur fx on just that secondary? Can't seem to figure this out.  Is there a better way to smooth skin?

    Here's an Adobe help page for isolating skin with suggestion on the use of the blur slider also:
    https://helpx.adobe.com/speedgrade/using/apply-secondary-color-corrections.html
    And here's one of the original creators of Iridas/SpeedGrade, Patrick Palmer, a six minute vid-tut on using secondaries (specifically in CS6 but this hasn't changed):
    http://tv.adobe.com/watch/learn-speedgrade-cs6/secondary-color-correction-in-speedgrade-cs 6/
    I'd note, the "blur" and "denoise" tools on the Secondary tab are more about smoothing the keying of the secondary ... they apply a bit of blur or de-noising to make the secondary smoother and cover over the odd pixel or three or four that don't "fit" the key of the secondary in the middle of something you're aiming for.
    In current SpeedGrade, I'd try using the Guassian Blur (Range) effect, and sample a good range of the skin tones.
    And a lot of people use Red Giant's "Cosmo" plug-in over in AfterEffects or Premiere Pro ... it's a tool designed specifically for working skin tones, dealing with blemishes, wrinkles, spots, and such.
    Neil

  • I just bought more icloud storage.  When does it show up and why didn't I get a receipt?

    I was informed that I needed more storage for my ipad mini.  I got rid of extraneous things but decided to purchase some more storage anyway.  I went through all the forms and answered the final "are you sure you want to purchase this" question and I have recieved nothing!  No reciept, no storage...when does it show up?  I am concerned because i put in all my credit card info.

    You've checked all your iPad's homescreens for it, and tried searching for it via the iPad's spotlight search screen ? Does the app have 'open' against it in the Purchased tab in the App Store app ? Have you tried a soft-reset of your iPad to see if you can find the app, or download it via the Purchased tab in the App Store app, after the iPad has restarted ?
    To do a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • When does the JVM exit and deleteOnExit();?

    I developed a JSP that queries a database, displays the results in a browser, and writes the results to the server as a file. While the user is viewing the JSP, they can click on a download link to save the file that was written to the server. Everything works fine!
    I would like to delete the file that was written to the server (to save space), however, I can't delete the file until the user is finished viewing the JSP. I need some help concerning this method: java.io.File.deleteOnExit() the API states:
    "Requests that the file or directory denoted by this abstract pathname be deleted when the virtual machine terminates. Deletion will be attempted only for normal termination of the virtual machine, as defined by the Java Language Specification (12.9)."
    If I use this method, When does the JVM exit? I tested it in my home environment using Tomcat and the file was deleted when I stopped Tomcat. If I run this on a web server, does the JVM ever exit? If so when?
    Thanks
    --Scott

    The JVM stays active so long as the Java based webserver (or the servlet engine if your webserver is connected to one) is up. Only when you shutdown your server will the VM terminate. (Similar to what you observed with tomcat)

  • When does Web Start try and connect to Sun

    How can I make it so web start doesn't try to connect to sun ever? I want it to check for updates only to our application and I don't want it to try and access the Internet. Thanks.

    I've heard the JWS installer looks in the Windows Registry for already installed Java Runtime
    Environments (JREs), version 1.2.2 and higher, and automatically configures Java Web
    Start to use them and that it also installs version 1.3.0_03 if it is not there. Does this mean that if I already have that version installed it won't go out to Sun's website? It seems to me that after JWS is installed it tries to access the internet each time it is run. Anyone know?

  • Issue in dropping an index when doing Online Index drop and Creation

    Hi All,
    We have done an implementation, wherein, we are creating Online indexes and dropping them when we have a new Release, and a new build. What we do is, we take the difference in existing DB indexes and the ones present in our script, and then a script is executed which drops/modifies/creates new index.
    However, what is happening is when we are carrying out some activity in our application, the script tries
    to drop an index and fails with "Resource Busy and acquire with NOWAIT."
    Any ideas how to handle this situation. Or should we segregate dropping of old indexes and creation of new indexes?

    cause for this problem:
    Resource Busy and acquire with NOWAIT:
    Whenever you try to do any structural changes on a table oracle try to lock the table exclusively with NOWAIT option(this is in 10.2g while in 11g you can change the wait timeout). If oracle fails to lock the table exclusively then ORA-00054 will occur.
    Solution for this: (try this link)
    http://arjudba.blogspot.com/2009/01/ora-00054-resource-busy-and-acquire.html
    http://oracle-error.blogspot.com/2008/10/ora-00054-resource-busy-and-acquire.html
    RSD

  • Debit and Credit notes not to update COPA cost of sales when doing price ad

    Hi Experts,
    Please help me to fix the below issue.
    When we correct price adjustments on customer accounts we use debit and credit notes to do these price corrections. We first process a ZCR order type with reference to the original invoice to reverse the transaction and then we process a debit meme request ZDR with the correct details to invoice the customer correctly.
    These credit and Debit memo request are purley for pricing problems and do not effect cost of sales. Currently these Debit and credit memos are updating the cost of Sales value field (COS on Market Price - VV013) .
    This creates a problem since the credit and debit memo happen in subsequent months e.g. The credit memo is reversed at the old cost of sales value since SAP keeps a reference to the cost of sales at that time but the debit memo creates the cost sales at the new standard cost which is obviously not the same as the original cost of sales. We therefore sit with differences which will not equal FI since FI cost of sales was updated with the goods issue price in the month that the goods issue happened.
    We therefore need to zerorise the following value fields when doing ZDR dedit memo and billing type ZL2 and ZCR credit memo billing type ZG2.
    Gross Weight in KG VV004
    Invoiced Qty KG net VV002
    Invoiced Qty in L VV001
    Invoiced Qty in L15 VV003
    Invoiced Quantity VV005
    COS on Market Price VV013
    VV001 to VV005 are quantity fields and VV013 is Value field.
    Please help me how to fix the issue.
    Regards,
    Amar.

    Hi,
    Sorry, I probably confused things by mentioning Revenue. Your settings are correct, with Revenue defined as a revenue element (11) rather than a cost element (1).
    With respect to WIP (P&L), I would create it as a cost element, since it represents the absorption of cost centre costs and materials into the production of goods, even though the goods are not yet complete. When the goods are completed they will be credited in CO-OM and debited to stock using a similar entry. The impact of these credits (to WIP or to Stock) is to move costs out of CO-OM into the goods produced (CoGS). In CO-OM, the net result of Costs less credits to WIP/Stock, indicates the efficiency of your cost centres or the accuracy of your standards.
    I would also create the manufacturing variance accounts as Cost Elements and settle them back to your production costs centres (or possibly CO-PA if you used it), since they are also a reflection of the efficiency of your cost centres - i.e. if a Cost Centre manager is not achieving the standards, (s)he should be accountable for the variance, and if you are concerned about reconciling CO-OM and the costs in P&L, you won't reconcile if the variances aren't posted back to CO.
    Regards,
    Marc

  • When does GC clean up

    Hi,
    Beginning in Java I'm still confused on when does GC clean up and under what conditions. Suppose following code where I increase the length of an int array:
         int[] tmp = foo;
         foo = new int[newCapacity];
         int i = 0;
         while (i < tmp.length)
              foo[i] = tmp[i++];Here foo is allocating new memory, but at that moment tmp is a pointer to the original value of foo. After the new memory allocation the copy is made.
    Is there a possibility that the GC free the memory of foo because it dont know that there is another pointer pointed to it ?

    Hi,
    The GC is smarter than you apparantly think it is.Thanks, because I was worry about that. After a few
    day's of Java I getting to like it, however I'm worry
    about a GC thing that do things where I have no
    control over it :( But you let me sleep on both of
    my ears :)The whole point of garbage collection is that you, as a programmer, don't have to worry anymore about freeing memory that is not used by the program anymore. So stop worrying.
    Ofcourse the GC will never cleanup any object that's still referenced. If it does, there's a bug in the GC, but that's not very likely.

  • Dbms_xslprocessor ignore xsl:output

    If I use the xslprocessor.processXsl the output is correct HTML
    If I use dbms_xslprocessor.processXsl , in the output will be " replaced with quot; ...
    it looks so that dbms_xslprocessor ignore tag <xsl:output method = "html"/>, or should I set output by other way ?
    I've last patch 9.2.0.3.0 installed
    I'm SunSPARC Solaris (64 bit) running
    code fragment :
    x_xsl_dom_document := Dbms_Xmldom.newDOMDocument (a_xslt);
    x_style_sheet := dbms_xslprocessor.newStylesheet(x_xsl_dom_document, '');
    x_processor := dbms_xslprocessor.newProcessor;
    dbms_lob.createtemporary(x_tmp_clob, false, dbms_lob.call);
    dbms_xslprocessor.processXsl(x_processor, x_style_sheet, a_xml, x_tmp_clob);

    Please post your question in XMLDB forum

  • Xmltype.transform and xsl:output method="html"

    hi, 9.2.0.4 winxp,
    i wonder whether xmltype.transform regards any output instructions in the stylesheet. i requested any of xml, html and text and always got the same result?
    any ideas or hints to more info?
    regards peter

    Sorry for jumping in on this thread, but I have a question regarding you reply. I have an XSL stylesheet that preforms XML to HTML conversion. Everything works correctly with the exception of those HTML tags that are not weel formed. Using your example if I have something like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <input type="text" name="{NAME}" size="{DISPLAY_LENGTH}" maxlength="{LENGTH}"></input>
    </xsl:stylesheet>
    It would render HTML in the format of
    <HTML>
    <input type="text" name="in1" size="10" maxlength="20"/>
    </HTML>
    While IE can handle this Netscape can not. Is there anyway to generate completely cross browser complient HTML with XSL?
    Thanks!

  • Xsl output placing %20 (spaces) in output

    Xsl output placing %20 (spaces) in output when XSL file is
    save by Dreamweaver CS3, I notice a problem in Dreamweaver CS3
    today, when editing XSL files. Here is the xsl code
    Note: I have no problems when using DW 8 for writing my xsl
    style sheets. I suspect a setting in DW CS3 would fix this. My
    current development environment is all hand coded, not using DW
    server behaviors for any thing. Using MSXML2.DomDocument.4.0 for a
    XML Parser.
    Top part of file
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output omit-xml-declaration="yes"/>
    Works good this way (all the code on one line)
    <xsl:value-of disable-output-escaping="yes"
    select="url"/>?n=<xsl:value-of disable-output-escaping="yes"
    select="navigationid"/>&amp;p=<xsl:value-of
    disable-output-escaping="yes" select="parentid"/>
    I decided to make the code readable by placing the xsl calls
    on separate lines using line return on the keyboard.
    <xsl:value-of disable-output-escaping="yes"
    select="url"/>?n=
    <xsl:value-of disable-output-escaping="yes"
    select="navigationid"/>&amp;p=
    <xsl:value-of disable-output-escaping="yes"
    select="parentid"/>
    The code above resulted in my query string having
    %20%20%20%20%20 between the n= and value or p and value. It looks
    like the DW CS3 is placing some character in the file that XSL
    parser is interpreting as spaces (%20)
    Note: Dreamweaver 8 does not have this problem. is there a
    setting in CS3 to fix this, maybe a bug in DW CS3?
    David Pearson

    Hi,
    The xsl:output is not yet implemented. This was specified in the README file.
    Thanks,
    Oracle XML Team
    null

  • Problems with the xsl element ---- xsl:output method="xml"/ ----

    Hy, my problem is the next, I am trying to read a xml file and transform it in itself but when I do with XSLT, Internet Explorer doesnt show a xml file, just show me the text nodes of the xml file. I have the element <xsl:output method="xml"/>" in the xsl file but I dont Know what Iam doing wrong.
    The next code is from the xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="/">
    <xsl:copy-of select="catalog"/>
    </xsl:template>
    </xsl:stylesheet>
    The next code is from the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Edited with XML Spy v2007 (http://www.altova.com) -->
    <?xml-stylesheet type="text/xsl" href="PlantillaXSL.xml"?>
    <catalog dni="4546545">
         <cd numero="2" id="5" color="red">
              <title>Empire Burlesque</title>
              <artist>Bob Dylan</artist>
              <country>USA</country>
              <company>Columbia</company>
              <price>10.90</price>
              <year>1985</year>
         </cd>
    </catalog>
    The result in internet explorer is:
    Bob Dylan USA Columbia 10.90 1985

    All right. I asked because it's unusual to use the ".xml" extension for an XSL file, so I thought it might be an error. But there's nothing wrong with that.
    Next debugging step: is that XSL file actually being used? Insert some debugging code in it so that you can tell.

  • Proprietary Sys.= XML= XSL-FO= PDF In memory transform

    I am trying to preform an in memory creation of a pdf (using XSL-FO and FOP) from data contained in a proprietary system.
    The process I am using is:
    1: get xml of the data in the proprietary system (this works and the xml is fine)
    2: create the XSL-FO using the xml from stage 1 and an xslt (where I am going wrong)
    3: transform the xml to pdf (this works if I save the XSL-FO.xml and the xslt used to disk and then run FOP seperately)
    When I run the code I get a Fatal Error from FOP - Content not allowed in prolog. When I write the XSL-FO file to disk and look at it, it's not been transformed to XSL-FO and is missing all the mark-up.
    I have put the code below - any help would be very appreciated.
    Thanks
    // Setup XML input - The methods to create the initial xml return a String
    StringReader inSource = new StringReader( inResult );
    // Setup XSLT Stylesheet - The fo styles are stored in the proprietary system
    String foXSL = getStyleSheet("FOStyleSheet");
    ByteArrayOutputStream foXMLba = new ByteArrayOutputStream();
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer( new StreamSource( new StringReader( foXSL ) ) );
    Result foRes = new StreamResult( foXMLba );
    transformer.transform( new StreamSource( inSource), foRes );
    Driver driver = new Driver();
    driver.setRenderer( Driver.RENDER_PDF );
    ByteArrayOutputStream pdfOut = new ByteArrayOutputStream();
    driver.setOutputStream( pdfOut );
    driver.setInputSource( new InputSource( in_foResult ) );
    driver.run();

    an xslt (where I am going wrong)Yes, I would say that's a good guess at your problem. It does indeed sound like one of the common XSLT errors, where none of your templates are being matched and the default handling takes over; all that does is to copy the text nodes to the output.
    PC&#178;

  • XSL-1047: (Error) Invalid instantiation of 'xsl:output' in 'INSERT' context

    Following is my development environment:
    JDeveloper 9i Release Candidate
    JDeveloper JVM 1.3.1
    Oracle XML Parser v2 9.2.0.0.0
    I'm using the Oracle XML Parser V2 9.2.0.0.0 library to apply a stylesheet to an XML document. However when I invoke the call to processor.processXSL() an XSLException is thrown with the following details:
    oracle.xml.parser.v2.XSLException: <Line 1, Column 116>: XSL-1047: (Error) Invalid instantiation of 'xsl:output' in 'INSERT' context.
    exception
    Below is the sequence of events:
    // Create an instance of XSLProcessor to perform the transformation
    XSLProcessor processor = new XSLProcessor();
    // create a Reader from a String object that contains the stylesheet text
    StringReader r = new StringReader( stylesheet );
    // create a new XSL stylesheet, passing it the Reader object reference
    XSLStylesheet sheet = processor.newXSLStylesheet(r);
    // apply the stylesheet
    // the variable sheet represents the XSLStylesheet object
    // the variable source represents the XMLDocument object
    // this call throws the exception
    DocumentFragment df =
    processor.processXSL(sheet,source);
    I've included the Stylesheet and source XML file I'm processing below.
    Note: My application works fine when I use the Oracle XML Parser v2 9.0.1 library. (although I have to use new XSLStylesheet() in place of XSLProcessor.newXSLStylesheet())
    Any ideas on what has changed between the two releases? I do have a reproducible test case that I can send on if required?
    thanks in advance
    private String stylesheet =
    "<INSERT xsl:version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"> "+
    "<xsl:output method=\"xml\" indent=\"yes\"/> "+
    "<ROWSET table_name=\"acc_database\"> "+
    " <xsl:for-each select=\"DATABASES/DATABASE\"> "+
    " <ROW> "+
    " <DBID><xsl:value-of select=\"DBID\"/></DBID> "+
    " <DBNAME><xsl:value-of select=\"DBNAME\"/></DBNAME> "+
    " <DBSIZE><xsl:value-of select=\"DBSIZE\"/></DBSIZE> "+
    " <DBPATHNAME><xsl:value-of select=\"DBPATHNAME\"/></DBPATHNAME> "+
    " <DBUSER><xsl:value-of select=\"DBUSER\"/></DBUSER> "+
    " <DBPASSWORD><xsl:value-of select=\"DBPASSWORD\"/></DBPASSWORD> "+
    " <ISAPPDB><xsl:value-of select=\"ISAPPDB\"/></ISAPPDB> "+
    " <ISATTACHEDDB><xsl:value-of select=\"ISATTACHEDDB\"/></ISATTACHEDDB> "+
    " <CONVERTDB><xsl:value-of select=\"CONVERTDB\"/></CONVERTDB> "+
    " <VERSION><xsl:value-of select=\"VERSION\"/></VERSION> "+
    " </ROW> "+
    " </xsl:for-each> "+
    "</ROWSET> "+
    "</INSERT>";
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- this file was generated by the Oracle Migration Workbench Exporter for MS Access 9.2.0.1.0 on 13/02/02 15:16:52 -->
    <!-- Do not modify this file as any modification will invalidate the export and subsequent migration of your MS Access database -->
    <DATABASES>
    <DATABASE>
    <DBID>1</DBID>
    <DBNAME>xmltest</DBNAME>
    <DBSIZE>1</DBSIZE>
    <DBPATHNAME>E:\xmltest.mdb</DBPATHNAME>
    <DBUSER>xmltest</DBUSER>
    <DBPASSWORD>oracle</DBPASSWORD>
    <ISAPPDB>1</ISAPPDB>
    <ISATTACHEDDB>0</ISATTACHEDDB>
    <CONVERTDB>1</CONVERTDB>
    <VERSION>4.0</VERSION>
    <TABLES>
    <TABLE PRIMARY_KEY="1">
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <TBLNAME>xsu_test</TBLNAME>
    <CNVTABLESTRUCT>1</CNVTABLESTRUCT>
    <CNVMOVEDATA>1</CNVMOVEDATA>
    <CNVRI>1</CNVRI>
    <CNVVALIDATION>1</CNVVALIDATION>
    <CNVDEFAULT>1</CNVDEFAULT>
    <CNVADDTIMESTAMP>1</CNVADDTIMESTAMP>
    <ATTACHTABLEBACKTOACCESS>1</ATTACHTABLEBACKTOACCESS>
    <SAVEPASSWORD>0</SAVEPASSWORD>
    <CNVMAKEUPDATEABLE>1</CNVMAKEUPDATEABLE>
    <RETAINLOCALCOPY>0</RETAINLOCALCOPY>
    <SYNCWITHSERVER>1</SYNCWITHSERVER>
    <OWNERID>1</OWNERID>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <VALIDATIONRULE></VALIDATIONRULE>
    <NUMBEROFROWS>1</NUMBEROFROWS>
    <CACHINGTABLE>0</CACHINGTABLE>
    <DESCRIPTION></DESCRIPTION>
    <COLUMNS>
    <COLUMN>
    <COLID>1</COLID>
    <TBLID>1</TBLID>
    <COLNAME>id</COLNAME>
    <COLTYPE>4</COLTYPE>
    <COLTYPEDESC>Long</COLTYPEDESC>
    <COLAUTOINCR>1</COLAUTOINCR>
    <NEXTCOUNTERVALUE>0</NEXTCOUNTERVALUE>
    <MAXLENGTHSOURCE>0</MAXLENGTHSOURCE>
    <AVGLENGTHSOURCE>0</AVGLENGTHSOURCE>
    <COLTEXTSIZE>4</COLTEXTSIZE>
    <ALLOWZEROLENGTH>0</ALLOWZEROLENGTH>
    <DEFAULTVALUE></DEFAULTVALUE>
    <COLREQUIRED>1</COLREQUIRED>
    <COLCOLLATINGORDER>1033</COLCOLLATINGORDER>
    <COLORDPOSITION>1</COLORDPOSITION>
    <VALIDATIONRULE></VALIDATIONRULE>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <COLUMNDESCRIPTION></COLUMNDESCRIPTION>
    </COLUMN>
    <COLUMN>
    <COLID>2</COLID>
    <TBLID>1</TBLID>
    <COLNAME>name</COLNAME>
    <COLTYPE>10</COLTYPE>
    <COLTYPEDESC>Text</COLTYPEDESC>
    <COLAUTOINCR>0</COLAUTOINCR>
    <NEXTCOUNTERVALUE>0</NEXTCOUNTERVALUE>
    <MAXLENGTHSOURCE>0</MAXLENGTHSOURCE>
    <AVGLENGTHSOURCE>0</AVGLENGTHSOURCE>
    <COLTEXTSIZE>50</COLTEXTSIZE>
    <ALLOWZEROLENGTH>0</ALLOWZEROLENGTH>
    <DEFAULTVALUE></DEFAULTVALUE>
    <COLREQUIRED>1</COLREQUIRED>
    <COLCOLLATINGORDER>1033</COLCOLLATINGORDER>
    <COLORDPOSITION>2</COLORDPOSITION>
    <VALIDATIONRULE></VALIDATIONRULE>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <COLUMNDESCRIPTION></COLUMNDESCRIPTION>
    </COLUMN>
    </COLUMNS>
    <INDEXES>
    <INDEX>
    <INDID>1</INDID>
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <INDNAME>id</INDNAME>
    <CNVINDEX>1</CNVINDEX>
    <ISPRIMARY>0</ISPRIMARY>
    <ISUNIQUE>0</ISUNIQUE>
    <ISFOREIGN>0</ISFOREIGN>
    <IGNORENULLS>0</IGNORENULLS>
    <ISREQUIRED>0</ISREQUIRED>
    <INDEX_COLUMNS>
    <INDEX_COLUMN>
    <INDCOLID>1</INDCOLID>
    <INDID>1</INDID>
    <COLID>1</COLID>
    <COLORDER>1</COLORDER>
    </INDEX_COLUMN>
    </INDEX_COLUMNS>
    </INDEX>
    <INDEX>
    <INDID>2</INDID>
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <INDNAME>PK_xsu_test</INDNAME>
    <CNVINDEX>1</CNVINDEX>
    <ISPRIMARY>1</ISPRIMARY>
    <ISUNIQUE>1</ISUNIQUE>
    <ISFOREIGN>0</ISFOREIGN>
    <IGNORENULLS>0</IGNORENULLS>
    <ISREQUIRED>1</ISREQUIRED>
    <INDEX_COLUMNS>
    <INDEX_COLUMN>
    <INDCOLID>2</INDCOLID>
    <INDID>2</INDID>
    <COLID>1</COLID>
    <COLORDER>1</COLORDER>
    </INDEX_COLUMN>
    </INDEX_COLUMNS>
    </INDEX>
    </INDEXES>
    </TABLE>
    </TABLES>
    <RELATIONS>
    </RELATIONS>
    </DATABASE>
    <ATTACHED_TABLES>
    </ATTACHED_TABLES>
    </DATABASES>

    Your problem is that your stylesheet is illegal.
    You're using the "simple form" of the stylesheet which
    is equivalent to having a single root template.
    If you use the simple form, you cannot use: <xsl:include>,
    <xsl:import>, <xsl:output>, <xsl:param>
    or any other <xsl:XXX> element which must be at the "top-level"
    of the stylesheet.
    The solution is to change from:
    <INPUT xsl:version="1.0" xmlns:xsl="...">
       <xsl:output>
    </INPUT>.
    which is illegal to:
      <xsl:stylesheet version="1.0" xmlns:xsl="...">
        <xsl:output>
        <xsl:template match="/">
          <INPUT>
          </INPUT>
        </xsl:template>
      </xsl:stylesheet>

  • REPLY to xsl:output method="html" posting

    Due to a problem with the discussion software, I cannot reply to postings
    with a less-than sign in the Subject!
    As you can imagine in an XML forum where
    angle-brackets are common, this is a real
    pain! The OTN guys tell me they are
    working on a solution.
    We fully support all options of <xsl utput>
    The problem here is that your XSL Stylesheet must be a well-formed XML document, so everywhere you are using the <BR> element, you need to use
    instead.
    <xsl utput method="html"/> requests
    that when the XSLT Engine writes out
    the result of your transformation,
    is a propert HTML document.
    what the XSLT engine reads in must
    be well-formed XML.

    Sorry for jumping in on this thread, but I have a question regarding you reply. I have an XSL stylesheet that preforms XML to HTML conversion. Everything works correctly with the exception of those HTML tags that are not weel formed. Using your example if I have something like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <input type="text" name="{NAME}" size="{DISPLAY_LENGTH}" maxlength="{LENGTH}"></input>
    </xsl:stylesheet>
    It would render HTML in the format of
    <HTML>
    <input type="text" name="in1" size="10" maxlength="20"/>
    </HTML>
    While IE can handle this Netscape can not. Is there anyway to generate completely cross browser complient HTML with XSL?
    Thanks!

Maybe you are looking for

  • Material Ledger Additional local currencies for company code

    Hi Expert, I would like to add a second local currency in the "Additional local currencies for company code" in order to have 2 currencies available for material ledger. (Material ledger is not yet activated for this company code) The second local cu

  • Steps to create a Number Range.

    Can anyone please send me the steps to create a Number Range..Thanks in Advance

  • Ports Required for SCCM 2012 Distribution point

    I think below are the port need to open for distribution point instalaltion Site Server -- > Distribution Point SMB 445 TCP RPC Endpoint Mapper 135 UDP and TCP RPC dynamic TCP my question here is for install Distribution point instalaltion , only Sit

  • Getting notes out of the iPhone

    I take a LOT of notes with my iphone. I can't figure out how to sync them with my mac to get them out. Does anyone know how to do this? MACBOOK PRO   Mac OS X (10.4.10)   HAPPY iPHONE OWNER

  • Nokia n70 with Mercedes Benz Bluetooth SAP V2

    i have a mercedes sap v2 bluetooth device and when i try to connect it, it ask me for a connect code do you anyone know what code.i also can't find How do i activate remote sim active setting on at my n70 where is that am i blinde;