Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: Design Questions

Design Questions

Daniel Leuck
Wed Aug 17 21:47:00 HST 2005


Hi Seth,

> In XPath, they use the [] as the conditional expression.  If we use
> that to reference values and attrs, how do we do conditionals?
> 
> Oh, is this legal in SDL?
> 
> example foo=1
> example foo=2

Yes.
 
> If duplicate tag names are allowed, then we'll need to be able to say
> this:
> 
> "return the tag with the name 'example' with an attr name foo equal to 2"
> 
> in xpath, it's something like example[@foo='2']

Hmmm... I suppose it would be good to keep with an existing standard (at
least as close as possible.)  We would have to remove the quotes because 2
is actually a number in SDL, but we could keep the rest.

Dan




Query: [How to search]

Display: Description: Sort: