How to use both "xsl" and "fo" namespaces together in nXML
"jdputsch2" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
Howdy,
I've got nXML configured such that if I edit a document "foo.xsl", the "XSLT" schema is used.
If I enter "<xsl:" and hit C-return, then I get the expect completion prompts/action from nXML.
Likewise if I edit a document "foo.fo", then the "FO" (for XSL-FO) schema is used.
If I enter "<fo:" and hit C-return, then I get the expected completion prompts/action from nXML.
The problem I'm having is I'd like to be able to develop XSLT stylesheets that transform XML to XML-FO and therefore would be using the XSLT schema in nXML. When I do this I cannot figure out how to configure the relaxNG schemas such that I get a schema that lets me have BOT "<xsl:" and "<fo:" namespaces get functional completion working.
The smallest sample document I can show to illustrate what I mean is this one:
=====
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="2.0">
<xsl:template match="/">
<fo:root font-family="Times" font-size="8pt">
<fo: <====== C-return HERE
</fo:root>
</xsl:template>
</xsl:stylesheet>
=====
For the above document <xsl: elements are completed and prompted for. If I hit C-return at the location indicated I get a 'no completion for "fo:"' message.
How can I configure the relaxNG schemas allowing me to get BOTH namespace completing simultaneously in one file?
I am evaluating EditX for just this reason, but I find it much less productive than Emacs/nXML (except for the whole completion problem).
Any help will be greatly appreciated.
Jeff.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/emacs-nxml-mode/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/