xsl-list
[Top] [All Lists]

Re: [xsl] Filterting an OO document

2007-04-18 12:21:40
On Wed, 18 Apr 2007 21:13:38 +0200
Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote:

Michael B Allen wrote:
Indeed. That helps. However, whenever an HTML tag is emitted the entire
block of xmlns definitions are coped into the output tag. Why is that
and how do I stop it?

  

Why? I'd be guessing. I leave that to others to answer ;)

But to get rid of them is easy. Just use the 'exclude-result-prefixes' 
int he xsl:stylesheet declaration and give it a space-separated list of 
prefixes you don't want. However, when you use a namespace that is 
required in your output, this declaration won't stop it from appearing, 
because otherwise the result document would not be what you intend it to be.

Note that the appearance of extra namespaces don't change the XML nor 
the way it will be handled by applications for further processing.

Ok, it's working now. I'm just generating HTML so I don't think I need
to worry about namespaces in the output.

Thanks,
Mike

-- 
Michael B Allen
PHP Active Directory Kerberos SSO
http://www.ioplex.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>