[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Changing original html with XSL

Subject: RE: Changing original html with XSL
From: "Miller, Mark" <Mark.Miller@xxxxxxxxxxxxxxxx>
Date: Thu, 21 May 2009 14:26:16 -0400
RE:  Changing original html with XSL
Robert,


> So I have a page that has initial HTML and then I have have
> xsl generate other html to put into the original html. I am
> able to get the generated html into the body tag, but I also
> wanted to added more code to the <head> </head> tag. Is there
> a way to insert code into the original head tag? For instance....
>
> Original html file....
>
> <html>
> <head>
>     JS and other stuff including title....
> </head>
>
> <body>
> <div id="XSL ADDS SOME HERE"> </div>
>
> </body>
> </html>
>
> And then .xsl file has something like
>
> <xsl:output method="html"/>
> <xsl:template match="/">
> <head>
>        Add more JS
>
> </head
>
> </xsl:template>
>
> Is there a way to get the xsl files <head> data into the
> original head tag?

I do this by having the xsl create a separate html file with the HTML I
need to be inserted and then use an include statement in the main HTML
file.  This requires that you be able to run .asp or .jsp pages.

Xsl output as file.htm:

<p><h1>Hello World</h1></p>


Original html file....

<html>
<head>
    <!-- include file="file.htm" -->
</head>
<body>
</body>

</html>

Mark J. Miller

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.