Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

Getting the count() right #49

Closed
spadafour opened this issue Oct 23, 2015 · 2 comments
Closed

Getting the count() right #49

spadafour opened this issue Oct 23, 2015 · 2 comments

Comments

@spadafour
Copy link
Collaborator

I've got everything solved except for counting the questions; how do I do it? It mentions an preceding::sibling in the instructions, but I'm not sure how to work it in. This is what I've got:

<xsl:value-of select="count(fs[f[@select='Yes']]) + 1"/>

Any tips?

@spadafour
Copy link
Collaborator Author

Okay, I've changed my code, focusing on counting questions, but its still not turning out right (it skips only number 3 for some reason).

count(preceding::f[@name='question']) + 1

@spadafour
Copy link
Collaborator Author

aaaaand I solved my problem already

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant