David Carlisle wrote:
> a) I might get time to do a bit more to it (I noticed last night I'd
> missed off intersection for example) and also to fill in the
> hull/unknown code.
presumably intersection just uses the "and" connector? (And top-level
intersection would be be put in different <asserts> for
better debugging.)
<xsl:template match="crdl:intersection" mode="crdl:xpath">
<xsl:text>(&#10;</xsl:text>
<xsl:for-each select="*">
<xsl:apply-templates select="." mode="crdl:xpath"/>
<xsl:if test="position()!=last()"> and &#10;</xsl:if>
</xsl:for-each>
<xsl:text>&#10;)</xsl:text>
</xsl:template>
> b) the replace is replacing ' by '' as I'm putting the regexp into a
> '-delimited xpath string, so (in xpath2) you can include ' by doubling
> it. so <char>'</char> comes out as matches(.,''')
Oh, OK, it was a font issue that was confusing here.
> c) The XSLT posted to the schematron list by David Carlisle to
> convert crepdl schemas to XPath was written by David Carlisle and may
> be used by any person for any purpose and may be incorporated into
> other software
> and distributed under any licence that is appropriate.
Thanks!
Cheers
Rick Jelliffe