This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing the number of child elements
- To: xsl-list at mulberrytech dot com
- Subject: Re: Testing the number of child elements
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 10 Feb 2000 14:37:02 GMT
- References: <38A2C262.D3E4433D@xrce.xerox.com>
- Reply-To: xsl-list at mulberrytech dot com
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