Subject: Re: Re: expandble list in XSL From: "Johan Andreasson" <johan_andreasson@xxxxxxxxxxx> Date: Thu, 30 Mar 2000 09:56:58 PST |
Thanks for the quick reply Dan, As you pointed out it isn't easy to help without knowing the problem. This is how I would like to do it, if it's possible:
XSL-file: --------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <HTML> <HEAD> <SCRIPT> var exposed=false; <---- 1.
} else // collapse the list { obj.children[0].outerHTML=''; eval("exposed=false"); } } </SCRIPT> </HEAD> <BODY> <xsl:apply-templates select="//ITEM" /> <H1>Rubrik</H1> <P> <xsl:apply-templates select="//ITEM/NAME" /> </P> </BODY> </HTML> </xsl:template>
XML-file: -----------
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="explist.xsl"?> <ITEMLIST> <ITEM> <NAME>item 1</NAME> <DET1>sf...</DET1> <DET2>..df.</DET2> <DET3>..asd.</DET3> </ITEM> .. ..more items </ITEMLIST>
______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: expandble list in XSL, Chris Bayes | Thread | how XSL processor treat doctype dec, Carole E. Mah |
Expression to say "case insensitive, Jonathan Asbell | Date | RE: selecting a node without its ch, Kay Michael |
Month |