This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: rendering Xlink from a XML by using XSL
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: rendering Xlink from a XML by using XSL
- From: "Handren Ahmed" <handren at chello dot se>
- Date: Fri, 10 Nov 2000 15:55:28 +0100
- Reply-To: xsl-list at mulberrytech dot com
hi!
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 Xlink...how 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@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Eric van der Vlist
Sent: den 10 november 2000 12:33
To: xsl-list@mulberrytech.com
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