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: No match or what...


The content of one node includes that of it's children, therefore when using

<xsl:value-of select="."/>
all children's values are selected too...

1) use <xsl:value-of select="text()"/>

2) or do write just:
         <xsl:template match = "library | book | chapter">
                <BR/>
                <xsl:apply-templates/>
        </xsl:template>
this applys default rules and next matching templates are selected.




 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]