Subject: Re: [xsl] Variable in XPath From: Garvin Riensche <g.riensche@xxxxxxx> Date: Wed, 27 Jun 2007 18:37:50 +0200 |
regards, Garvin
<xsl:param name="id" />
<xsl:template match="your-start"> <xsl:apply-templates match="doc('factbase.xml')/facts/class" /> </xsl:template>
<xsl:template match="class[@id = $id]"> ...do your stuff with a matching $id=@id for class-nodes... </xsl:template>
<xsl:template match="facts[not(class/@id = $id)]/class">
...do your stuff when no @id matches the supplied $id, but class-nodes exist...
</xsl:template>
<xsl:template match="facts[empty(class)]"> ...do your stuff when there are no class-nodes... </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Variable in XPath, Abel Braaksma | Thread | Re: [xsl] Variable in XPath, Abel Braaksma |
Re: [xsl] Saxon SQL extension, Manfred Staudinger | Date | Re: [xsl] Saxon SQL extension, Mario Madunic |
Month |