![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Selective xml filtering [Thread Next] Re: Selective xml filteringTo: NULL Date: 9/3/2007 9:21:00 PM On Mon, 03 Sep 2007 10:57:05 -0000, Ben <borg47@g...> wrote: >Hello, > >i am tryng to create a frameset page with 2 xml docs, one is teh menu >one is the content, i want to be able to filter the content xml based >on whats picked in the menu, is there a way of using superglobals to >filter e.g. "content.xml?name=bob" as im not sure how i could get a >xslt to pick that unique data You would add a parameter to the template. similar to the document used here www.---.com <xsl:param name="HeadAlign" select="Right"/> Then load your XSL document as a DomDocument in your processor. Set the select attribute of the xsl:param, such as using XPath on the DomDocument : for example in Javascript in IE, you could use xslDomDoc.selectSingleNode("//xsl:param[@name='HeadAlign']").setAttribute("bob"); Then use the xsl:param value directly in your stylesheet, which will contain the value 'bob' instead of its initial value 'Right' The correct google term is "parameterized xsl template" HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2007 http://mvp.support.microsoft.com/mvpfaqs | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
