More Exorcist problems

Sonic <[email protected]> Fri, 2 Dec 2005 16:29:36 +0100
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
Hi!

Apart from the topic parameter problem (which I still couldn't solve), I have 
another problem with Snippets:

I use the following XSLT:

<xsl:transform version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:mgd="http://ns.yukatan.fi/2005/midgard">

  <xsl:output indent="yes"/>

  <xsl:template match="mgd:site">
    <mgd:site>
      <xsl:apply-templates select="mgd:midgard_snippetdir"/>
    </mgd:site>
  </xsl:template>

  <xsl:template match="mgd:*">
    <xsl:copy><xsl:apply-templates/></xsl:copy>
  </xsl:template>

</xsl:transform>

The problem is, this does not replicate snippets, just the snippetdirs 
(verified by redirecting the output to the log file)

so I tried adding this line:

  <xsl:template match="mgd:site">
    <mgd:site>
      <xsl:apply-templates select="mgd:midgard_snippetdir"/>
      <xsl:apply-templates select="mgd:midgard_snippet"/>
    </mgd:site>
  </xsl:template>

This replicates the Snippets in question, but it fails to change the id in the 
snippet's "up" field, so it winds up in the wrong directory. 

I would be glad if anyone could tell me if this is a bug in Exorcist (beta-3) 
or if I simply was too stupid (again :-)


Bye,

Andreas

-- 
Adding sound to movies would be like putting lipstick on the Venus de Milo. -- 
Mary Pickford, 1925