W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2008

RE: Dynamic @href value for p:document?

From: <Toman_Vojtech@emc.com>
Date: Thu, 30 Oct 2008 10:26:21 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870D381463@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi,

You will need to use p:load to do this:

    <!--
       Try to apply a stylesheet on each document referenced by
       matrix/@href.
    -->
    <p:for-each>
       <p:iteration-source select="//matrix"/>
       <p:load>
          <p:with-option name="href" select="@href"/>
       </p:load>
       <p:xslt>
          <p:input port="stylesheet">
	     ... 

Regards,
Vojtech

-----Original Message-----
From: public-xml-processing-model-comments-request@w3.org
[mailto:public-xml-processing-model-comments-request@w3.org] On Behalf
Of Florent Georges
Sent: Thursday, October 30, 2008 3:22 PM
To: XProc Comments
Subject: Dynamic @href value for p:document?


  Hi,

  I don't feel this list is the best one for this question, because I
guess what I'd like to achieve is possible with the current WD, but I
don't think there is any general-purpose XProc list yet.  And in case
this is not possible with the WD...

  I have document URIs in an XML document, and I would like to apply a
stylesheet over each one.  Something like the following (except that
p:document/@href doesn't accept an AVT):

    <!--
       Try to apply a stylesheet on each document referenced by
       matrix/@href.
    -->
    <p:for-each>
       <p:iteration-source select="//matrix"/>
       <p:xslt>
	  <p:input port="source">
	     <p:document href="{ @href }"/>
	  </p:input>
	  <p:input port="stylesheet">
	     ...

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Thursday, 30 October 2008 14:27:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC