When I tried to post a question, I got the error message, "This post does not meet our quality standards." The post is below. I noticed that I saw red squiggly lines under some words in the post. Is this why I can't post my question?
This should be an easy one.
I have an XSLT file that correctly routes a level of XML based on the status of a single node:
<GoodInvestment> <xsl:for-each select="Investments/Investment/Location[LowTaxes='Yes']"> ... <BadInvestment> <xsl:for-each select="Investments/Investment/Location[LowTaxes='No']">
Unfortunately some of the data doesn't have a node.
I would like to set the default to get picked up by the node, but when I do this:
<BadInvestment> <xsl:for-each select="Investments/Investment/Location[LowTaxes!='No']">
It appears to only pull in Location nodes that have "LowTaxes" children. The problem is I'm trying to account for the case where that node is omitted.
What can I do?
The Title is "xslt default in conditional logic" ... but I didn't see anything indicating the title was bad.