tag:blogger.com,1999:blog-4222197394079314848.post2875562454595803975..comments2023-05-10T02:34:45.071-05:00Comments on Mark A. Ziesemer: XML and XSLT Tips and Tricks for JavaMark A. Ziesemerhttp://www.blogger.com/profile/12752422620777325409noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4222197394079314848.post-11897925089530785132011-11-18T09:43:07.101-06:002011-11-18T09:43:07.101-06:00Hi, I read your tip about chaining transformations...Hi, I read your tip about chaining transformations. What I am trying to achieve is slightly different.<br /><br />I am trying to use the result of a xsl transform (from XMLSource1 and StyleSheet1) as a stylesheet for another transform (from XMLSource2) and then output the result<br /><br />How could I achieve this?<br />Cheers,Yannickhttps://www.blogger.com/profile/05150109778382559643noreply@blogger.comtag:blogger.com,1999:blog-4222197394079314848.post-62571324081503774832010-09-02T15:03:00.534-05:002010-09-02T15:03:00.534-05:00Sorry about the earlier anonymous posting! I'v...Sorry about the earlier anonymous posting! I've done this with Apache Xalan and Saxon-B; no problem. If I use the default XSLT processor (i.e. the version of Xalan that Sun wrecked), the first method of chaining XSLTs, at least, fails. Most distressing...SlideGuitaristhttps://www.blogger.com/profile/09086439769845185477noreply@blogger.comtag:blogger.com,1999:blog-4222197394079314848.post-897465027897115542010-08-17T09:41:27.578-05:002010-08-17T09:41:27.578-05:00Anonymous - these are simple examples for demonstr...Anonymous - these are simple examples for demonstration purposes. Each transformer may contain additional properties, e.g. output properties and error listeners, which may not be proper to be used on the final transformation if they had been set for the stylesheet-specific transformations.Mark A. Ziesemerhttps://www.blogger.com/profile/12752422620777325409noreply@blogger.comtag:blogger.com,1999:blog-4222197394079314848.post-17871285491015978622010-08-16T22:07:29.455-05:002010-08-16T22:07:29.455-05:00Mark, I'm not sure why you chain 3 transforms ...Mark, I'm not sure why you chain <b>3</b> transforms in your example: Transformer t = stf.newTransformer(); simply instantiates an "identity transform." You then chain that one to your first Transform that you created from a template, but all you really need to do is get the first one by calling th1.getTransformer().Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4222197394079314848.post-16604129830507775222009-11-24T22:01:10.147-06:002009-11-24T22:01:10.147-06:00You may also want to look at vtd-xml, the latest a...You may also want to look at vtd-xml, the latest and most advanced XML processing<br />API<br /><br /><a href="http://vtd-xml.sf.net" rel="nofollow" rel="nofollow">http://vtd-xml.sf.net</a>Anonymousnoreply@blogger.com