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: Testing the number of child elements



hmm mathml, what are you mapping it to?

We hope to have some xsl examples in the next mathml working draft....


>  I want to test if the current node (plus) has one
> child or more 

that is <xsl:if test="child::*">  ... as an empty node list counts as
false and that node list will be non emty if there are any children.


<xsl:template match="apply[plus]">

this matches an apply that has a plus child anywhere (strictly speaking
you probably want to limit to plus as the first child)


> So I've written <ENTITY InvisibleTimes "&#E89E;">, but XT tells me
> "character not allowed"
> What can I Do?

that is a hex number so you need &#x not &# also, beware that is a
tempoarary assignment into the private use area, and will change if
unicode/iso allocate a block of unicode for math characters (next month
with a bit of luck)

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]