Auto-completion for <xsl:> and <fo:>

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Furious
Posts: 4
Joined: Mon Jan 05, 2009 11:08 pm

Auto-completion for <xsl:> and <fo:>

Post by Furious »

Hi,

I am using the new Oxygen10 and have a strange Problem.

I use XSLT .xsl and XSL-FO .fo files and i can not get full auto-completion!
That means, if i have a .xsl file, i have only auto-completion for tags, which start with <xsl:...>, but there is nothing with <fo:...>!!

And when i create a .fo file with direct output to .pdf there is no auto-completion for any tags with <xsl:....>.

My question is: how can i use auto-completion for <fo:...> and <xsl:...> tags in the same file?
Maybe i declared the namespace wrong??

Namespace in .fo file
---------------
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-------------------
Namespace in .xsl file
---------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
Furious
Posts: 4
Joined: Mon Jan 05, 2009 11:08 pm

Re: Auto-completion for <xsl:> and <fo:>

Post by Furious »

After searching and searching :)
http://www.oxygenxml.com/forum/topic297 ... completion

If u ask me, this could automaticly be done, when u declare xmlns:xsl="http://www.w3.org/1999/XSL/Transform" and
xmlns:fo="http://www.w3.org/1999/XSL/Format"
"namespace" in a .xsl file. It is obvious that u want to use <fo:>.

edit: btw, how do i turn auto-completion for <xsl:..> tags in .fo files?
It is only <fo:> shown.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Auto-completion for <xsl:> and <fo:>

Post by sorin_ristache »

Hello,
Furious wrote:If u ask me, this could automaticly be done, when u declare xmlns:xsl="http://www.w3.org/1999/XSL/Transform" and
xmlns:fo="http://www.w3.org/1999/XSL/Format"
"namespace" in a .xsl file. It is obvious that u want to use <fo:>.
Just set the content completion in XSLT stylesheets to XSLT + XSL-FO elements instead of XSLT + XHTML elements which is the default. You have to select the radio button Formatting objects.

We will consider detecting automatically the namespace declarations in the XSLT file. The editor must detect also other cases: a namespace prefix (for example a prefix for the FO namespace "http://www.w3.org/1999/XSL/Format") can be declared on other elements than the root element of an XSLT stylesheet.
Furious wrote:how do i turn auto-completion for <xsl:..> tags in .fo files?
It is only <fo:> shown.
XSLT tags are not available in the editor for XSL-FO files. If a file contains both xsl: tags and fo: tags then it is an XSLT stylesheet and in this case you should use the editor for XSLT stylesheets where the content completion can be set to offer both types of tags.


Regards,
Sorin
Post Reply