Re: [xml-dev] Dynamically creating a pattern for xsl:apply-templates select

From
Thomas B. Passin <>
To
Date
2004-07-29T23:27:21Z
ID
<>
Thread
Re: [xml-dev] Dynamically creating a pattern for xsl:apply-templates select
Mark Heieis wrote:
 > ...
> The questions are:
> Can the select attribute accept pattern defined by a variable? So far I 
> haven't been able to make it work.

No.

> If no, what would be an approach to filter a tree based on the given input?
> Or even if yes, is there a better way to filter a large tree?

I'd consider a two-stage process.  Have the first stylesheet write the 
actual working one, building in the right path expressions.  This 
approach will save you no end of grief.

And ask these kinds of questions on the Mulberry xslt list - nothing 
wrong with asking here but there you will get 100% xslt eyeballs looking 
at your posts.

Cheers,

Tom P

-- 
Thomas B. Passin
Explorer's Guide to the Semantic Web (Manning Books)
http://www.manning.com/catalog/view.php?book=passin