RE: rendering Xlink from a XML by using XSL

Subject: RE: rendering Xlink from a XML by using XSL
From: "Handren Ahmed" <handren@xxxxxxxxx>
Date: Fri, 10 Nov 2000 15:55:28 +0100

Thank you for youre answer.
What can I do, if I want to use xlink:show='embed'? is there any Xhtml-tag
even for that?
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 can I see the effect of the
Xlinks-atribute and behavior "content-role, content-title, acutate, shoe,
behavior, ..." without involvment of Xhtml.
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="";
> xlink:show="new"
> xmlns: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}">

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">

Hope this helps.

Eric van der Vlist       Dyomedea              

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread