Using option in the path for p:document

I've asked this before for p:store, but I haven't been able to google up
an answer for p:document. I need to use an option as the path to an
input document. So instead of:

  <p:xinclude>
    <p:input port="source">
      <p:document href="../../../../olink.xml" />
    </p:input>
  </p:xinclude>

I want to do something like this, where I use $olinkManifest as the path
to the input file:

  <p:xinclude>
    <p:input port="source">
      <p:document>
	<p:with-option name="href"
                       select="$olinkManifest"/>
      </p:document>
    </p:input>
  </p:xinclude>

I'm sure I'm missing something obvious. Can someone help me out?

Thanks,
David

Received on Thursday, 8 August 2013 17:54:34 UTC