xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian A. Calmeyer" <christian.calme...@aschehoug.no>
Subject xlink:href
Date Mon, 17 Apr 2000 09:25:52 GMT
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 





Mime
View raw message