[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: IMPORTING XML DOCS INTO AN XSLT
>I was wondering if it is possible to import XML documents directly into an >XSLT stylesheet. >For example, I would like to call a template for my current XML document, >and have the XSLT document import a few standard XML files with >configuration info and have the data from the XSLT process the imported XML >as well. >The master plan behind this? I have a web page XML, it calls a stylesheet to >format it into HTML. But I dont want to pass the navigation menu with the >page document each time, I would like the XSLT to automatically pick it up >and processes it. use the document function <xsl:param name="doc" select="document('menu.xml')"/> <xsl:template match="/"> <html><head></head><body><xsl:for-each select="$doc"><xsl:apply-templates/></xsl:for-each></body></html> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|