[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: displaying xml file styled with xsl within an exte
Hello Tim > -----Original Message----- > From: Tim King [mailto:tim@xxxxxxxx] > Sent: 12 July 2002 09:46 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: displaying xml file styled with xsl within an external > html file > > > > > Can anyone help. I am trying to include an xml file with xsl styling > within the body of an html file. The html file will also hold > other data > from other sources as well, so I don't want to create the whole html > file in xsl. > > Thanks > > Tim. > > > <Html> > <body> > <h1>Hello World</h1> > <p>blah blah blah</p> > > <insert xml file (http://2sms.2sms.com/menus/menu_2sms_2way_about.xml) > with xsl file (http://2sms.2sms.com/styles/menu.xsl) > applied here/> > > <more html code not from xsl file/> > > </body> > </html> > If you had a marker element to show where some transformed xml should go and where it came from, eg <insertTransformedXML source="foo.xml" style="bar.xsl"/> then you could have a script run through your html, find these elements, do the transformations they describe and replace them with the result. There's probably an extension to xslt that would let you do this from within another stylesheet, depending on your processor, but keeping things text-based, eg using a perl script, say, might be quicker because there's no need to parse the surrounding html. Of course, in this case you could have any kind of marker you wanted, if it was distinct enough... What environment are you doing this in? Regards, Tom 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
|