Re: [xslt] exslt:document and xsltproc

Daniel Veillard wrote:
> On Mon, Nov 20, 2006 at 12:38:51PM +0000, david reid wrote:
>> Given Daniels comments, I'll not pursue this any further.
>   If you had given a minimal example from the start, as indicated,
> it would have been immediately clear what was happening. 
>   You seems frustrated by the fact I pointed this out, I'm sorry 
> but those guidelines are there for a reason, one of them is to
> minimize the overall work needed to keep the project alive. The
> alternative is to loose slowly all the prople who gather knowledge
> on the library, and in the end nobody will answer questions. There
> is far more users eager to get their answer than people with 
> good knowledge of the specs and associated code, we must split the
> workload.

Simplified xsl


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version = "1.0"

  <xsl:output method="xml" indent="yes" encoding="utf-8"/>

  <xsl:template match="/">
    <xsl:apply-templates select="doapFiles"/>

  <xsl:template match="doapFiles">
    <xsl:apply-templates select="doapFile"/>

  <xsl:template match="doapFile">
    <xsl:variable name="url" select="concat(@id, '.xml')"/>
    <file><xsl:value-of select="$url"/></file>
    <exsl:document href="{$url}" encoding="UTF-8" indent="yes"
          <xsl:value-of select="URL"/>


xsltproc -o test.xml test.xsl


<?xml version="1.0" encoding="utf-8"?>
<testCase xmlns:exsl="";>
  <exsl:document href="forrest.xml" encoding="UTF-8" indent="yes"
  <exsl:document href="jackrabbit.xml" encoding="UTF-8" indent="yes"

What I want is to have forrest.xml, jackarbbit.xml output, while the
underlying XML is saved as test.xml. Possible?


Have you listened to FeatherCast yet?

Bought the t-shirt?

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