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: apply-templates, rule-based, and saxon


[kfricovsky]

> I am wondering why I am still getting the <title> elements from my XML
> source document in my HTML output document. I am trying to implement the
> "rule based" design method.
>

It's getting inserted by the default template, the one that the processor
uses if you haven;t told it to use anything else.

You can suppress the default template by putting this AFTER all your other
templates:

<xsl:template match='*'/>

This instructs the processor to do nothing if it hasn't already dealt with
an element.

Cheers,

Tom P



 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]