W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2009

how to get the name of a document?

From: Maxime Bégnis <maxime@neodoc.biz>
Date: Wed, 01 Apr 2009 14:03:00 +0200
Message-ID: <49D357F4.3060502@neodoc.biz>
To: xproc-dev@w3.org
Hi,

Considering this pipeline:

||<p:declare-step name="main" xmlns:p="http://www.w3.org/ns/xproc">

  <p:input port="source" primary="true"/>

  <p:input port="style" primary="false"/>

  <p:xinclude name="included">
    <p:input port="source">
      <p:pipe step="main" port="source"/>
    </p:input>
  </p:xinclude>

  <p:xslt name="xslt">
    <p:input port="parameters">
      <p:empty/>
    </p:input>
    <p:input port="source">
      <p:pipe step="included" port="result"/>
    </p:input>
    <p:input port="stylesheet">
      <p:pipe step="main" port="style"/>
    </p:input>
  </p:xslt>

  <p:for-each>
    <p:iteration-source>
      <p:pipe step="xslt" port="secondary"/>
    </p:iteration-source>
    <p:store>
      <p:with-option name="href" select="?"/>
    </p:store>
  </p:for-each>

</p:declare-step>

the stylesheet outputs several documents using 'xsl:result-document' and
I would like to store them with the name given in the "href" attribute
of 'xsl:result-document'. Does anyone knows if there is a way to get
back this attribute?


Thanks.

Maxime Bégnis
Received on Monday, 6 April 2009 09:21:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 09:21:50 GMT