[xsl] RE: [sly] REPOST: Applying Templates to document loaded with document() function

Subject: [xsl] RE: [sly] REPOST: Applying Templates to document loaded with document() function
From: "Kunal H. Parikh" <kunal@xxxxxxxxxx>
Date: Wed, 24 Apr 2002 08:55:10 +1000
Hi !

The output that I get does not replace the AUTHOR element inside the the
Stage.xml.

I tried doing a xsl:call-template but that didn't quite work either.

I am using msxml4. Do you think that's where the problem lies ?


Thanks for your help,

Kunal

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Peter Davis
Sent: Tuesday, 23 April 2002 12:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] REPOST: Applying Templates to document loaded with
document() function

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What's the problem?  This should work:

<xsl:template match="/">
  <!-- this is all you should need; put this somewhere in tutorial.xsl
-->
  <xsl:apply-templates select="/StageList/Stage/AuthorList/Author"/>
</xsl:template>

<xsl:template match="Author">
  ...
</xsl:template>

On Monday 22 April 2002 19:27, Kunal H. Parikh wrote:
> I have an XML file called stage.xml which refers to Authors and I wish
> to apply the template of Authors to the nodes in
StageList/Stage/Author.

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8xMoqNSZCJx7tYycRAn25AKDWy7pR+tsJ9/m6xAOSjTCnhm9HuQCffLWT
7QrFqoI6PzfOQTeMrsykUSo=
=VpnL
-----END PGP SIGNATURE-----


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread