Subject: Re: [xsl] XSLT and XInclude? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 23 Mar 2009 11:15:26 +0100 |
I've come across some documents that are using XInclude to fragment a larger tech manual. I've got the basic stylesheet working that reads the document name from the href and then opens it with the doc() function.
In this particular case, I'm able to process the content properly as the included document has a regular structure that I can process directly. I got to thinking though that I might need to process these included files within the context of their use/placement in the referencing document.
Anyway, there was some change tracking markup added via some add/delete elements in a different namespace. Within the parent the namespace was defined, but the included file didn't have the declaration. When this file was passed to the doc function it errored out because the namespace wasn't defined in the included file.
I fixed this problem by correcting the included file, but if I could have passed the context (in this case the namespace information) I wouldn't have had a problem.
-- XSLT/XSL-FO/XQuery training in Los Angeles (New dates!) 2009-06-08 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT and XInclude?, Dan Vint | Thread | Re: [xsl] XSLT and XInclude?, dvint |
Re: [xsl] sorting based on variable, Michalmas | Date | RE: [xsl] XSLT and XInclude?, Michael Kay |
Month |