Dear All,

First time posting on this list - please excuse any duplication - have
looked through archive, cookbook, FAQ etc.

I am currently putting a system together which reads a large(ish) XML
document
from a database containing daily results from another of my
applications.  
The data in each days document does not change too much - if it does I
can
detect it - so I decided to cache the dom4j Document (I'm using Tomcat).

Different users should get different views using XSLT (also compiled &
cached)
against the "master" Document.

Essentially, my question is how to best pre-filter the master Document
for different
users.

For example - a reduced view of my Document could be...

------------------------------------------------------

<All CloseDate="20031128">
  <Zone Name="Global::CB">
    <Strategy Name="GL-CB-0001" DisplayClass="1">
        ...
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
  </Zone>
  <Zone Name="Japan::CB">
    <Strategy Name="JP-CB-0001" DisplayClass="1">
        ...
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
  </Zone>
  <Zone Name="NonJapan::CB">
    <Strategy Name="JP-CB-0001" DisplayClass="1">
        ...
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
    <Strategy Name="...">
  </Zone>

        ...
        etc
        ...
</All>

------------------------------------------------------

User A : might want Zones "Global::CB" & "Japan::CB"
User B : might want the entire data set
User C : might want just "NonJapan::CB"


I could try to support this at the XSLT level but I'm wondering whether
to
do it at the dom4j level by returning a new "sub-Document" from the
master.
The trade off being the Document creation Vs. XSLT complexity.

Is there a "best" way to do this sort of thing?

Should I be dropping down to SAX/filters etc?

Any wisdom on this very much appreciated.


Best regards
Chris


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to