This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to prevent xsl:copy collapsing <ll></ll> to <ll/>




> 1) input of, for example, <Text></Text> is collapsed in the output to <Text/>
> How do I prevent this collapsing?

You don't. The XML specification makes it explicit that they are
equivalent. It's just a syntactic difference, like whether you
have " or ' around attribute values.

> 2) The original encoding and DOCTYPE information is lost.
An XSL feature. It works on the parse tree (aka infoset nee grove) and
in the DOCTYPE information is not there.

> Is there anyway to copy this information through as well?
No, not in XSL.


David


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]