|
Subject: [xsl] Re: namespace issues From: "Shawn O. McKenzie" <smckenzie@xxxxxxxxxxx> Date: Mon, 31 Mar 2003 16:39:12 -0800 |
However for me (Linux and libxslt via xsltproc) there is only
<Keyword>
it comes out unprefixed? The only reason I could see for your code not producing the attributes if you have set xml:space somewhere so that you are generating a (white) text node child of the mshelp:Keyword element. You can not add attribute nodes once you have added a child.
<?xml version="1.0"?> <sample> <foo name="one"/> <foo name="two"/> <foo name="three"/> <foo name="four"/> </sample>
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foo="http://borland.com/bogus"> <xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html>
<xsl:for-each select="/sample/foo">
<xsl:element name="foo:whatever">
<xsl:value-of select="@name"/>
</xsl:element>
</xsl:for-each>
</html>
</xsl:template>
</xsl:stylesheet><html> <whatever>one</whatever><whatever>two</whatever><whatever>three</whatever><whatever>four</whatever> </html>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Creating a binary file, G. Ken Holman | Thread | |
| Re: [xsl] Creating a binary file, G. Ken Holman | Date | [xsl] Re: Re: generate full xpath n, Dimitre Novatchev |
| Month |