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

Re: Re: Identity transformation for XSLT 2.0

Subject: Re: Re: Identity transformation for XSLT 2.0
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sun, 23 Dec 2007 16:51:44 +0100 (CET)
Re:  Re: Identity transformation for XSLT 2.0
Colin Paul Adams wrote:

  Hi Colin,

> doc (concat ("data:application/xml", ';base64,',
> base64Binary($string-value)))

  I don't know any function named base64Binary.  If you mean
xs:base64Binary, I think it should raise an error if your string
contains anything else than the 64 allowed chars.

  Actually, I didn't find any simple way to base64-encode a string in
F&O.  Did I miss something?

> doc (concat ("data:application/xml,",
>              encode-for-iri($string-value)))

  I guess you mean encode-for-uri (URI, not IRI), don't you?

  After a simple test (using the string '<elem/>' and its hard-coded
base64 value 'PGVsZW0vPg==') it seems that Saxon 9 doesn't support the
data scheme, while Gestalt supports it through encode-for-uri but
raises a parsing error with the base64 encoding.

  Regards,

--drkm

























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.