xsl-list
[Top] [All Lists]

Re: how to get string value of element node without children concatenated

2003-03-15 16:25:45
Craig Kattner wrote:
I'm sure the answer is obvious, but I can't seem to find it.

I have the following XML:
<?xml version="1.0" encoding="UTF-8" ?> <switches>
        <finishes>
                <finish>
Almond Decorative <hold>no</hold> </finish>

You're a victim of Pernicious Mixed Content (mixing marked text and unmarked text in inappropriate circumstances, which is basically anything except normal paragraphs of running text). If you have any control over the document type, get it changed to:

                <finish>
                        <style>Almond Decorative</style>
                        <hold>no</hold>
                </finish>

or something like. Then you can access the data much more easily.
Using XML for categorical data requires a different approach to
using it for normal text.

///Peter


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list