Re: [Xmltask-users] Question on behavior of <attr> action
Brought to you by:
bagnew
From: <ph...@wi...> - 2005-06-13 13:09:11
|
Brian, Thanks for tweaking the java.version. I can wait until you are finished investigating the xmlns issue. I have a work around for it so it is not too pressing. I have changed the name to 'xmlns:changeme' and then use the ant 'replace' task to change the 'xmlns:changeme' to 'xmlns'. Thanks for your help, Pete > Hi Pete, > > I've made a mod to xmltask to reflect the java.vm.version vs. > java.version issue you brought up. I'm running through testing it. If > you want a copy please let me know and I can ship a copy to you for > feedback. > > Re. your xmlns issue, I think this is an issue with default namespacing. > I'm looking at the thread here http://www.xalan-xsl.com/msg/2031.html > which although refering to XSLTs is using the same underlying stuff. I'm > still trying to work out what's going on but not making too much > progress (obviously if I changed xmlns to xmls (say) then your attribute > setting works). I believe that the attribute setting *is* working but > the transformer outputting the XML is choosing not to display namespace > info. > > Brian > > ph...@wi... wrote: > >>Brian, >> >>I tried this with both jrockit 1.5 and Sun j2se 1.5 with the same results >>(see below). I also used xmltask version 1.10.6 and 1.10.7. I am using >>Apache Ant version 1.6.2 for both runs. >> >>As a separate issue, when using jrockit the class XPathAnalyserFactory >>looks at the system property 'java.vm.version' to decide if the vm is 1.5 >>or 1.4. As you can see in the output from java -version for the jrockit >>run the string 'dra-44450-20050503-2021-win-ia32' is in the field >>java.vm.version. The 1.10.6 version has a small patch applied that checks >>for 1.4 first and defaults to 1.5 to allow proper creation of the >>XPathAnalyser instance. >> >>Would it be possible if you considered switching this test over to the >>variable java.version as an alternative to java.vm.version? >> >>Thanks, >> >>Pete Hale >> >>====== jrockit output ============= >>Buildfile: xmlnserror.xml >> >>error: >> [xmltask] Document --> >> [xmltask] <root xmlns=""> >> [xmltask] </root> >> >> [xmltask] Document <-- >> [xmltask] Document --> >> [xmltask] <root xmlns="" xmlns:a="hoo"> >> [xmltask] </root> >> >> [xmltask] Document <-- >> >>BUILD SUCCESSFUL >>Total time: 0 seconds >>java version "1.5.0_03" >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) >>BEA JRockit(R) (build dra-44450-20050503-2021-win-ia32, R25.2.0-16) >> >>============== j2se 1.5 output ============ >>Buildfile: xmlnserror.xml >> >>error: >> [xmltask] Document --> >> [xmltask] <root xmlns=""> >> [xmltask] </root> >> >> [xmltask] Document <-- >> [xmltask] Document --> >> [xmltask] <root xmlns="" xmlns:a="hoo"> >> [xmltask] </root> >> >> [xmltask] Document <-- >> >>BUILD SUCCESSFUL >>Total time: 0 seconds >>java version "1.5.0_02" >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b07) >>Java HotSpot(TM) Client VM (build 1.5.0_02-b07, mixed mode) >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you >> shotput >>a projector? How fast can you ride your desk chair down the office luge >> track? >>If you want to score the big prize, get to know the little guy. >>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >>_______________________________________________ >>Xmltask-users mailing list >>Xml...@li... >>https://lists.sourceforge.net/lists/listinfo/xmltask-users >> >> >> > > -- > Brian Agnew http://www.oopsconsultancy.com > OOPS Consultancy Ltd brian @ oopsconsultancy.com > Tel: +44 (0)7720 397526 > Fax: +44 (0)20 8682 0012 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Xmltask-users mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmltask-users > |