I need your help

2004-10-14 Thread KS.Bhaskar








Hi Everybody,



 What is the equivalent of chart element of XSLT
in XSL-FO. ?





Thanks in advance.



Regards,

Bhaskar







DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 




RE: Base font and russian

2004-10-14 Thread Cédric Augustin
 Chris is right. The base14 fonts (Helvetica, Times and Courier, not
 Symbol and ZapfDingbats) are defined in ISO-Latin1 format (if 
 I remember
 correctly). You won't get around using an embedded 
 Unicode-TrueType font.
 

Thank you for your answer. I use the Thryomanes 1.2 font
(http://www.io.com/~hmiller/lang/) and it works fine but I got trouble with
encryption as said in bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21303

Is there anybody who did a patch to correct the code of the version 0.20.5
to avoid embed font to be destroyed by encryption ?
If no, is it easy for a basic java developper to do the back port from the
dev branch to the maintain branch code ? If yes, I could perhaps ask my boss
to give me few hours to do it... perhaps.
If no, I will try the iText post process.

Cedric.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Johannes Franz
Hi,
yeah this is exactly what i needed. But could you please help me with the 
following problem?
I would like to write to write every childnote to a new file. If there are 4 
Childnodes doc/foo
he should write every childnote to one file: foo1.html foo2.html foo3.html 
foo4.html. Could someone give me example how to realize this?

xsl:template match=/doc/foo
   redirect:write select=@file
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
?

- Original Message - 
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 24, 2004 2:06 PM
Subject: Re: Question concerning Xalan.


The list info is here: http://xml.apache.org/mail.html#xalan-j-users
You might want to tell them to put that link somewhere on their website.
What you're looking for is the Redirect extension of Xalan-J:
http://xml.apache.org/xalan-j/extensionslib.html#redirect
On 24.09.2004 11:06:06 Johannes Franz wrote:
Hi there,
i don't know where to ask questions concerning Xalan, i didn't find a 
mailing
list at http://xml.apache.org/xalan-j/.
Perhaps you can help me:

I have a really big xml-file from which i would like to create many 
little
html files. So is this possible to use a big xml-file and a stylesheet in
order to create a new html file everytime the Tag html occurs?

Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question concerning Xalan.

2004-10-14 Thread Jeremias Maerki
Something like that maybe?

xsl:template match=/doc/foo
redirect:write select='foo'  position()  '.html'
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template

On 14.10.2004 17:18:25 Johannes Franz wrote:
 Hi,
 
 yeah this is exactly what i needed. But could you please help me with the 
 following problem?
 I would like to write to write every childnote to a new file. If there are 4 
 Childnodes doc/foo
 he should write every childnote to one file: foo1.html foo2.html foo3.html 
 foo4.html. Could someone give me example how to realize this?
 
 xsl:template match=/doc/foo
 redirect:write select=@file
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Clay Leeds
On Oct 14, 2004, at 10:18 AM, Johannes Franz wrote:
Sorry but i am really a newbie:
When i try your example i get the following error message:
 xsl:template match=/doc/foo
   redirect:write select='foo' position() '.html'
I think that should be:
   redirect:write select='foo' + position() + '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
java -cp xalan-2.4.1.jar;xerces-1.2.3.jar 
org.apache.xalan.xslt.Process -IN Redirect.xml -XSL Redirect.xsl -OUT 
Redirect.html -HTML
[Fatal Error] Redirect.xsl:20:44: The reference to entity position 
must end with the ';' delimiter.

Redirect.xsl; Line #20; Column #44; XSLT Error 
(javax.xml.transform.TransformerConfigurationException): 
javax.xml.transform.TransformerException: 
org.xml.sax.SAXParseException: The reference to entity position must 
end with the ';' delimiter.

- Original Message - From: Jeremias Maerki 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 6:00 PM
Subject: Re: Question concerning Xalan.


Something like that maybe?
xsl:template match=/doc/foo
   redirect:write select='foo'  position()  '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
On 14.10.2004 17:18:25 Johannes Franz wrote:
Hi,
yeah this is exactly what i needed. But could you please help me 
with the
following problem?
I would like to write to write every childnote to a new file. If 
there are 4
Childnodes doc/foo
he should write every childnote to one file: foo1.html foo2.html 
foo3.html
foo4.html. Could someone give me example how to realize this?

xsl:template match=/doc/foo
redirect:write select=@file
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template

Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Web Maestro Clay
--
Clay Leeds - [EMAIL PROTECTED]
Webmaster/Developer - Medata, Inc. - http://www.medata.com/
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question concerning Xalan.

2004-10-14 Thread Johannes Franz
Perhaps a good page with examples of the xslt functions like posiotion could 
help me.

- Original Message - 
From: Johannes Franz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 7:18 PM
Subject: Re: Question concerning Xalan.


Sorry but i am really a newbie:
When i try your example i get the following error message:
 xsl:template match=/doc/foo
   redirect:write select='foo' position() '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
java -cp xalan-2.4.1.jar;xerces-1.2.3.jar 
org.apache.xalan.xslt.Process -IN Redirect.xml -XSL Redirect.xsl -OUT 
Redirect.html -HTML
[Fatal Error] Redirect.xsl:20:44: The reference to entity position must 
end with the ';' delimiter.

Redirect.xsl; Line #20; Column #44; XSLT Error 
(javax.xml.transform.TransformerConfigurationException): 
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: 
The reference to entity position must end with the ';' delimiter.

- Original Message - 
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 6:00 PM
Subject: Re: Question concerning Xalan.


Something like that maybe?
xsl:template match=/doc/foo
   redirect:write select='foo'  position()  '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
On 14.10.2004 17:18:25 Johannes Franz wrote:
Hi,
yeah this is exactly what i needed. But could you please help me with 
the
following problem?
I would like to write to write every childnote to a new file. If there 
are 4
Childnodes doc/foo
he should write every childnote to one file: foo1.html foo2.html 
foo3.html
foo4.html. Could someone give me example how to realize this?

xsl:template match=/doc/foo
redirect:write select=@file
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template

Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Question concerning Xalan.

2004-10-14 Thread Andreas L. Delmelle

Hi,

Try:

 redirect:write select=concat('foo',position(),'.html')

...

Dunno for sure, but could even be that it needs the curly braces for an AVT,
like so:

 redirect:write select={concat('foo'...)}


One thing's for sure: ampersands definitely can't be used for string
concatenation in XSLT.


Cheers,

Andreas

 -Original Message-
 From: Johannes Franz [mailto:[EMAIL PROTECTED]
 Sent: donderdag 14 oktober 2004 19:18
 To: [EMAIL PROTECTED]
 Subject: Re: Question concerning Xalan.


 Sorry but i am really a newbie:
 When i try your example i get the following error message:


   xsl:template match=/doc/foo
 redirect:write select='foo' position() '.html'
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template

 java -cp xalan-2.4.1.jar;xerces-1.2.3.jar
 org.apache.xalan.xslt.Process -IN
 Redirect.xml -XSL Redirect.xsl -OUT Redirect.html -HTML
 [Fatal Error] Redirect.xsl:20:44: The reference to entity position must
 end with the ';' delimiter.

 Redirect.xsl; Line #20; Column #44; XSLT Error
 (javax.xml.transform.TransformerConfigurationException):
 javax.xml.transform.TransformerException:
 org.xml.sax.SAXParseException: The
 reference to entity position must end with the ';' delimiter.


 - Original Message -
 From: Jeremias Maerki [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 14, 2004 6:00 PM
 Subject: Re: Question concerning Xalan.


  Something like that maybe?
 
  xsl:template match=/doc/foo
 redirect:write select='foo'  position()  '.html'
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template
 
  On 14.10.2004 17:18:25 Johannes Franz wrote:
  Hi,
 
  yeah this is exactly what i needed. But could you please help
 me with the
  following problem?
  I would like to write to write every childnote to a new file. If there
  are 4
  Childnodes doc/foo
  he should write every childnote to one file: foo1.html foo2.html
  foo3.html
  foo4.html. Could someone give me example how to realize this?
 
  xsl:template match=/doc/foo
  redirect:write select=@file
foo-out
  xsl:apply-templates/
/foo-out
  /redirect:write
/xsl:template
 
 
  Jeremias Maerki
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Johannes Franz
Hi Clay,
when i try your way i don't get error messages. But only one file is created 
with the name NaN.
- Original Message - 
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 7:34 PM
Subject: Re: Question concerning Xalan.


On Oct 14, 2004, at 10:18 AM, Johannes Franz wrote:
Sorry but i am really a newbie:
When i try your example i get the following error message:
 xsl:template match=/doc/foo
   redirect:write select='foo' position() '.html'
I think that should be:
   redirect:write select='foo' + position() + '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
java -cp xalan-2.4.1.jar;xerces-1.2.3.jar 
org.apache.xalan.xslt.Process -IN Redirect.xml -XSL Redirect.xsl -OUT 
Redirect.html -HTML
[Fatal Error] Redirect.xsl:20:44: The reference to entity position must 
end with the ';' delimiter.

Redirect.xsl; Line #20; Column #44; XSLT Error 
(javax.xml.transform.TransformerConfigurationException): 
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: 
The reference to entity position must end with the ';' delimiter.

- Original Message - From: Jeremias Maerki 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 6:00 PM
Subject: Re: Question concerning Xalan.


Something like that maybe?
xsl:template match=/doc/foo
   redirect:write select='foo'  position()  '.html'
 foo-out
   xsl:apply-templates/
 /foo-out
   /redirect:write
 /xsl:template
On 14.10.2004 17:18:25 Johannes Franz wrote:
Hi,
yeah this is exactly what i needed. But could you please help me with 
the
following problem?
I would like to write to write every childnote to a new file. If there 
are 4
Childnodes doc/foo
he should write every childnote to one file: foo1.html foo2.html 
foo3.html
foo4.html. Could someone give me example how to realize this?

xsl:template match=/doc/foo
redirect:write select=@file
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template

Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Web Maestro Clay
--
Clay Leeds - [EMAIL PROTECTED]
Webmaster/Developer - Medata, Inc. - http://www.medata.com/
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Question concerning Xalan.

2004-10-14 Thread Andreas L. Delmelle

Yep, that would be because '+' is only meant for numeric addition. Since two
of the operands are not numbers, you get NaN (IIC, short for Not a
Number...)

Cheers,

Andreas

 -Original Message-
 From: Johannes Franz [mailto:[EMAIL PROTECTED]
 Sent: donderdag 14 oktober 2004 19:42
 To: [EMAIL PROTECTED]
 Subject: Re: Question concerning Xalan.


 Hi Clay,
 when i try your way i don't get error messages. But only one file
 is created
 with the name NaN.
 - Original Message -
 From: Clay Leeds [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 14, 2004 7:34 PM
 Subject: Re: Question concerning Xalan.


  On Oct 14, 2004, at 10:18 AM, Johannes Franz wrote:
  Sorry but i am really a newbie:
  When i try your example i get the following error message:
 
   xsl:template match=/doc/foo
 redirect:write select='foo' position() '.html'
 
  I think that should be:
 
 redirect:write select='foo' + position() + '.html'
 
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template
 
  java -cp xalan-2.4.1.jar;xerces-1.2.3.jar
  org.apache.xalan.xslt.Process -IN Redirect.xml -XSL Redirect.xsl -OUT
  Redirect.html -HTML
  [Fatal Error] Redirect.xsl:20:44: The reference to entity
 position must
  end with the ';' delimiter.
 
  Redirect.xsl; Line #20; Column #44; XSLT Error
  (javax.xml.transform.TransformerConfigurationException):
  javax.xml.transform.TransformerException:
 org.xml.sax.SAXParseException:
  The reference to entity position must end with the ';' delimiter.
 
 
  - Original Message - From: Jeremias Maerki
  [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, October 14, 2004 6:00 PM
  Subject: Re: Question concerning Xalan.
 
 
  Something like that maybe?
 
  xsl:template match=/doc/foo
 redirect:write select='foo'  position()  '.html'
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template
 
  On 14.10.2004 17:18:25 Johannes Franz wrote:
  Hi,
 
  yeah this is exactly what i needed. But could you please
 help me with
  the
  following problem?
  I would like to write to write every childnote to a new
 file. If there
  are 4
  Childnodes doc/foo
  he should write every childnote to one file: foo1.html foo2.html
  foo3.html
  foo4.html. Could someone give me example how to realize this?
 
  xsl:template match=/doc/foo
  redirect:write select=@file
foo-out
  xsl:apply-templates/
/foo-out
  /redirect:write
/xsl:template
 
 
  Jeremias Maerki
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  Web Maestro Clay
  --
  Clay Leeds - [EMAIL PROTECTED]
  Webmaster/Developer - Medata, Inc. - http://www.medata.com/
  PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Johannes Franz
Thanks.
Your version provided the right way. Do you know a page with examples for 
the xslt functions? So that i don't have to strain this list all the time. 
:)

One last problem still remains. The position seems to be multiplicated with 
two. I mean the name of the files is foo2.html foo4.html and so on. Thats 
not very terrible, but perhaps there is a way to devide position by 2. :)

- Original Message - 
From: Andreas L. Delmelle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 7:40 PM
Subject: RE: Question concerning Xalan.


Hi,
Try:
redirect:write select=concat('foo',position(),'.html')
...
Dunno for sure, but could even be that it needs the curly braces for an 
AVT,
like so:

redirect:write select={concat('foo'...)}
One thing's for sure: ampersands definitely can't be used for string
concatenation in XSLT.
Cheers,
Andreas
-Original Message-
From: Johannes Franz [mailto:[EMAIL PROTECTED]
Sent: donderdag 14 oktober 2004 19:18
To: [EMAIL PROTECTED]
Subject: Re: Question concerning Xalan.
Sorry but i am really a newbie:
When i try your example i get the following error message:
  xsl:template match=/doc/foo
redirect:write select='foo' position() '.html'
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template
java -cp xalan-2.4.1.jar;xerces-1.2.3.jar
org.apache.xalan.xslt.Process -IN
Redirect.xml -XSL Redirect.xsl -OUT Redirect.html -HTML
[Fatal Error] Redirect.xsl:20:44: The reference to entity position must
end with the ';' delimiter.
Redirect.xsl; Line #20; Column #44; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
org.xml.sax.SAXParseException: The
reference to entity position must end with the ';' delimiter.
- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 6:00 PM
Subject: Re: Question concerning Xalan.
 Something like that maybe?

 xsl:template match=/doc/foo
redirect:write select='foo'  position()  '.html'
  foo-out
xsl:apply-templates/
  /foo-out
/redirect:write
  /xsl:template

 On 14.10.2004 17:18:25 Johannes Franz wrote:
 Hi,

 yeah this is exactly what i needed. But could you please help
me with the
 following problem?
 I would like to write to write every childnote to a new file. If there
 are 4
 Childnodes doc/foo
 he should write every childnote to one file: foo1.html foo2.html
 foo3.html
 foo4.html. Could someone give me example how to realize this?

 xsl:template match=/doc/foo
 redirect:write select=@file
   foo-out
 xsl:apply-templates/
   /foo-out
 /redirect:write
   /xsl:template


 Jeremias Maerki


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Question concerning Xalan.

2004-10-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Johannes Franz [mailto:[EMAIL PROTECTED]

 Thanks.
 Your version provided the right way. Do you know a page with examples for
 the xslt functions? So that i don't have to strain this list all
 the time.
 :)


Check: http://www.dpawson.co.uk/xsl/sect2/sect21.html

Examples organised by theme.  Lots and lots of them... :)

 One last problem still remains. The position seems to be
 multiplicated with two.
 I mean the name of the files is foo2.html foo4.html and so on. Thats
 not very terrible, but perhaps there is a way to devide position by 2. :)


Sure, if you really know for sure it's always going to be a multiple of 2,
try:

concat('foo',position() div 2,'.html')

But with that result, I can't help but wonder what the XML structure looks
like (as well as your XSL template one level up, where it's applied to the
'/doc/foo' nodes)... Any reason why the processed node's position in the
node-set is always double of what you would expect?


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Jeremias Maerki
Sorry for the trouble. I was mixing languages. Oh, why do we have so may
of them in IT? :-(

On 14.10.2004 19:18:08 Johannes Franz wrote:
 redirect:write select='foo' position() '.html'


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question concerning Xalan.

2004-10-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
  -Original Message-
  From: Johannes Franz [mailto:[EMAIL PROTECTED]
snip /
  One last problem still remains. The position seems to be
  multiplicated with two.
  I mean the name of the files is foo2.html foo4.html and so on. Thats
  not very terrible, but perhaps there is a way to devide
  position by 2. :)
 
 ... Any reason why the processed node's position in the
 node-set is always double of what you would expect?


Come to think of it: are you maybe using

xsl:apply-templates select=node() /

?

This would also make position take into account possible text nodes in
between the '/doc/foo' elements.

In that case, better use:
xsl:apply-templates select=* /

Or, a maybe even a little more efficient:
xsl:apply-templates select=/doc/foo

Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question concerning Xalan.

2004-10-14 Thread Johannes Franz
Hi,
in my example file i was using xsl:template match=/doc/foo.
In my real file i am using xsl:for-each 
select=tcg-te:Protocolbody/tcg-te:Test_report_list/tcg-te:Test_report and 
the position is not multiplicated with two. Don't know where the problem 
was, but now i doesn't occur.

Thanks for the really good help,
Johannes.
- Original Message - 
From: Andreas L. Delmelle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 8:05 PM
Subject: RE: Question concerning Xalan.


-Original Message-
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
 -Original Message-
 From: Johannes Franz [mailto:[EMAIL PROTECTED]
snip /
 One last problem still remains. The position seems to be
 multiplicated with two.
 I mean the name of the files is foo2.html foo4.html and so on. Thats
 not very terrible, but perhaps there is a way to devide
 position by 2. :)

... Any reason why the processed node's position in the
node-set is always double of what you would expect?
Come to think of it: are you maybe using
xsl:apply-templates select=node() /
?
This would also make position take into account possible text nodes in
between the '/doc/foo' elements.
In that case, better use:
xsl:apply-templates select=* /
Or, a maybe even a little more efficient:
xsl:apply-templates select=/doc/foo
Cheers,
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]