O'Reilly logo

Special Edition Using XSLT by Michael Floyd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Assembling the Scripts

Using the pieces already discussed, you can make an ASP script to dynamically create an XSLT style sheet like the one that appears in Listing 11.2. The code is somewhat general-purpose—at least in the context of the article document type. You can see the general plan in Figure 11.2.

Figure 11.2. This diagram shows how the different parts of the system interact to generate the XSLT style sheet.

You can include the script from another script, and pass in customizing variables. For example,

 <% if Request(“page”)=”” then dynxsl=”xmltest.asp” else dynxsl=Request(“page”) end if roottag=”article” schema=”schema.xml” css=”article.css” ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required