Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Creating a HTML using 2XMLs and XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating a HTML using 2XMLs and XSLT" Watch "Creating a HTML using 2XMLs and XSLT" New topic
Author

Creating a HTML using 2XMLs and XSLT

Tarun Chatterjee
Greenhorn

Joined: Mar 07, 2005
Posts: 25
Can anyone suggest how to use 2 XMLs in XSLT to create a HTML from XSL.

I tried to use 1XML in XSL(client side) and other XML in the transformer(Server Side).

I want to use both the XMLs on server side

Can anyone suggest ?

Tarun
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18708
    
    8

Use the document(URI) function in your XSLT to access an XML document other than the primary input.
Tarun Chatterjee
Greenhorn

Joined: Mar 07, 2005
Posts: 25
Thanks Paul.

I have used document(URI) for ther 2nd XML. Thats client side.
MY requirement says that I need to do it on server side.
I have a dynamic XML, 1 Error XML on server side which i need to merge.

ON client side i have to use Static XML in document(URI).

My issue is how do i use 2 XMLs on server side using Transformer.

Tarun
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating a HTML using 2XMLs and XSLT