Subject: RE: RE: RE: [xsl] creating frames with xsl without javascript (client- side with xml link and implicit style sheet) From: cknell@xxxxxxxxxx Date: Mon, 23 May 2005 11:17:41 -0400 |
I still need to see what you expect the output to be. Your stylesheet may or may not be a good place to start solving the problem. Until the expected output has been defined there is no way to determine that. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Bovy, Stephen J <STEPHEN.Bovy@xxxxxx> Sent: Fri, 20 May 2005 14:07:36 -0400 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: RE: [xsl] creating frames with xsl without javascript (client-side with xml link and implicit style sheet) I am using client side implicit stylesheet processing. I have a link to an xml doc which points to a style sheet the link has a target frame. Here is my style-sheet: <?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> <xsl:value-of select="local-name(/*)"/> </title> </head> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="/*"> <a name="tb1" /> <table border="1" width="100%" cellpadding="5" > <thead > <tr bordercolor="yellow" bgcolor="Aqua"> <th colspan="4" > <xsl:value-of select="local-name(/*)"/> </th> </tr> <tr bordercolor="yellow" bgcolor="#00CCFF"> <xsl:apply-templates select="/*/* 1 /*" mode="header"/> </tr> </thead> <tbody > <xsl:apply-templates /> </tbody> </table> <iframe id="fm1" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" width="100%" src="#tb1" /> </xsl:template> <xsl:template match="/*/*" > <tr bordercolor="yellow" bgcolor="silver"> <xsl:apply-templates /> </tr> </xsl:template> <xsl:template match="/*/*/*" mode="header"> <th> <xsl:value-of select="local-name()"/> </th> </xsl:template> <xsl:template match="/*/*/*" > <td align="center"> <xsl:value-of select="."/> </td> </xsl:template> </xsl:stylesheet> The above style sheet was created provided with the help of this list. Here is a sample of my xml <?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="'INTRAHCS.HTML.XML3(TEST3L)'" ?> <DETACCT-XML-DOCUMENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "'INTRAHCS.HTML.XML3(TEST3S)'" > <XML-TABLE-ROW> <ACCTCODE>BO</ACCTCODE> <ACCOUNT>8006547</ACCOUNT> <NAME>TORRES,ERNESTO</NAME> <ARFILE.BALANCE> 44.99</ARFILE.BALANCE> </XML-TABLE-ROW> </DETACCT-XML-DOCUMENT> The file name syntax is ibm z/os datasets do not let it disturb you. My Link looks like this: <A HREF="'INTRAHCS.HTML.XML3(TEST3)'" TARGET="body"> DETACCT-XML-DOCUMENT </A> The only thing I have changed in the above style sheet is I added <a name="tb1" /> and I added the <iframe> ... My ultimate objective is to try in as simple a way as possible to enable the body of my table to scroll separate from the header portion of the table. I thought I might try using a div to make the table or portions of the table invisible. And then display said portions in separate iframes. But it seems like even in the above example my rel ref in the iframe does not work. src="#tb1" -----Original Message----- From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] Sent: Friday, May 20, 2005 3 :04 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: RE: [xsl] creating frames with xsl without javascript I was just making a small joke at your expense because a question such as yours cannot be effectively answered without more information. It is the kind of question that is often asked on the list and the standard answer is: 1) Supply a sample of the XML document that is to be transformed. 2) Supply a sample of the desired output document (in this case it appears that you want to generate HTML, although you didn't say so explicitly). Armed with these two pieces of information, someone on the list can show you what needs to be done. Without this information, any answer someone could supply is likely to be terse (as mine was), impossibly convoluted (because it will be too general and therefor vague), or we will have to make up our own input and output, which may be hard for you to map over to your problem domain. I'll be busy until this afternoon (EDT), so if you supply this information and no one has provided guidance before then, I'll take a look at it later today. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Bovy, Stephen J <STEPHEN.Bovy@xxxxxx> Sent: Thu, 19 May 2005 19:47:03 -0400 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] creating frames with xsl without javascript How about a clue please the frame element requires a url, how can I fill or set the contents of the frame element ??? -----Original Message----- From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] Sent: Thursday, May 19, 2005 3:31 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] creating frames with xsl without javascript Yes. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Bovy, Stephen J <STEPHEN.Bovy@xxxxxx> Sent: Thu, 19 May 2005 18:01:10 -0400 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] creating frames with xsl without javascript I would like to use xsl to create several frames in my doc, I would like to populate one frame with part of my xml, and the other with the other part. And I do not want to use any java script, can it be done ?????
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How do I output script im, Bovy, Stephen J | Thread | [xsl] help on attribute name, Raman Kannan |
RE: [xsl] Switching Between Two Col, kent | Date | Re: [xsl] configuring a conditional, David Carlisle |
Month |