[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Decode Base64 data and namespaces

Subject: Re: Decode Base64 data and namespaces
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 Jun 2010 12:03:31 +0100
Re:  Decode Base64 data and namespaces
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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.