Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 15th, 2008, 09:52 AM
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: New Market, Maryland, USA.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printed Page Header

Is there a way to put a page header at the top of every page when document is printed out?

Thank you!

Reply With Quote
  #2 (permalink)  
Old July 15th, 2008, 09:55 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

What type of 'document' are you referring to?

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #3 (permalink)  
Old July 15th, 2008, 10:05 AM
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: New Market, Maryland, USA.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Rendering an XML document with XSLT 2.0.

Reply With Quote
  #4 (permalink)  
Old July 15th, 2008, 10:09 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

If you open the XML file in Word you can add headers and footers there. But I don't see what this has to do with XSLT?

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #5 (permalink)  
Old July 15th, 2008, 12:16 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Rendering into what? HTML? XSL-FO? Microsoft RTF?

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #6 (permalink)  
Old July 16th, 2008, 05:53 AM
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: New Market, Maryland, USA.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm guessing there is no way in XSLT to have hidden header that can be used when a user prints (prints on the top of each page)out the XML document. In order for this to happen I will have to use HTML, XSL-FO or MicroSoft RTF.

Thank you for your replies!

Reply With Quote
  #7 (permalink)  
Old July 16th, 2008, 06:13 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

XSLT converts text files to text files. It has no concept of headers, footers or any other presentation aspect of the output, that is the job of HTML, PDF and similar. When you decide what you are using for presentation then we may be able to help with how to add a header.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #8 (permalink)  
Old July 16th, 2008, 07:25 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You don't seem to have grasped that XSLT doesn't render your XML, it merely transforms it into some other format like HTML, RTF, XSL-FO or whatever. Until you know what HTML (etc) you want to produce, don't even start to think about writing the XSLT code to produce it.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #9 (permalink)  
Old July 18th, 2008, 11:46 AM
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: New Market, Maryland, USA.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printed or not printed page status in Crystal Repo hendyhanusin Crystal Reports 0 July 31st, 2007 02:17 AM
Page Header chacquard Access VBA 1 September 26th, 2005 06:17 PM
Page Header JohnBoyUK BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 November 23rd, 2004 01:45 PM
Page Header Printing on Last Empty Page ritag Access 4 November 11th, 2004 12:07 PM
Only the first page printed verdun Crystal Reports 1 November 19th, 2003 09:50 AM



All times are GMT -4. The time now is 03:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.