Click here to Skip to main content
16,006,065 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXSLT grouping Pin
Catimus22-Aug-02 10:50
Catimus22-Aug-02 10:50 
GeneralRe: XSLT grouping Pin
Zdenek Navratil22-Aug-02 21:40
Zdenek Navratil22-Aug-02 21:40 
GeneralProblem with 'contains' function Pin
SigEpUCI19-Aug-02 14:39
SigEpUCI19-Aug-02 14:39 
GeneralRe: Problem with 'contains' function Pin
Michael A. Barnhart20-Aug-02 1:53
Michael A. Barnhart20-Aug-02 1:53 
QuestionAttribute value choking parser? Pin
SigEpUCI16-Aug-02 17:07
SigEpUCI16-Aug-02 17:07 
AnswerRe: Attribute value choking parser? Pin
Michael A. Barnhart17-Aug-02 9:48
Michael A. Barnhart17-Aug-02 9:48 
AnswerRe: Attribute value choking parser? Pin
Zdenek Navratil21-Aug-02 3:04
Zdenek Navratil21-Aug-02 3:04 
GeneralXPath query Pin
Jan R Hansen15-Aug-02 5:00
Jan R Hansen15-Aug-02 5:00 
Hi all,

I just need some help with an XPath query. I have a document like
<my_items>
<item name="number 1">
...
</item>
<item name="number 2">
...
</item>
<!-- note the mis-spelling below -->
<item naem="number 3">
...
</item>

</my_items>

and I would like to get (from a pointer to my_items) all elements with a "name" attribute where the attribute is not empty. That would be item 1 and 2 above.

I've tried with a query like

_bstr_t bstrQuery = "item[(string-length(@name) > 0)]";

- but it doesn't work.

Got any hints ? I really need a useful resource for practical knowledge about XPath. All I've got is Essential XML Quick Reference by Aaron Skonnard and Martin Gudgin. It's definately good - but despite its humble size rather heavy Wink | ;) I suppose a reference is supposed to be that though.

Well, thanks in advance for any help or pointers.

/Jan
GeneralRe: XPath query Pin
Christopher Lord15-Aug-02 7:27
Christopher Lord15-Aug-02 7:27 
GeneralRe: XPath query Pin
Jan R Hansen15-Aug-02 22:13
Jan R Hansen15-Aug-02 22:13 
GeneralRe: XPath query Pin
Philip Fitzsimons16-Aug-02 0:28
Philip Fitzsimons16-Aug-02 0:28 
QuestionWhat wrong with this clause?? Pin
Tida13-Aug-02 9:51
Tida13-Aug-02 9:51 
AnswerRe: What wrong with this clause?? Pin
Christopher Lord14-Aug-02 16:43
Christopher Lord14-Aug-02 16:43 
GeneralRe: What wrong with this clause?? Pin
Tida15-Aug-02 2:55
Tida15-Aug-02 2:55 
AnswerRe: What wrong with this clause?? Pin
Ranjan Banerji15-Aug-02 3:33
Ranjan Banerji15-Aug-02 3:33 
QuestionSchema: exclude element from occuring within itself? Pin
Jonnie White13-Aug-02 1:49
Jonnie White13-Aug-02 1:49 
GeneralEmbedded html Pin
Lilian Chan-Grant6-Aug-02 10:03
Lilian Chan-Grant6-Aug-02 10:03 
GeneralRe: Embedded html Pin
Lilian Chan-Grant7-Aug-02 9:28
Lilian Chan-Grant7-Aug-02 9:28 
Generalexslt set:distinct template order Pin
Chris_D5-Aug-02 6:30
Chris_D5-Aug-02 6:30 
QuestionXML Schema for Office Web Component ver 9 and 10? Pin
Dmitry Novikov2-Aug-02 8:03
Dmitry Novikov2-Aug-02 8:03 
QuestionVARIANT to XML? Pin
mali1-Aug-02 19:34
mali1-Aug-02 19:34 
AnswerRe: VARIANT to XML? Pin
Ranjan Banerji2-Aug-02 5:05
Ranjan Banerji2-Aug-02 5:05 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:27
sussStanford Powers31-Jul-02 18:27 
GeneralLoadxmlerror Pin
suresh_sathya28-Jul-02 18:53
suresh_sathya28-Jul-02 18:53 
GeneralRe: Loadxmlerror Pin
Roman Nurik28-Jul-02 20:32
Roman Nurik28-Jul-02 20:32 

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.