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

RE: How do you get the non-transformed character entit

Subject: RE: 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
RE:  How do you get the non-transformed character entit
> 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

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.