You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Christian A. Calmeyer" <ch...@aschehoug.no> on 2000/04/17 11:25:52 UTC

xlink:href

Hello

I have difficulties mapping a 'xlink:href' attribute to HTML 'src' attribute (or 'href' for that matter), using Xerces-J 1.0.3 / Xalan 1.0.1.

The transformation looks like:

<img>
<xsl:attribute name="src">
<xsl:value-of select="@xlink:href"/>
</xsl:attribute>
</img>

The xml source is 
<image xlink:type="simple" xlink:href="xxx.jpg"/>

Namespaces are declared in the root element:
<document xmlns="http://xxxxx/" xmlns:xlink="http://www.w3.org/1999/xlink/">

Using <img src="{@xlink:href}"> or any other combination won't work either. You must excuse my ignornance, but after browsing mailinglists and standards, I still can't a way around this problem (apart for skipping the namespace).

Has anyone else run into this?

Yours
Christian A. Calmeyer 





Re: xlink:href - xxx.jpg

Posted by "Christian A. Calmeyer" <ch...@aschehoug.no>.
Make that wildcards .. ;)

C

----- Original Message ----- 
From: "Dan Morrison" <dm...@es.co.nz>
To: <ge...@xml.apache.org>
Sent: Monday, April 17, 2000 12:01 PM
Subject: Re: xlink:href - xxx.jpg


> Christian A. Calmeyer wrote:
> > 
> > The xml source is
> > <image xlink:type="simple" xlink:href="xxx.jpg"/>
> 
> So we've got XSL processing xxx.jpg's already? I wondered how long that
> would take! ;-p
> 
> 
> 
> 
> Sorry Christian, no clue on namespaces here. I just couldn't resist... 
> : Dan Morrison        : The Web Limited    :
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
> 
> 


Re: xlink:href - xxx.jpg

Posted by Dan Morrison <dm...@es.co.nz>.
Christian A. Calmeyer wrote:
> 
> The xml source is
> <image xlink:type="simple" xlink:href="xxx.jpg"/>

So we've got XSL processing xxx.jpg's already? I wondered how long that
would take! ;-p




Sorry Christian, no clue on namespaces here. I just couldn't resist... 
: Dan Morrison        : The Web Limited    :