Click here to Skip to main content
15,906,463 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: 1st stab at xsl Pin
Malcolm Smart4-Aug-06 4:39
Malcolm Smart4-Aug-06 4:39 
GeneralRe: 1st stab at xsl Pin
Dustin Metzgar4-Aug-06 5:13
Dustin Metzgar4-Aug-06 5:13 
GeneralRe: 1st stab at xsl Pin
Malcolm Smart4-Aug-06 5:33
Malcolm Smart4-Aug-06 5:33 
GeneralRe: 1st stab at xsl Pin
Malcolm Smart4-Aug-06 5:39
Malcolm Smart4-Aug-06 5:39 
GeneralRe: 1st stab at xsl Pin
Dustin Metzgar4-Aug-06 5:49
Dustin Metzgar4-Aug-06 5:49 
QuestionNeed Complete reference on XPath Pin
Rizwan Bashir3-Aug-06 23:36
Rizwan Bashir3-Aug-06 23:36 
AnswerRe: Need Complete reference on XPath Pin
Dustin Metzgar4-Aug-06 4:24
Dustin Metzgar4-Aug-06 4:24 
QuestionHow to match several different elements in the middle of XPath? Pin
CherezZaboro3-Aug-06 9:46
CherezZaboro3-Aug-06 9:46 
Consider this xml:
<br />
<rrx id="someother">...</rrx><br />
<rrx id="Zones"><br />
 <f name="NM"><br />
  <p name="xoxoxo"/><br />
 </f><br />
 <s name="GB"><br />
  <p name="xexexe"/><br />
  <p name="xaxaxa"/><br />
 </s><br />
 <a name="SP"><br />
  <p name="hmhmhm"/><br />
 </a><br />
 <b name="Alien"><br />
  <p name="opsops"/><br />
 </b><br />
</rrx><br />


I need to select all "p" elements in "f","s" or "a" with a given "name" but not "b" which are in "rrx" with particular "id". So I'm trying to come up with or statement for f,s,a in the middle of XPath.
Using XSLT 2.0 and Xpath 2.0 this works fine:

//rrx[@id='Zones']/(f|s|a)[@name='GB']/p - I should get xexexe and xaxaxa and if
//rrx[@id='Zones']/(f|s|a)[@name='SP']/p - I need hmhmhm

But good old 1.0 says it's invalid. That () are not allowed there. How else would the XPath then look?

OMG | :OMG: Sleepy | :zzz: D'Oh! | :doh:
AnswerRe: How to match several different elements in the middle of XPath? Pin
Erik Molenaar8-Aug-06 5:08
Erik Molenaar8-Aug-06 5:08 
QuestionPage width in xsl Pin
Support1232-Aug-06 22:31
Support1232-Aug-06 22:31 
AnswerRe: Page width in xsl Pin
Support1232-Aug-06 22:52
Support1232-Aug-06 22:52 
QuestionRe: Page width in xsl I WAS WRONG Pin
Support1233-Aug-06 0:09
Support1233-Aug-06 0:09 
AnswerRe: Page width in xsl I WAS WRONG Pin
Dustin Metzgar3-Aug-06 6:27
Dustin Metzgar3-Aug-06 6:27 
QuestionXPath syntax to find all nodes that don't have some attribute at all? [modified] Pin
CherezZaboro1-Aug-06 6:41
CherezZaboro1-Aug-06 6:41 
AnswerRe: XPath syntax to find all nodes that don't have some attribute at all? Pin
Dustin Metzgar1-Aug-06 7:36
Dustin Metzgar1-Aug-06 7:36 
GeneralRe: XPath syntax to find all nodes that don't have some attribute at all? Pin
CherezZaboro1-Aug-06 8:03
CherezZaboro1-Aug-06 8:03 
Question&amp;le; in XML Doc Pin
Paul Selormey31-Jul-06 19:55
Paul Selormey31-Jul-06 19:55 
AnswerRe: &le; in XML Doc Pin
Dustin Metzgar1-Aug-06 3:22
Dustin Metzgar1-Aug-06 3:22 
GeneralRe: &le; in XML Doc Pin
Paul Selormey1-Aug-06 3:57
Paul Selormey1-Aug-06 3:57 
GeneralRe: = in XML Doc Pin
Dustin Metzgar1-Aug-06 4:27
Dustin Metzgar1-Aug-06 4:27 
GeneralRe: = in XML Doc Pin
Paul Selormey1-Aug-06 14:44
Paul Selormey1-Aug-06 14:44 
QuestionCant parse elements with underscores Pin
FrancisMH31-Jul-06 14:21
FrancisMH31-Jul-06 14:21 
AnswerRe: Cant parse elements with underscores Pin
Dustin Metzgar1-Aug-06 3:30
Dustin Metzgar1-Aug-06 3:30 
Questionweb service connection error. Pin
Goodway31-Jul-06 2:06
Goodway31-Jul-06 2:06 
QuestionDesigning a GUI Pin
_AnsHUMAN_ 30-Jul-06 19:50
_AnsHUMAN_ 30-Jul-06 19:50 

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.