RE: internal linking between separate page-sequences

2002-01-07 Thread Smethurst, Michael
for the purposes of this stripped down file i'm not using generate-id() at
all.

[i was using it to generate ids based on nodes in the source xml tree but i
stripped it out (and replaced it with the WORD "generated_id" to signify
that i would in practice generate the id in the xslt) cos i wanted the xsl
file to work with ANY xml document.]

My problem is not with using generate-id(). If you look at the source file i
posted, "generated_id" is seen twice: once in the first page-sequence as the
value of the attribute 'internal-destination', and once in the second page
sequence as the value of the attribute 'id'.

So it is unique throughout the xml document (only one node has the id
"generated_id")

I think i've confused matters by using the WORD "generated_id"; try
substituting "lala" or "test" or "biscuit"



http://www.w3.org/1999/XSL/Format";>








Something



Link: Key
Questions





Something else


Destination: Key Questions





RE: internal linking between separate page-sequences

2002-01-07 Thread Colin Savage
the id attribute must be unique throughout the entire xml document. When you
are using generate-id() in xslt the id generated relates to the node in the
source tree, not the result tree. 

If you are attempting to use generate-id() in xsl:fo, it will not work,
remember that xsl:fo is a presentation language and does not have any
functional capabilities...if you type 'generate-id()' in the source, it is a
literal value.

Colin

