Subject: Attribute Value Templates? From: Tyler Baker <tyler@xxxxxxxxxxx> Date: Fri, 02 Oct 1998 04:39:36 -0400 |
When computing generated text using xsl:value of and attribute value templates, the spec is not clear on what to do if the number of nodes selected by the select pattern return 0. In this case, should the XSL Processor throw an exception or should it just treat the evaluation of the string expression as being invalid and therefore ignored. "The value of a string expression that is a pattern is the character content of the first node selected by the pattern. If the first node is an attribute node, the value is the attribute value. If the first node is an element node, the value is computed by concatenating all characters that are descendants of the element node in the order in which they occur in the document. The pattern is a select pattern and so is implicitly anchored to the current node." Nowhere in here does it say what to do if the select pattern returns no nodes. Tyler XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Uses of XSL, James Tauber | Thread | Attribute value templates?, keshlam |
Uses of XSL, Carl Sjogreen | Date | RE: The XSL-List Digest V1 #169, Jelks Cabaniss |
Month |