This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: displaying xml file styled with xsl within an external html file



Embarrassingly, ASP.

Tim.



-----Original Message-----
From: TSchutzerWeissmann@uk.imshealth.com
[mailto:TSchutzerWeissmann@uk.imshealth.com] 
Sent: 12 July 2002 10:07
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] displaying xml file styled with xsl within an
external html file


Hello Tim
> -----Original Message-----
> From: Tim King [mailto:tim@2sms.com]
> Sent: 12 July 2002 09:46
> To: xsl-list@lists.mulberrytech.com
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]