xsl-list
[Top] [All Lists]

RE: Using attributes and elements and text

2005-02-24 15:36:50
However, AFAICS, those comments are related to the attribute/element
question. What about the question of text/child nodes, like in

        <Assuntos>
                <Assunto>
                        As armas e os barões assinalados 
                        <Detalhes/>
                </Assunto>
        </Assuntos>

        <Assuntos>
                <Assunto>
                         <Desc> As armas e os barões 
assinalados </Desc>
                        <Detalhes/>
                </Assunto>
        </Assuntos>

What are the XPath/XSL diferences in here?

I think that's usually clear cut. Use mixed content (elements as siblings of
text nodes) if and only if the text is continuous and the elements are being
used to mark up properties of parts of the text.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--