Hello list,

I have an object CustomerList that holds a set of Customer objects; I
turn this into XML and with an appropriate XSLT I can make a nice pdf
report of every customer in it.

So given a CustomerList instance which I can turn to XML using Xstream
and a global-report.xsl file, I can make a nice pdf for every customer
in that object.

I would like though, to use the same CustomerList object to
dynamically create different kinds of reports. For example, every
customer has a "Market" attribute. I want to be able to make a "per
market" report from that object using a xsl transformation.

I would like to have the initial object with all customers of every
market(which means the same XML tree), but in some way have different
transforms that will only "look" at customers of a given market. For
example, if I want to only make a pdf of the users of market "Paris",
I can have a different XSL that will ignore all customers that don't
have "Paris" as their market name, but draw a table of the ones that
have.

How can I make the selection of "market" dynamic? I cannot hardcode
the name of every market in different .xsl files! Basically can I have
one XML file that get dynamically transformed to different pdfs? I
could of course change the initial object in the first place, and then
apply the same transform to different objects, but that would kind of
violate my design.

I hope I am clear, thank you.
Thanos.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to