[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: understanding attributes and predicates

Subject: Re: understanding attributes and predicates
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Feb 2008 18:29:56 +0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.