Re: [xsl] Decode Base64 data and namespaces

Subject: Re: [xsl] Decode Base64 data and namespaces
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 Jun 2010 12:03:31 +0100
On 28/06/2010 11:39, Siddhi Thakkar wrote:
Hi experts,
I have two questions-
1) Can one element belong to two namespaces?

No, that's asking if one element can have two names.
Of course any number of namespaces can be in scope on a single element
but the element is in the namespace associated with its prefix (or lack of prefix) and there can only be one of those.

2) I have a Base64 string that belongs to an image and what I want to do is to convert that base64 string into an image and display that image in html. I did get a code to do that but through fos, but the problem is

In an ideal world you wouldn't need to do anything, just wrie out
<img src="data:image/png,....base 64 encoded data...."/>
but not every commonly used browser supports the data URI type.
So you'll need to use an extension function of some type. You don't say what processor you are using (since you appear to be using xslt2 from java, i assume it's saxon?) Saxon's extension functions depend on whether you are using the commercial version or not.

The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

Current Thread