Bill Fenner wrote:
>   The xml2rfc format has a non-standard inclusion method: it uses
> <?rfc include="filename"?>, and the processor has a path in which to
> search for filename.
> 
>   I'm approximating this with an xslt transform that finds these
> processing instructions and calls document(filename,.).  "." is the
> node whose base to use when resolving a relative URL; in this case
> it's the copy of the document that I made for the process with
> copyDocument - so the include files in the same directory don't make
> it.
> 
>   Alternately, is there a way to pass %p to a transform?

* a process command does not necessarily need to include a copyDocument 
element. May be you don't need to pass a %p to the transform element. 
May be you can directly transform the original document.

* If the above idea does not work, you can pass %p (or any other process 
command variable) using an XSLT style sheet parameter.

Example:

---
<transform stylesheet="t.xsl"
            file="from.xml" to="to.xml">
   <parameter name="doc.dir.url">%p</parameter>
</transform>
---


Reply via email to