Hi,

Perhaps if I help you understand what we are doing you could this sort of 
functionality?

We are using stylesheets as a way to provide document validation and 
updating. The xincludes are not an issue for the validation, but they are 
for the updating. For example, we have some xincludes in a document that 
are there as part of a template which we wish to make part of the document 
(by cutting and pasting). But we have other sections that we never wish to 
update, things such as glossaries--when the glossary file gets updated, we 
want the documents which include the glossary to reflect this. The problem 
is that when we run a stylesheet that updates the document (one such 
stylesheet is used to make sure that every element in the document has a 
unique ID tag), the expansion of the xincludes means that the glossary will 
no longer be updated automatically.

I understand that this could also be done using Java DocumentHooks. But we 
already use these stylesheets elsewhere in out process, outside of XMLMind. 
Applying the stylesheets through XMLMind results in less code repetition 
and it ensures that the same results are achieved no matter how the 
document is processed.

Regards,
--Rick Lansky

At 04:49 AM 1/12/2004, you wrote:
>Rick Lansky wrote:
>>I have an XML document that contains xincludes. As part of the formatting 
>>that our company requires for the document, I call an XMLMind process 
>>that processes this XML document using an XSLT stylesheet. So far so 
>>good. The problem is that when the stylesheet is applied to the document, 
>>the xincludes get fully expanded; when the processing is done I no longer 
>>have lines in the XML that are like...
>><xi:include href="<some url>" 
>>xmlns:xi="http://www.w3.org/2001/XInclude";></xi:include>
>>Instead, this line has been replaced with the content of the file to 
>>which this link points. When I execute this stylesheet from the command 
>>line using xsltproc, this replacement only occurs if I include the 
>>--xinclude flag in the command. Omitting this flag results in no 
>>replacement, which is what I want.
>>Is it possible to get the same level of control when applying stylesheets 
>>from within an XMLMind process?
>
>Sorry but the answer is no.
>
>The feature your describe is certainly very simple to implement, but we 
>don't understand what is the usefulness of transforming the physical 
>representation of an XML document (which is why this feature has not been 
>implemented).
>



Reply via email to