Subject: Re: [xsl] Newbie ? - dynamic linking two xslt templates From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 21 Sep 2006 09:13:49 +0200 |
Cheers, Abel Braaksma http://abelleba.metacarpus.com
I believe xslt/xml solution is still the best way to do this. I have come up with two xslt templates, one listing all the teachers(teacher directory), and another that generates the teacher's webpage based on a variable that is passed into xslt template. The teacher directory webpage will trigger the teacher xslt and pass a teacher's name, thus creating the teacher webpage. They are both generated from the same xml document, that will be updated by a web form (it's not their yet).
The problem I have is generating the dynamic link that will trigger the teacher xslt template. I have very limited experience with xml/xslt, I have always embedded the xslt page in the xml document like this:
<?xml-stylesheet type="text/xsl" href="xslTemplate.xsl"?>
I don't think this is going to work because I'm using two different xslt templates. I also have no idea on how I would write the link to the teacher template, I would imagine the link would be the same, but I would just be passing a different value to the parameter in the teacher xslt. I have always just linked to the xml page which would trigger the xslt, but I don't think I can do that because I have two xslt templates working off the xml document.
This has to be a simple solution. I'm using Jenni Tennison's "Beginning XSLT 2.0" for reference. It has helped immensely in suggesting I compile through saxon, so I can view output. I'm hung up on creating the dynamic links that will link the two xslt templates together.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Newbie ? - dynamic linking tw, Jeremy Patterson | Thread | RE: [xsl] REPOST - duplicate footno, Ann Marie Rubin \(an |
Re: [xsl]   appearing as ? in F, Abel Braaksma | Date | [xsl] writing error file, Frank Marent |
Month |