Keyword xsl:preserve-space may not be used here.

Keyword xsl:preserve-space may not be used here.

Post by peter mine » Thu, 15 Nov 2001 01:35:27



i am desperate, problem is so simple but .....
this xsl:xsl:preserve-space tag - why it is not fitting anywhere!  i got
"Keyword xsl:preserve-space may not be used here. " from IE
I want to print one attribute with the stylesheet and the attribute has
space in front of it in the xml.
It is printed but without the space.
So, how to print this space, i've done similiar things before but this
preserve-space maked me mad. Anyone remeber where should be placed?
help you A LOT!

<?xml version = "1.0"?>
<!-- This a stylesheet generated by Seeburger XSL Editor -->
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/TR/WD-xsl">

<xsl:preserve-space elements="*"/>
<xsl:template match = "/">
<xsl:apply-templates />
</xsl:template>

<xsl:template match = "EMPLOYEES">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match = "Employee">

</xsl:template>

</xsl:stylesheet>

 
 
 

Keyword xsl:preserve-space may not be used here.

Post by Julian F. Reschk » Thu, 15 Nov 2001 02:20:56


You aren't using XSLT. See the FAQ on http://www.netcrucible.com.



> i am desperate, problem is so simple but .....
> this xsl:xsl:preserve-space tag - why it is not fitting anywhere!  i got
> "Keyword xsl:preserve-space may not be used here. " from IE
> I want to print one attribute with the stylesheet and the attribute has
> space in front of it in the xml.
> It is printed but without the space.
> So, how to print this space, i've done similiar things before but this
> preserve-space maked me mad. Anyone remeber where should be placed?
> help you A LOT!

> <?xml version = "1.0"?>
> <!-- This a stylesheet generated by Seeburger XSL Editor -->
> <xsl:stylesheet xmlns:xsl = "http://www.w3.org/TR/WD-xsl">

> <xsl:preserve-space elements="*"/>
> <xsl:template match = "/">
> <xsl:apply-templates />
> </xsl:template>

> <xsl:template match = "EMPLOYEES">
> <html>
> <body>
> <xsl:apply-templates />
> </body>
> </html>
> </xsl:template>
> <xsl:template match = "Employee">

> </xsl:template>

> </xsl:stylesheet>


 
 
 

1. Error : Keyword xsl:sort may not be used here

I am getting this error in IE5.5 whenever I try to run the XML file
which is linked to a xsl file for stylesheet info.

This is the code in the xsl file that i am using. it works very well
without the xsl:sort line.

<xsl:for-each select="Import/Row">
<xsl:sort select="createdOn" order="ascending"/>   <tr>
  <td><xsl:value-of select="ID" /></td>   <td><xsl:value-of
select="name" /></td>   <td><xsl:value-of select="createdOn" /></td>
</tr>
</xsl:for-each>

The XML data is like this...

<Import>
<Row>
  <ID>10006</ID>
  <name>Untitled</name>
  <createdOn>2000-12-19T15:18:00</createdOn>
  <sessionID>0</sessionID>
  <producerID>411</producerID>
</Row>
.... and so on

What could be the problem? I have tried adding data-type attribute to
the xsl:sort tag too.

Vinay

P.S.: posted it on Iexplorer.ie5.programming.xml too, but no answers.
so posting here.

--

Sent via Deja.com
http://www.deja.com/

2. Pretty basic question

3. Keyword xsl:copy-of may not be used here.

4. zoom tech support

5. Keyword xsl:sort may not be used here.

6. profile

7. Keyword xsl:param may not be used here.

8. FS: MegaCHIP 2000

9. Keyword xsl:sort may not be used here ???

10. Keyword xsl:number may not be used here

11. Keyword xsl:copy-of may not be used here.

12. Keyword xsl:key may not be used here.

13. Source: msxml2.dll Description: Keyword xsl:key may not be used h ere.