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: Dynamic Table Generation


Phil Lanch wrote:
> you can use a (top-level) variable to store some vector-ish XML -
> ...
> [use a] node-set() function to convert the variable from a 
> "result tree fragment" (for that is what it is) to a nodeset

Hey, I was going to say that...

The only thing to add is that if you are using an XSL processor with no
nodeset function you can just extract the content-types out into an XML
file, say, content-types.xml, and use it in the contexts in which Phil's
example uses a node-set by calling the document() function instead:

  <xsl:for-each select="document('content-types.xml')/th">

 Steve


 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]