[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: understanding attributes and predicates
>>>>> "Colin" == Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> writes: Terry> I just wonder what is going on. Is it the "for-each Terry> select='@*'" or the "value-of select="." that is returning Terry> the text node of the par element? Colin> No. Colin> You are not matching the par elements which DON'T have a Colin> class="stem_mc' attribute. So these get matched by the Colin> built-in templates, which just write the text nodes. Since you are exploring, you might find a couple of the gestalt command-line options useful: --suppress-default-action (which makes the processor non-conformant) would cause your transformation to fail. This would alert you to the use of default template matching. Then you could instead use: --default-template-warning, to find out what was going on. I get this output for your transformation: Warning: Default template invoked for document-node() TODO: {XM_XPATH_TREE_ELEMENT}.type_name is only partly written (hm. I've just found a bug!) Warning: Default template invoked for element(document, Warning: Default template invoked for text() Warning: Default template invoked for element(part, Warning: Default template invoked for text() Warning: Default template invoked for element(par, Warning: Default template invoked for text() <?xml version="1.0" encoding="UTF-8"?> Unit 1: Vocabulary SkillsWarning: Default template invoked for text() Warning: Default template invoked for element(par, Warning: Default template invoked for text() PosttestWarning: Default template invoked for text() Warning: Default template invoked for element(section, Warning: Default template invoked for text() Warning: Default template invoked for element(heading, Warning: Default template invoked for text() attribute name: class attribute value: stem_mcWarning: Default template invoked for text() Warning: Default template invoked for element(par, Warning: Default template invoked for text() The threat of rain makes i. . .Warning: Default template invoked for text() Warning: Default template invoked for element(par, Warning: Default template invoked for text() doubtfulWarning: Default template invoked for text() Warning: Default template invoked for element(par, Warning: Default template invoked for text() likelyWarning: Default template invoked for text() Warning: Default template invoked for element(par, No more warnings will be displayed hopeful obvious A G5U1S5 ;Describe the connotation of the word mutt and 8xplain whether it is positive or negative. Answers will vary. Possible answer: The word mutt has the negative connotation of a dog that isn$(B!G(Bt worth very much or that isn$(B!G(Bt good-looking. G5U1S8 -- Colin Adams Preston Lancashire
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|