Subject: Re: rendering Xlink from a XML by using XSL From: Eric van der Vlist <vdv@xxxxxxxxxxxx> Date: Fri, 10 Nov 2000 16:34:16 +0100 |
Handren Ahmed wrote: > > hi! > > Thank you for youre answer. I'll try to answer your next one, but I think we are deriving off-topic, that the question would be better debated on xml-dev and that you should carry it on over there if you want to pursue the debate ;) > What can I do, if I want to use xlink:show='embed'? is there any Xhtml-tag > even for that? No, except maybe using frames. In that case, you'd better copy the nodesets that are linked with these attributes. > The point is, I am writing a composition "in swedish" about the XML, and the > purpose with that composition is to show the strength of XML in combination > with its related teknik such as XSL. > I thought that I could use all of the Xlinks beauty, such as show="embed" or > xlink:type="extended" ect, but it turnes out that it is imposible to me to > implement it. > Could you please tell me how else I could present XML-taggs if not with XSL > "excluding XQL, DOM, SAX, JDOM". > > How can I derive advantage out of Xlink...how can I see the effect of the > Xlinks-atribute and behavior "content-role, content-title, acutate, shoe, > behavior, ..." without involvment of Xhtml. The short answer, IMHO, is that you can't yet. XLink is not yet a recommendation and is not supported by the browsers. While you can rather easily take advantage of such new technologies and specifications on a server where you control more or less what you're installing, it's a very different story on the client side. Using XLink now is taking a bet on something that will not be widely used client side before: a) it is a recommendation, b) it is implemented by new browsers c) these browsers have taken a significant share within the installed base. Untill then, the best you can do is to transform these new features into good old (X)HTML using XSLT (client or server side) ! My 0,02 Euros, Eric > Well, I got a lot of questions, but I well not disturb you more than thatfor > the moment:-). > > NB: I'am using IE5.5 > > Thank you very much > Handren A > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric van der Vlist > Sent: den 10 november 2000 12:33 > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: Re: rendering Xlink from a XML by using XSL > > Handren Ahmed wrote: > > > > hi! > > > > That was exactly what I meant! > > :) > > > I did write following code but it doesn't work either. > > In my xml file I wrote: > > > > <Adress xlink:type="simple" xlink:href="http://www.dsv.su.se" > > xlink:show="new" > > xmlns:xlink="http://www.w3.org/TR/xlink/" > > >Klick here</Adress> > > > > In my xsl file I try to show that link by writing the follwing code: > > <xsl:template match="*[@xlink:href]"> > > <xsl:value-of select="."/> > > </xsl:template> > > > > How can I use Xlink? How can I click on the xlink:-)? > > In this case, you'll probably want to generate some (X)HTML to visualize > this link. > > To generate a (X)HTML hypertext link, you just need to generate a > classical "a" element: > > <xsl:template match="*[@xlink:href]"> > <a href="{@xlink:href}"> > <xsl:apply-templates/> > </a> > </xsl:template> > > And, if you want to handle the xlink:show="new", you can add a more > restrictive template that will be higher priority when xlink:show has > this value: > > <xsl:template match="*[@xlink:href and @xlink:show='new']"> > <a href="{@xlink:href}" target="_blank"> > <xsl:apply-templates/> > </a> > </xsl:template> > > Hope this helps. > > Eric > -- > ------------------------------------------------------------------------ > Eric van der Vlist Dyomedea http://dyomedea.com > http://xmlfr.org http://4xt.org http://ducotede.com > ------------------------------------------------------------------------ > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list -- ------------------------------------------------------------------------ Eric van der Vlist Dyomedea http://dyomedea.com http://xmlfr.org http://4xt.org http://ducotede.com ------------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: rendering Xlink from a XML by u, Handren Ahmed | Thread | Variable Scope, Stuart Wilson |
How do I access the XML document, Bharat . Chintapally | Date | xsl:sort with a randomize ability ?, Robert Koberg |
Month |