RE: [xsl] Transformation using xslt: Two html output

Subject: RE: [xsl] Transformation using xslt: Two html output
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 27 Jun 2006 13:20:17 +0100
With XSLT 2.0, and with some XSLT 1.0 processors using extensions, you can
produce two output files in the same run. The standard way to do this in
1.0, however, is to run the stylesheet twice, using a parameter (a top-level
xsl:param element) to specify which output file you want to generate in each
run.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Shailesh Shinde [mailto:shailesh@xxxxxxxxxxxx] 
> Sent: 27 June 2006 08:47
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Transformation using xslt: Two html output 
> 
> Hi All,
> 
> I have to develop xslt which will output two html files say 
> "source.html"
> and "target.html" on basis of there attributes which are 
> "@langid" and the input xml for the same as below. 
> 
> Can you please provide any references or examples for the same.
> 
> <?xml version="1.0"?>
> <Chapter>
> <Topic>
> <Title>Command Summary</Title>
> <src langid="en-US"><IndexEntry>command 
> summary</IndexEntry>The following is a list of the AutoCAD 
> Electrical commands, a brief description of each and the 
> associated toolbutton.</src> <tgt langid="de-DEU">Target: 
> <IndexEntry>command summary</IndexEntry>The following is a 
> list of the AutoCAD Electrical commands, a brief description 
> of each and the associated toolbutton.</tgt>
> 
> <src langid="en-US"><IndexEntry>command 
> summary</IndexEntry>The following is a list of the AutoCAD 
> Electrical commands, a brief description of each and the 
> associated toolbutton.</src>
> 
> <tgt langid="de-DEU">Target: <IndexEntry>command 
> summary</IndexEntry>The following is a list of the AutoCAD 
> Electrical commands, a brief description of each and the 
> associated toolbutton.</tgt>
> 
> </Topic>
> </Chapter>
> 
> Thanks,
> Shailesh

Current Thread