Subject: RE: [xsl] How do you get the non-transformed character entity out of MSXML3.0 From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 19 Sep 2001 16:01:34 +0100 |
> As an aside, what is the reasoning behind attributes not > having a single text node child? Why would you want that? Separate text nodes are needed for element content because child elements and text can be intermixed. They would add no value for attributes, because there would then be a one-to-one correspondence between the attribute node and its text node. > It seems to me that XPath is lacking in this case. Of those > three, comments > are the only ones that end up only having text within them. No, attributes, comments, and PIs each have a string-value which gives their content, and none of them has child text nodes. > Attributes have > an expanded name and text, and processing instructions have a > 'string value' > as defined by the spec, but also have what appear to be > attributes (though > they aren't defined as such). Although processing-instructions are often written to use "pseudo-attributes", e.g. <?abc x="y" a="b"?> there is nothing in XML that says they should be used in this way, it's purely an application convention, and therefore not part of the XPath tree model. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How do you get the non-tr, Nate Austin | Thread | [xsl] JAXP URIResolver is being cal, Taras Tielkes |
[xsl] Pie graph, Chris Bayes | Date | RE: [xsl] variable as select for te, Michael Kay |
Month |