This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > April 2007 > xml newbie
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Bastien Piroue 2007-04-17, 6:28 pm |
| Dear all,
I have a couple of questions about XML and MSXML4.dll:
-- As I have understood by now, there is not yet a XSLT 2.0-
implentation of Microsoft available. Is that right?
-- Is it possible to perfom the following task in XSLT 1.0:
I have a XML containing a huge string like that
<myElement>
abd=Hans
def=Franz
xyz=Hallo
</myElement>
I want to query for the elements after the = - sign, so if I ask for
abd, I want to get Hans and so on.
I have already accomplished this task.
Unfortunately, sometimes the XML looks like that
<myElement>
ABd=Hans
dEf=Franz
xyz=Hallo
</myElement>
The search should be case - insensitive, so querying for abd or ABD
should get the result Hans. Is this possible?
Thank you for your help!
Bastien
| |
| Martin Honnen 2007-04-17, 6:28 pm |
| Bastien Piroue wrote:
> -- As I have understood by now, there is not yet a XSLT 2.0-
> implentation of Microsoft available. Is that right?
That is correct.
> The search should be case - insensitive, so querying for abd or ABD
> should get the result Hans. Is this possible?
The translate function can help, see
<http://www.w3.org/TR/xpath#function-translate>
but you will then need to list all the characters you want to translate e.g.
translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|