19 messages in com.canoo.lists.webtestRe: Re: [Webtest] [dev] source cleanu...| From | Sent On | Attachments |
|---|---|---|
| Marc Guillemot | 23 Sep 2004 01:50 | |
| Dierk Koenig | 23 Sep 2004 02:38 | |
| Marc Guillemot | 24 Sep 2004 00:51 | |
| Dierk Koenig | 24 Sep 2004 02:09 | |
| Marc Guillemot | 30 Sep 2004 01:59 | |
| Dierk Koenig | 11 Oct 2004 09:21 | |
| Dierk Koenig | 11 Oct 2004 10:01 | |
| Marc Guillemot | 12 Oct 2004 05:25 | |
| Marc Guillemot | 12 Oct 2004 05:28 | |
| dier...@mail.canoo.com | 12 Oct 2004 08:44 | |
| dier...@mail.canoo.com | 12 Oct 2004 08:47 | |
| Dierk Koenig | 13 Oct 2004 01:30 | |
| Marc Guillemot | 13 Oct 2004 02:16 | |
| Dierk Koenig | 13 Oct 2004 05:43 | |
| Marc Guillemot | 13 Oct 2004 07:01 | |
| Dierk Koenig | 13 Oct 2004 08:06 | |
| Eric Pugh | 13 Oct 2004 09:28 | |
| Dierk Koenig | 14 Oct 2004 00:45 | |
| Dierk Koenig | 15 Oct 2004 06:41 |
| Subject: | Re: Re: [Webtest] [dev] source cleanup: xsl document()![]() |
|---|---|
| From: | dier...@mail.canoo.com (dier...@mail.canoo.com) |
| Date: | 10/12/2004 08:47:13 AM |
| List: | com.canoo.lists.webtest |
Ah, now I understand. This is cool and elegant!
thanx Mittie
-------- Original Message --------
From: mgui...@yahoo.fr Sent: Tue Oct 12 14:25:34 CEST 2004 To: webt...@lists.canoo.com CC: Subject: Re: [Webtest] [dev] source cleanup: xsl document()
Salut Dierk,
and you want an example too! This means, that I have to test by myself, not only
to know that it's possible ;-)
Ok, I've got it (and I've improved my xslt knowledge by the way).
An example:
first in syntax.xml, let's change <code caption="followframe"> &followframeExample; </code>
to <code caption="followframe" src="examples/followframeExample.xml"/>
then make examples/followframeExample.xml a valid xml file like:
<code>
<<tag>testSpec</tag> <att>name</att><val>Follow target frame..</val>><n/>
<t/><<tag>config</tag> ... /><n/>
....
</code>
and finally in WhitePaperStyle.xsl change <div class="code"> <xsl:apply-templates/> </div>
to: <div class="code"> <xsl:apply-templates select="document(@src)/code"/> </div>
and that's it.
Marc.
Dierk Koenig wrote:
what about using xsl:document in the xslt rather than entities in the xml? Indeed the doctype with the entities is the cause of all the errors reported during the xslt transformation.
Does xsl:document remove the dependency?
it should.
Can you please give an example?
cheers Mittie
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
---------------- End of Message -----------------
-------- Original Message --------
From: mgui...@yahoo.fr Sent: Tue Oct 12 14:25:34 CEST 2004 To: webt...@lists.canoo.com CC: Subject: Re: [Webtest] [dev] source cleanup: xsl document()
Salut Dierk,
and you want an example too! This means, that I have to test by myself, not only
to know that it's possible ;-)
Ok, I've got it (and I've improved my xslt knowledge by the way).
An example:
first in syntax.xml, let's change <code caption="followframe"> &followframeExample; </code>
to <code caption="followframe" src="examples/followframeExample.xml"/>
then make examples/followframeExample.xml a valid xml file like:
<code>
<<tag>testSpec</tag> <att>name</att><val>Follow target frame..</val>><n/>
<t/><<tag>config</tag> ... /><n/>
....
</code>
and finally in WhitePaperStyle.xsl change <div class="code"> <xsl:apply-templates/> </div>
to: <div class="code"> <xsl:apply-templates select="document(@src)/code"/> </div>
and that's it.
Marc.
Dierk Koenig wrote:
what about using xsl:document in the xslt rather than entities in the xml? Indeed the doctype with the entities is the cause of all the errors reported during the xslt transformation.
Does xsl:document remove the dependency?
it should.
Can you please give an example?
cheers Mittie
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
---------------- End of Message -----------------




