[Webtest] [dev] source cleanup: xsl document()
Dierk Koenig
webtest@lists.canoo.com
Wed, 13 Oct 2004 10:31:09 +0200
Hm, thinking a second time...
It looks like we just trade the entity for
an attribute. So conceptually the dependency
isn't removed. Only the resolving goes from
parsing time to xslt processing time.
When answering the question "what external
files do e.g. syntax.xml depends upon?" we could
just look at the entity declarations and find
a nice overview there. We will loose that
with the new approach.
your opinion?
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of
> dierk.koenig@mail.canoo.com
> Sent: Dienstag, 12. Oktober 2004 17:48
> To: WebTest@lists.canoo.com
> Subject: Re: Re: [Webtest] [dev] source cleanup: xsl document()
>
>
> Ah, now I understand.
> This is cool and elegant!
>
> thanx
> Mittie
>
> -------- Original Message --------
>
>
> From: mguillemot@yahoo.fr
> Sent: Tue Oct 12 14:25:34 CEST 2004
> To: webtest@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 targe
> t 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
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
> ---------------- End of Message -----------------
>
>
> -------- Original Message --------
>
>
> From: mguillemot@yahoo.fr
> Sent: Tue Oct 12 14:25:34 CEST 2004
> To: webtest@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 targe
> t 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
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
> ---------------- End of Message -----------------
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>