Subject: RE: Problems with XSL, XML code From: "John E. Simpson" <simpson@xxxxxxxxxxx> Date: Tue, 03 Oct 2000 15:24:46 -0400 |
Good explanation, John. Maybe I could make just two corrections:
1. Why the default namespace? That's not necessary; literal result elements don't have to be in a namespace.
2. If you remove HORA from the template rule's match pattern, the <HORA> child will still be processed by <xsl:apply-templates/>, which processes each child (elements, text, processing instructions, and comments) of the current node. In this case, the children consist only of elements (and whitespace text nodes which don't cause any important difference as will become clear). If a template rule is not found that matches a given child, then the built-in template rule for that node type is used. In the case of an element, the built-in rule is to simply apply templates to its children. <HORA>'s child consists of a text node. Since there are no explicit template rules matching text nodes, the built-in rule for text nodes will be applied, which is to copy the text to the result tree. Thus, you would end up copying "10:08", etc. to the result tree.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Problems with XSL, XML code, Evan Lenz | Thread | RE: Problems with XSL, XML code, Evan Lenz |
Re: Adding a chekbox with XSL, Lewis | Date | Re[2]: Adding a chekbox with XSL, Dylan Parker |
Month |