I ahve to agree with that. Our webpages at http://publications.uu.se are
builded dynamically from XSL and XML. Much of the contents is include
with something like

<xsl:variable name="lookup" select="document(file.xml)"/>

Than you can access the elements with this XPATH: $lookup/root.

Be careful with different namespaces. If the included file contains
namespace declarations you have to declare them in the master document
and the XPATH will change to $lookup/ns:root

/Uwe

[EMAIL PROTECTED] wrote:

>>I'm thinking in the direction of using the dynamic XML-stream as
>>principal input to the XSL Transformation, and use the document()
>>function to access the static XML with the questions...
>>    
>>
>
>I would try to use the document function as few times as possible, so I'd 
>want whichever source has the most elements to be the input to the 
>transformation. You could also read the entire second document into a 
>variable, to have much faster access to it. That way, you'd hit the 
>document function just once. If you have a small amount of static content 
>and a large amount of dynamic content that must frequently read from the 
>static content, you should get substantial speed benefits from writing the 
>static content into a variable with just one call to the document() 
>function.
>
>Jay Bryant
>Bryant Communication Services
>(presently consulting at Synergistic Solution Technologies)
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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

Reply via email to