Click here to Skip to main content
15,905,238 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionproblem with transforming only a part of xml file Pin
sishya16-Jul-06 1:08
sishya16-Jul-06 1:08 
QuestionXSL to XML and preserve line breaks [modified] Pin
David Fawn15-Jul-06 2:23
David Fawn15-Jul-06 2:23 
QuestionAnother problem... Pin
Support12313-Jul-06 22:01
Support12313-Jul-06 22:01 
QuestionRe: Another problem... [modified] Pin
Support12313-Jul-06 22:07
Support12313-Jul-06 22:07 
QuestionHow to change cursor in SVG document? Pin
Yeast2713-Jul-06 7:33
Yeast2713-Jul-06 7:33 
QuestionXQuery : Filter out duplicates [modified] Pin
DIMPLE_R13-Jul-06 0:47
DIMPLE_R13-Jul-06 0:47 
AnswerRe: XQuery : Filter out duplicates Pin
DIMPLE_R13-Jul-06 2:34
DIMPLE_R13-Jul-06 2:34 
QuestionXPath: finding nodes that have an attribute containing a word Pin
Taka Muraoka12-Jul-06 0:51
Taka Muraoka12-Jul-06 0:51 
I'm trying to write an XPath query to match a node that has an attribute that contains a certain word. The obvious *[@attr="findme"] only works if the target attribute consists of *only* the word "findme". My target XML nodes might have the attribute "foo findme bar".

Using *[contains(@attr,"findme")] doesn't quite work either since it will also match a node if the attribute contains "x-findme", for example.

The best I've been able to come up with is this:
*[contains(concat(" ",concat(@class," ")," findme ")]
but this is obviously clumsy.

Is there a better way e.g. some way I can define my own XPath extension function called contains_word() that I can get MXSML to invoke?




0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.

Awasu 2.2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

AnswerRe: XPath: finding nodes that have an attribute containing a word Pin
Dustin Metzgar12-Jul-06 9:15
Dustin Metzgar12-Jul-06 9:15 
GeneralRe: XPath: finding nodes that have an attribute containing a word Pin
led mike12-Jul-06 9:17
led mike12-Jul-06 9:17 
GeneralRe: XPath: finding nodes that have an attribute containing a word Pin
Dustin Metzgar12-Jul-06 10:01
Dustin Metzgar12-Jul-06 10:01 
GeneralRe: XPath: finding nodes that have an attribute containing a word Pin
Taka Muraoka12-Jul-06 20:46
Taka Muraoka12-Jul-06 20:46 
QuestionWeb Services, (.NET), WSE 3.0 Pin
Jawz-X11-Jul-06 6:34
Jawz-X11-Jul-06 6:34 
AnswerRe: Web Services, (.NET), WSE 3.0 Pin
led mike12-Jul-06 9:25
led mike12-Jul-06 9:25 
GeneralRe: Web Services, (.NET), WSE 3.0 Pin
Jawz-X13-Jul-06 7:18
Jawz-X13-Jul-06 7:18 
GeneralRe: Web Services, (.NET), WSE 3.0 Pin
led mike13-Jul-06 7:58
led mike13-Jul-06 7:58 
QuestionSpeech / dictation add-ins Pin
Mike Osbahr11-Jul-06 5:18
Mike Osbahr11-Jul-06 5:18 
Questionusing .NET XslCompiledTransform? Pin
CherezZaboro10-Jul-06 11:29
CherezZaboro10-Jul-06 11:29 
AnswerRe: using .NET XslCompiledTransform? Pin
led mike10-Jul-06 11:51
led mike10-Jul-06 11:51 
QuestionRe: using .NET XslCompiledTransform? Pin
3nbar, A7mad A2-Aug-06 9:06
3nbar, A7mad A2-Aug-06 9:06 
AnswerRe: using .NET XslCompiledTransform? Pin
Dustin Metzgar2-Aug-06 9:38
Dustin Metzgar2-Aug-06 9:38 
QuestionFop problems Pin
Support12310-Jul-06 5:25
Support12310-Jul-06 5:25 
AnswerRe: Fop problems Pin
Dustin Metzgar10-Jul-06 5:36
Dustin Metzgar10-Jul-06 5:36 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:42
Support12310-Jul-06 5:42 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:54
Support12310-Jul-06 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.