XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 12th, 2003, 05:18 AM
mitch22 mitch22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 mitch22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Result Pagination and header/footer with XSL

I want to separate Xml results into pages but I don't know how.
And I wish to test the dimension of every page because I have to iintroduce a footer on every page.

Could anybody help me ?(with an advices or an example)

Thanks, mitch22.

Reply With Quote
  #2  
Old September 12th, 2003, 08:04 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
What output format are you targetting?

Reply With Quote
  #3  
Old September 15th, 2003, 02:55 AM
mitch22 mitch22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 mitch22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I need to obtain a html format.

Reply With Quote
  #4  
Old September 15th, 2003, 12:53 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Here's some example code: http://www.experts-exchange.com/Web...Q_20662053.html

And here's a discussion about xsl paging in general (better ways to accomplish it, maybe): http://www.dpawson.co.uk/xsl/sect2/paging.html

Reply With Quote
  #5  
Old September 16th, 2003, 08:28 AM
mitch22 mitch22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 mitch22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you, bricker42.

now I have a problem with CDATA:
I have an xml node which have a node:

<data libelle="America" pageHeight="624">
...
</data>

When I want to make the XSL transformation I have to use javascript like this(because I need some values for a footer page):

<xsl:template match="data">
<html>
<body >
<head>
<script language="javascript">
<![CDATA[ var pageH= ]]><xsl:value-of select="@pageHeight"/>
<![CDATA[ ; alert (pageH);
var lib= ]]><xsl:value-of select="@libelle"/>
<![CDATA[ ; alert (lib);

.....

</script>

After the line alert (pageH); I obtained "624" which is the @pageHeight value. But after this line alert(lib); I didn't obtained the @libelle value.
Do you know what is the reason ?(because I change libelle value in a numeric value then lib take this value).


Thanks in advance,
mitch22.

Reply With Quote
  #6  
Old September 16th, 2003, 12:19 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
You have to put quotes around your string value.
Code:
<![CDATA[var pageH=]]><xsl:value-of select="@pageHeight"/><![CDATA[; alert (pageH);
var lib=']]><xsl:value-of select="@libelle"/><![CDATA['; alert (lib); ]]>

Reply With Quote
  #7  
Old September 17th, 2003, 10:26 AM
mitch22 mitch22 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 mitch22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
bricker42, thank you again. Your adveces helped me very much,
mitch22.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Result Pagination and header/footer with XSL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT