Re: [xslt] exslt:document and xsltproc

david reid wrote:

  <xsl:for-each select="item">
    <xsl:variable name="uri" select="concat('dir/', name, '.xml')"/>
    <exsl:document method="xml" version="1.0" encoding="utf-8"
      <xsl:apply-templates select="."/>

What I really want is some way of writing out each exsl:document as a
seperate file using a filename based on $uri. Is such a thing possible?
You're not saying what error you get when you
run the above. I do something similar
regularly, for years now, and it just works
as expected.

<name> is a child of <item> in your XML?

Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

OSS Watch: JISC Open Source Advisory Service

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]