[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] reference value from XML document inside XSL for printing


Subject: Re: [xsl] reference value from XML document inside XSL for printing
From: "Liam R E Quin liam@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Jan 2015 21:38:03 -0000

On Mon, 19 Jan 2015 21:12:27 -0000
"Stephen Ingram sbingram@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> I'm using the <date></date> tags within my Docbook 5 XML document. I'd like
> to include what appears between those tags inside the header of the
> document when it prints out. I'm trying to accomplish this by referencing
> the <date> tags inside my XSL (FO) document,
[...]

How *exactly* are you turning your DocBook XML document into an XSl-FO instance for printing?

Most people use XSLT for this, and it ought to be simple enough to take the contents of the date element (XSLT deals with elements in a tree, not tags, for what it's worth) and to put that into static content in the page master.

For searching for examples, note that really you are putting the contents of an element in the input document into the running header -- the fact it happens to be a date isn't relevant here. So I wouldn't mention "date" in your Google searches...

Liam


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/


Current Thread
Keywords