19 messages in com.canoo.lists.webtestRe: Re: [Webtest] [dev] source cleanu...
FromSent OnAttachments
Marc Guillemot23 Sep 2004 01:50 
Dierk Koenig23 Sep 2004 02:38 
Marc Guillemot24 Sep 2004 00:51 
Dierk Koenig24 Sep 2004 02:09 
Marc Guillemot30 Sep 2004 01:59 
Dierk Koenig11 Oct 2004 09:21 
Dierk Koenig11 Oct 2004 10:01 
Marc Guillemot12 Oct 2004 05:25 
Marc Guillemot12 Oct 2004 05:28 
dier...@mail.canoo.com12 Oct 2004 08:44 
dier...@mail.canoo.com12 Oct 2004 08:47 
Dierk Koenig13 Oct 2004 01:30 
Marc Guillemot13 Oct 2004 02:16 
Dierk Koenig13 Oct 2004 05:43 
Marc Guillemot13 Oct 2004 07:01 
Dierk Koenig13 Oct 2004 08:06 
Eric Pugh13 Oct 2004 09:28 
Dierk Koenig14 Oct 2004 00:45 
Dierk Koenig15 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>
&lt;<tag>testSpec</tag>&#160;<att>name</att><val>Follow&#160;target&#160;frame..</val>&gt;<n/> <t/>&lt;<tag>config</tag>&#160;...&#160;/&gt;<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>
&lt;<tag>testSpec</tag>&#160;<att>name</att><val>Follow&#160;target&#160;frame..</val>&gt;<n/> <t/>&lt;<tag>config</tag>&#160;...&#160;/&gt;<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

---------------- End of Message -----------------