hclbaur / sdt-core

SDT Core Implementation
The Unlicense
0 stars 0 forks source link

Issue with Node statement #9

Closed hclbaur closed 4 months ago

hclbaur commented 5 months ago

The NODE statement is somewhat odd, in that it does not accept any leaf statements other than VALUE, so no PRINT(NL) either. This may become a real problem if COPY becomes a leaf statement too, see #10 Other than that, the code for NodeStatement is strange, with the "empty" XPath object.

hclbaur commented 4 months ago

Code is now more in line with others, and the node statement now accepts other leaf statements as well (copy, print(nl). Using a print statement within the context of a node statement is somewhat odd I think, but it works.