p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: Question about XSLT and XML From the Website Programming Book


Message #1 by "Marco K Paul" <simonvega2000@y...> on Fri, 3 Jan 2003 21:08:20
The book demonstrates how to transform an xml doc into a html document 
via xslt.  In the xslt source code, it doesn't reference where the 
stylesheet is located, nor are they in the same directory.  However, 
applying the style works.  How does it resolve this?

Thanks
Message #2 by "Byron Leoppky" <bleoppky@a...> on Sat, 4 Jan 2003 00:22:02
There doesn't need to be a reference to the stylesheet. The stylesheet is 
included by the aspx page that contains the MenuNav control. Once the 
stylesheet has been included, the classes within it are available to all 
elements on, or included by, that page. The .xslt translates the xml into 
html and adds the appropriate class="classname" to the resulting html.

I hope this answers your question. 

> The book demonstrates how to transform an xml doc into a html document 
v> ia xslt.  In the xslt source code, it doesn't reference where the 
s> tylesheet is located, nor are they in the same directory.  However, 
a> pplying the style works.  How does it resolve this?

> Thanks

  Return to Index