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

RE: Extract attribute from markup returned by extensio

Subject: RE: Extract attribute from markup returned by extension function
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 3 Aug 2005 19:45:15 +0100
attribute code xml
(a) do you want an XSLT 1.0 or 2.0 solution?

(b) how robust must it be? Do you have to deal with pathological input such
as

<img alt='src="this/is/a/decoy"' src="this/is/real"/>

Michael Kay
http://www.saxonica.com/ 



> -----Original Message-----
> From: John [mailto:john-xsl-list@xxxxxxxx] 
> Sent: 03 August 2005 18:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Extract attribute from markup returned by 
> extension function
> 
> Hello,
> 
> An XSL extension function returns markup such as <img 
> src="/path/to/image.jpg" border="0" alt="" />.  I can't 
> guarantee the / 
> will be provided so it may not be XML markup.  I am only 
> interested in 
> the value of the src attribute.  I am hoping the code can be 
> as flexible 
> as possible (attributes could appear in any order, and it 
> would be nice 
> to support single quotes (') in addition to double-quotes (") in the 
> data.  I was thinking of starting with the string functions, but I am 
> curious if there might be a better way.
> 
> TIA,
> 
>     -John

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.