[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

Subject: RE: displaying xml file styled with xsl within an external html file
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Fri, 12 Jul 2002 10:07:24 +0100
2sms
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.