Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Generating Attribute Excerpts Generating Attribute ExcerptsTo: NULL Date: 4/5/2005 9:22:00 PM Hi all,
i need some xslt support for a system which has to generate several xml
file out of one input file.
The input file contains the data for lets say several languages,
and the generated output files should contain the info for just one
language.
So the input looks like
<Input>
<E i="1" a1="1" a2="2" b1="y" b2="x" />
<E i="2" a1="1" a2="2" b1="w" b2="v"/>
<R i="1" u1="j" u2="k" />
<R i="1" u1="q" u2="s" />
</Input>
the desired output FILES are:
<Output>
<E i="1" a1="1" b1="y" />
<E i="2" a1="1" b1="w"/>
<R i="1" u1="j" />
<R i="1" u1="q" />
</Output>
AND
<Output>
<E i="1" a2="2" b2="x" />
<E i="2" a2="2" b2="v"/>
<R i="1" u2="k" />
<R i="1" u2="s" />
</Output>
The desired xslt transformation should have a parameter which defines which
version of the excerpt to create ("1" or "2" in this example)
Please note that the attributes have "1" and "2" as suffixes for the
different language attributes,
and this could be used to write the xslt so it can handle the attributes for
one language in a generic way.
The real input files contain more than 2 language versions of the data. (so
there is a3, a4, a5 etc.)
The attributes sets for different elements (E & R in this example) are
different.
Is this a problem which could be handled by the usage of attribute-sets?
Please just let me know any ideas you have
about this kind of xslt problems.
TIA
Radek
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