-Original Message-
From: Smethurst, Michael [mailto:[EMAIL PROTECTED]
Sent: 07 January 2002 01:10
To: '[EMAIL PROTECTED]'
Subject: RE: internal linking between separate page-sequences


the generated_id thing was just a way of hard-coding the generate-id() thing
i had been using so i could make the xsl xml independant. You could call
"generate_id" "tobythedog" if you wanted but it still dosn't work. The
problem seems to come from using the seem id (whether hard-coded or
generated using generate-id()  ) across 2 different page-sequences.
does this make sense... i could on the other hand just be thick...
thanks anyway

-Original Message-
From: Meena [mailto:[EMAIL PROTECTED]
Sent: 07 January 2002 11:20
To: [EMAIL PROTECTED]
Subject: Re: internal linking between separate page-sequences


Hi Michael,
You have to put as 'generate_id' and not 'generated_id'. I tried with it and
it works fine.

Regds,
Meena.
- Original Message -
From: "Smethurst, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:07 PM
Subject: internal linking between separate page-sequences


> i'm currently trying to output a PDF using a style sheet with a single
> master page and a number of page-sequences (i'm using numerous page
> sequences because i want to display different information in the page
footer
> depending upon the section). i also want to include a toc on the first
> page-sequence set which will link to the relevant page-sequence. however
> when i try to convert this it complains that "The id 'generated_id'
already
> exists in this document". Its fine if i want to link within a
page-sequence
> but seems to get confused with links between page-sequences. Included is a
> simplified version of the fop input file.
> any help much appreciated...
>
>
> 
> http://www.w3.org/1999/XSL/Format";>
> 
> 
> 
> 
> 
> 
>  master-name="A4">
> 
> Something
> 
> 
> 
> Link: Key
> Questions
> 
> 
> 
> 
> 
> Something else
> 
> 
> Destination: Key Questions
> 
> 
> 
>
> the message i get is:
>
> C:\Java\Fop-0.20.1>java -cp
> build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
> xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo
> ..\Working\Out\Out
> .xml -pdf ..\Working\Pdf\Out.pdf
> FOP 0.20.1
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
>  [1]
>  [2ERROR: The id "generated_id" already exists in this document
>
>
> Michael Smethurst
> Web Developer
> Sweet and Maxwell Group
>
>


RE: internal linking between separate page-sequences

2002-01-07 Thread Smethurst, Michael
the generated_id thing was just a way of hard-coding the generate-id() thing
i had been using so i could make the xsl xml independant. You could call
"generate_id" "tobythedog" if you wanted but it still dosn't work. The
problem seems to come from using the seem id (whether hard-coded or
generated using generate-id()  ) across 2 different page-sequences.
does this make sense... i could on the other hand just be thick...
thanks anyway

-Original Message-
From: Meena [mailto:[EMAIL PROTECTED]
Sent: 07 January 2002 11:20
To: [EMAIL PROTECTED]
Subject: Re: internal linking between separate page-sequences


Hi Michael,
You have to put as 'generate_id' and not 'generated_id'. I tried with it and
it works fine.

Regds,
Meena.
- Original Message -
From: "Smethurst, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:07 PM
Subject: internal linking between separate page-sequences


> i'm currently trying to output a PDF using a style sheet with a single
> master page and a number of page-sequences (i'm using numerous page
> sequences because i want to display different information in the page
footer
> depending upon the section). i also want to include a toc on the first
> page-sequence set which will link to the relevant page-sequence. however
> when i try to convert this it complains that "The id 'generated_id'
already
> exists in this document". Its fine if i want to link within a
page-sequence
> but seems to get confused with links between page-sequences. Included is a
> simplified version of the fop input file.
> any help much appreciated...
>
>
> 
> http://www.w3.org/1999/XSL/Format";>
> 
> 
> 
> 
> 
> 
>  master-name="A4">
> 
> Something
> 
> 
> 
> Link: Key
> Questions
> 
> 
> 
> 
> 
> Something else
> 
> 
> Destination: Key Questions
> 
> 
> 
>
> the message i get is:
>
> C:\Java\Fop-0.20.1>java -cp
> build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
> xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo
> ..\Working\Out\Out
> .xml -pdf ..\Working\Pdf\Out.pdf
> FOP 0.20.1
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
>  [1]
>  [2ERROR: The id "generated_id" already exists in this document
>
>
> Michael Smethurst
> Web Developer
> Sweet and Maxwell Group
>
>



Re: internal linking between separate page-sequences

2002-01-07 Thread Meena
Hi Michael,
You have to put as 'generate_id' and not 'generated_id'. I tried with it and
it works fine.

Regds,
Meena.
- Original Message -
From: "Smethurst, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:07 PM
Subject: internal linking between separate page-sequences


> i'm currently trying to output a PDF using a style sheet with a single
> master page and a number of page-sequences (i'm using numerous page
> sequences because i want to display different information in the page
footer
> depending upon the section). i also want to include a toc on the first
> page-sequence set which will link to the relevant page-sequence. however
> when i try to convert this it complains that "The id 'generated_id'
already
> exists in this document". Its fine if i want to link within a
page-sequence
> but seems to get confused with links between page-sequences. Included is a
> simplified version of the fop input file.
> any help much appreciated...
>
>
> 
> http://www.w3.org/1999/XSL/Format";>
> 
> 
> 
> 
> 
> 
>  master-name="A4">
> 
> Something
> 
> 
> 
> Link: Key
> Questions
> 
> 
> 
> 
> 
> Something else
> 
> 
> Destination: Key Questions
> 
> 
> 
>
> the message i get is:
>
> C:\Java\Fop-0.20.1>java -cp
> build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
> xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo
> ..\Working\Out\Out
> .xml -pdf ..\Working\Pdf\Out.pdf
> FOP 0.20.1
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
>  [1]
>  [2ERROR: The id "generated_id" already exists in this document
>
>
> Michael Smethurst
> Web Developer
> Sweet and Maxwell Group
>
>

---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its 
Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.



internal linking between separate page-sequences

2002-01-07 Thread Smethurst, Michael
i'm currently trying to output a PDF using a style sheet with a single
master page and a number of page-sequences (i'm using numerous page
sequences because i want to display different information in the page footer
depending upon the section). i also want to include a toc on the first
page-sequence set which will link to the relevant page-sequence. however
when i try to convert this it complains that "The id 'generated_id' already
exists in this document". Its fine if i want to link within a page-sequence
but seems to get confused with links between page-sequences. Included is a
simplified version of the fop input file.
any help much appreciated...



http://www.w3.org/1999/XSL/Format";>








Something



Link: Key
Questions





Something else


Destination: Key Questions




the message i get is:

C:\Java\Fop-0.20.1>java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo
..\Working\Out\Out
.xml -pdf ..\Working\Pdf\Out.pdf
FOP 0.20.1
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
 [1]
 [2ERROR: The id "generated_id" already exists in this document


Michael Smethurst
Web Developer
Sweet and Maxwell Group