Subject: [xsl] Sablotron vs. Libxslt probelm From: Andrew Borsz <andrew@xxxxxxxxxxxxxxx> Date: Fri, 5 Aug 2005 18:48:14 -0400 |
<root> <component> <unitMeta> <unitTitle>unit title 1</unitTitle> <unitSubtitle>unit sub title 1</unitSubtitle> </unitMeta> </component> <component> <unitMeta> <unitTitle>unit title 2</unitTitle> <unitSubtitle>unit sub title 2</unitSubtitle> </unitMeta> </component> </root>
<xsl:template match="root"> <document> <xsl:apply-templates select="descendant::unitTitle[1]" mode="add"/> <xsl:apply-templates select="descendant::unitSubtitle[1]" mode="add"/> <xsl:apply-templates/> </document> </xsl:template>
<xsl:template match="component"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="unitMeta"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="unitSubtitle"> <subtitle><b><xsl:apply-templates/></b></subtitle> </xsl:template> <xsl:template match="root/component[1]//unitSubtitle[1]"> <!--do not process--> </xsl:template> <xsl:template match="root/component[1]//unitSubtitle[1]" mode="add"> <subtitle><b><xsl:apply-templates/></b></subtitle> </xsl:template>
<xsl:template match="unitTitle"> <title><b><xsl:apply-templates/></b></title> </xsl:template> <xsl:template match="root/component[1]//unitTitle[1]"> <!--do not process--> </xsl:template> <xsl:template match="root/component[1]//unitTitle[1]" mode="add"> <title><b><xsl:apply-templates/></b></title> </xsl:template>
<title><b>unit title 1</b></title> <subtitle><b>unit sub title 1</b></subtitle>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL/XHTML IDE, Oleg Konovalov | Thread | [xsl] DHTML modify a table, Jean-David |
RE: [xsl] output encoding problem (, Michael Kay | Date | Re: [xsl] XSLT Grouping/Filtering i, Joris Gillis |
Month |