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

Similar Messages

  • Anyone working with XML in portlets? How?

    Do you work with XML/XSL in a JSP Portlet to build your presentation?
    We are having trouble with german Umlauts and want to know a way for XML in portlets in general.
    Thomas

    Hallo Ingo !
    We use the Oracle XML Parser and XSL transformer in a JSP Portlet. The XML is referenced throu a URL from our XML server.
    The XSL file is in the portlet directory.
    Our Problem is:
    Even if we use encoding attributes set to UTF-8 we are not able to display Umlauts correctly. They are not encoded to HTML Umlauts (e.g. &#252; to &uuml;).
    We tested our code with Apache Xalan and Xerces and everything works fine.
    I think that Oracle XML parser treats things not as they are recommended by W3C.
    Finally we gave up parsing XML with oracle Parser and now use Apache XML/XSL Parsers.
    Or do you know a better way?
    Thomas

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Working with XML and Button

    Hi,
    How are all of you. Well I am new to Flex. But I have started
    building simple applications. One of the top most problem I am
    facing is working with XML and Button. Can you please assist me in
    this. I am explaining my problem:
    I have an external XML file like this:
    <Menu>
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    <button>
    <idnt>1</idnt>
    <label>Mental Health</label>
    <text>Mental Health pages is currently under
    construction</text>
    </button>
    </Menu>
    Now I want to generate Buttons Dynamically from this XML. And
    the second thing which is the most problematic is that how I code
    it so that when I press the Button labled "General Health", it will
    show the same text as in the XML tag coresponding to tag
    "<label>General Health</label>" ?
    I badly need this. I am realy confused on this. Kindly help
    me.
    Regards
    ..::DeX

    Let's assume that variable "node" contains one element of the
    XML. For example,
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    such that node.label would be "General Health", node.idnt
    would be 0, etc.
    You can build a Button like this:
    var b:Button = new Button();
    b.label = node.label;
    b.data = node; // more on this later
    b.width = 60;
    b.height = 26;
    addChild(b); // critical - adds the button to the display
    list so you can see it
    b.addEventHandler( MouseEvent.CLICK, handleClick );
    You must set the button's width and height unless the button
    will be in a container that will size its own children (like Tile).
    Every Flex component has a data property. You can set it to
    whatever you like. For your needs it makes sense to set each
    Button's data property to the node it relates to.
    Now suppose that code above is in a function, createButton:
    private function createButton( node:XML ) : void {
    // code from above
    Here's how to make all the buttons where "menu" is a variable
    that contains your XML:
    for(var k:int=0; k < menu.button; k++) { // menu.button is
    an XMLList
    createButton( menu.button[k] );
    Now to handle the event:
    private function handleEvent( event:MouseEvent ) : void
    var b:Button = event.currentTarget as Button;
    trace( b.data.text);
    When a button is picked, the description element will print
    in the debug console. Replace the trace with whatever code you
    need.

  • Working with in-memory files

    This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe9cbe5cf462523a0-70e2363b121825b2 0e7-8000.html

    Under Writing and executing dynamic CFM files, <cfoutput>a.jpg Doesn't exists</cfoutput> should be <cfoutput>a.jpg doesn't exist</cfoutput>.
    Under Working with in-memory file system, <cfcomponent name="a" extends"b"> should be <cfcomponent name="a" extends="b">.

  • How to work with xml in java ?

    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ? Please give me some examples for read, write and modify it.
    Thanks in advance.

    >
    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ?>'It depends'. I saw some discussions of XML parsing using different J2SE core XML APIs (the J2SE has a selection of ways to deal with XML) where one API was 20 times faster than the other.
    >
    ... Please give me some examples for read, write and modify it. >Please give me a ponie. ;-)
    You will probably need to do a lot of reading, as well as some experimentation, before you decide which XML API is best suited to the particular task you are facing.
    >
    Thanks in advance.>No worries.

  • Working with bootstrap css file after opening the browser

    working with bootstrap css file after opening the browser when i came back on working on bootstrap my computer started hanging and opning new tabs  and showing message " A caused the program to stop working correctly.Windows will close thoe program and notify you if  solution is available"

    Hi Geetha,
    1.) button problem:
    i don't know how you open the form - when you do it with a XML file maybe you packed the wrong XML file into your addon installer.
    2.) the flickering can be a problem of formatted searches or interacting with other addons.
    when addon a. changes a field it can be that addon b. does something because of the event from addon a.
    the same can happen when you have formatted searches that do something when a field changes.
    ok - that are my last tipps for this day
    good night
    David

  • Working with HD m2ts files to get best video out burned on disk.

    Working with m2ts video files, how to get best video output.  I have Pinnacle 12U and the video picture that is produced on a burned disk is much better then what is produced in Adobe Premieme PRO CS4.  I would like to continue to use Premieme Pro, but unless I can archive at least the same quality of video it would be hard to make the switch.  I must be missing something???  HELP!!

    More input,  the media file output is VTS.VOB format from Adobe and from Pinnacle it is m2ts.  When you stop the playback m2ts is real sharp and the the VOB is not as clear.  During the playback the m2ts disk is so much better than the Adobe VOB format.
    Does anyone know if this is the best format that Adobe can produce?   It's a shame that with the great High Definition picture that you can now get out of a personal movie camera, that Adobe cannot produce the same quality picture out on disk!!

  • Software available for working with large video files?

    Hello,
    I'm working in PP CS6. I was wondering if there are any workarounds or 3rd party plugins/software that
    make working with really large video files easier and faster?
    Thanks.
    Mark

    Hi Jeff,
    Thanks for helping. This is the first time I shot video with my Nikon D5200. It was only a 3 minute test clip
    set at the highest resolution, 1920x1080-60i. I saw the red line above the clip in PP CS6 and hit the enter
    key to render the clip.
    It took almost 18 minutes or so to render the clip. This is probably normal but I was wondering if there is
    a way to reduce the file size so it doesn't take quite as long to render. I just remember a few years back
    that when the Red camera was out, guys were working with really huge files and there was a program
    from Cine something that they used to reduce the file size and make it more manageable when editing.
    I could be mistaken. I've been out of the editing look for a few years and just getting back into it.
    Thanks.
    Mark
    Here's my PC's components list you asked for:
    VisionDAW 4U 8-Core Xeon Workstation
      2 Intel QUAD-Core Xeon 5365-3.0GHz, 8MB, 1333MHz Processors
      16GB 667MHz Fully Buffered Server Memory Modules (2x2GB)
      Microsoft® Windows® Windows 7 Ultimate (x64)
      WDC 250GB, Ultra ATA100, 7200 rpm, 8MG Buffer Main OS HD
      2 WWDC 750GB, SATA II, 7200 RPM, 16MB Buffer HD (Raid 0)
      2 WDC 750GB, SATA II, 7200 rpm, 16MG Buffer HD (Samples)
      2 WDC 1TB Enterprise Class, SATA II, 7200 RPM, 32MB Buffer Hard Drive
      MOTU 24 I/O (main) / MOTU 2408mk3 (slave)
      Plexor PX-800A 18X Dbl. Layer DVD+/-RW Optical Drive
      Buffalo BuRay Drive (External) BR-816SU2 
      Front Panel USB Acess
      Integrated FireWire (1394a) interface
      Thermaltake Toughpower 850W Power Supply
      3xUAD1 Universal Audio Cards
      NVIDIA QUADRO FX 1800 / Memory 768 MB GDDR3
      CUDA Parallel Processor Cores / 64
      Maximum Display Resolution Digital @60Hz = 2560x1600
      Memory Interface 192Bit
      Memory Bandwidth (GB/sec) / 38.4 GB/sec
      PCI-Express, DUAL-Link DVI 1
      Digital Outputs 3 (2 out of 3 active at a time)
      Dual 25.5" Samsung 2693HM LCD HD Monitors

  • Working with converted .mov files in Premiere Elements 2

    I recently got a digital camera that records .mov clips with H.264 technology. I use it for back up when Im having problems with my regular camcorder. Of course I can work with these .mov files in QuickTime Pro with no problem. But in order to work with them in Premiere Elements 2, it appears I have to export it into the .avi format first. After exporting in QuickTime Pro, when I bring the new .avi file up into Premiere Elements, the color quality is retained, but much of the resolution is lost. Its very pixelated. I understand that .avi and .mov work differently in the way information is stored avi in chunks and mov in streams, but Im wondering if there is a way I can work around this. The reason why I got QuickTime Pro initially was to be able to convert my finished .avi videos made in Premiere Elements 2 into MPEG-4 files using the H.264 codec for better quality. And Im doing that all the time now with no problem. So I am wondering if when I reconvert the .mov clip thats been converted into .avi back into mpeg-4, will the resolution be restored? That is part of my question. The other part is regarding the initial conversion process. Are there settings in QuickTime Pro for converting .mov to .avi with as little loss in resolution as possible? The manual doesnt address this issue specifically. Any ideas or suggestions? OS is Windows XP Media Center edition, computer Sony Vaio dual processor. Thanks, Judy

    Hi again Steve. I'm so embarrassed. After my initial reply to your message I went to the Adobe site to see if they even made Premiere for Mac and learned they don't. I also read a review in Wired that says Premiere 6 is just as good if not better than iMovie which they say has actually been downgraded. I'm using Premiere 2, so I thought I might consider upgrading. Then I watched "Steve's Story" and realized it was you. (Your daughter is a cutie! Adobe must love you.) So my question is this: Would my problem be solved by simply upgrading to Premiere 4? If I do that, would it be compatible with regard to catalog integration with Photoshop Elements 4 or would I have to upgrade to Elements 6? If I upgraded the whole package would my current Photoshop Elements 4 catalog transfer with all tags intact? This is vital for me to know because I rely on them heavily. I realize that I would be skipping a version in the upgrade. Is that possible? Does that matter? Please read my reply to Bill because it explains why I want to use those particular .mov files. Another question for you. I use your excellent book a lot. If I upgrade will it become useless? Finally, since you're the expert, let me tell you what I'm really aiming for and get your advice. I need to start composing my own musical soundtracks to my videos. I want to do it as I'm viewing the timeline. Therefore, I know I need to invest in a midi-capable keyboard or controller and software. The problem is that there are few controllers compatible with Windows XP Media Center Edition. I am told I would need to disable the XP Media Center registry keys for anything to work which wouldn't matter because I don't use Media Center features anyway (like TV hookup, media player, etc.). But messing with the registry sounds a little complex and dangerous to me. There's got to be an easier way. Do you have any advice or recommendations? Can you point me to any helpful resources? Now you see why I want a Mac? Everyone says all this kind of stuff would be so much easier with a Mac. Problem is I have a limited budget and would like to make the most with what I have. I hope I haven't overtaxed you with my questions. Thanks for your patience! Judy

  • Working with old PDF files - Release Clipping Masks

    Hi Everyone....Please Help Me!
    I am regularly required to work with old pdf files for my company, which I have to open in Illustrator to amend and update (we don't have access to the original .ai files).
    Whenever I start to work on these files I have to spend ages just unconnecting the elements of the artwork, usually by right clicking and choosing "release clipping mask"
    Is there a way to just disconnect everything when you open up an old pdf document in Illustrator?
    Tá mo chroi bhríste
    (it has my heart broken - in Irish!)

    Always keeping a careful eye on the effects of released clipping masks, the process can be accelerated using the keyboard shortcuts rather than hunt-and-click.
    Open the PDF.
    Ctrl/Cmd+A (Select All)
    Ctrl/Cmd+Alt/Opt+7 (Object > Clipping Mask > Release) Hold down Ctrl/Cmd+Alt/Opt and tap the 7 key repeatedly to initially release all top-level masks, then continue through the levels of nesting that may be present. With Show Bounding Box and Show Edges active it's easy to see when the releasing has stopped...usually only a few levels.
    Deselect, then find one of the orphaned mask objects, which will have a fill and stroke of None. Select it, then choose Object > Select > Same > Fill & Stroke to select all the orphaned mask objects.
    Delete.

  • My older model ipod (click wheel) no longer works with my BOSE player.  Help!

    My older model ipod (click wheel) no longer works with my BOSE player.  Help!

    that bump knocked the docking port and messed with the click wheel, that is not covered with the warranty
    if you call apple it will be an out of warranty repair in this case

  • Raw files from the new Nikon D810 will not open with either Photoshop CS5.1 or Lightroom 4.  When will a real Adobe solution be available to work with Raw (NEF) files in their native format, using CS5.1 and LR4?

    Raw files from the new Nikon D810 will not open with either Photoshop CS5.1 or Lightroom 4.  When will a real Adobe solution be available to work with Raw (NEF) files in their native format, using CS5.1 and LR4?

    Clarification: this is a user forum; you are not addressing Adobe here.
    The answer to your question as phrased is: never.
    CS5 is history and it is not longer supported.  There will not be any updates or bug fixes for CS5.
    You need to convert the raw NEF files from your D810 to raw DNGs using the free, standalone Adobe DNG Converter 8.6 RC (beta), the first version ever to support that camera.. 

  • Advice needed: The way to solve out of memory problem (or the way to work with big csv files)

    Hello:)
    I'm in trouble: I have a big csv file (over 5gb of web-analytics data) and my 64 bit excel (and 6gb ram)
    I cant load file to data model because of it's size. There is an error "out of memory" in power query. 
    This is the first time when I encountered such a problem.
    What options do I have to work with such a file? To increase memory in my computer? Would it solve the problem? How much do I need to work with 6gb csv? 
    Or may be I can upload my data somewhere to azure and work with it there? 
    So the problem - is there any way to deal with big files using power query? Or I need to become a developer and learn sql or other languages? 
    Thanks in advance.
    Max

    Hi Miguel!
    Thanks for your answer. 
    I've tried to load this file on virtual pc from azure cloud with this config:
    I have increased memory limit in power query settings:
    And still, the proble is the same:
    What I do wrong? 

  • I need to work with the RAW files on a SONY RX100III. I use Photoshop CS5 and a Mac operating system OSX 10.6.

    I need to work with the RAW files on a SONY RX100III camera. I use Photoshop CS5 and a Mac operating system OSX 10.6. Is there an Camera RAW upgrade or an alternative program that works here?

    You don't. Since you have an Intel Mac, buy a Mac OS X 10.6 DVD from the online Apple Store.
    (71894)

Maybe you are looking for