Subject: RE: [xsl] displaying xml file styled with xsl within an external html file From: "Tim King" <tim@xxxxxxxx> Date: Fri, 12 Jul 2002 10:22:46 +0100 |
Embarrassingly, ASP. Tim. -----Original Message----- From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx [mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] Sent: 12 July 2002 10:07 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] displaying xml file styled with xsl within an external html file Hello Tim > -----Original Message----- > From: Tim King [mailto:tim@xxxxxxxx] > Sent: 12 July 2002 09:46 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] displaying xml file styled wi, Tim King | Thread | RE: [xsl] displaying xml file style, TSchutzerWeissmann |
RE: [xsl] displaying xml file style, TSchutzerWeissmann | Date | RE: [xsl] displaying xml file style, TSchutzerWeissmann |
Month |