xsl-list
[Top] [All Lists]

RE: doc() concat expression and whitespace error

2004-11-15 20:36:09
For ASCII characters the %HH escape code is simply the ASCII numeric value
as two hex digits. 

Michael Kay

-----Original Message-----
From: Bruce D'Arcus [mailto:bdarcus(_at_)myrealbox(_dot_)com] 
Sent: 16 November 2004 03:23
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] doc() concat expression and whitespace error


On Nov 15, 2004, at 9:40 PM, Michael Kay wrote:

select='doc(concat("http://localhost:8080/exist/servlet/db/mods? 
_query=",
"/mods:modsCollection/mods:mods[(_at_)ID='", ., "']"))'/>

OK, that works; thanks!

But since the apostrophe is actually a character appearing 
in a URI, it
might be even better to escape it as %H27. Square brackets 
in a URI  
should
also probably be %HH-escaped.

So what is the escape for ] and [?

BTW, to be able to suck in XML data via the doc() function 
like this --  
where I send a query to a database and get a result back for  
transformation -- is really useful.

Bruce


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--