|
-
Jul 8th, 2004, 02:40 PM
#1
Thread Starter
Frenzied Member
XSLT write [resolved]
I am such an XML XSL noob. I am trying to write out & nbsp; (no space between the & and n, but the board keeps making it a real blank space) when an element named value is empty. I am doing it like this,
PHP Code:
<xsl:when test="string-length(value)=0">
</xsl:when>
but I get an error saying "Reference to undefined entity 'nbsp'"
Last edited by blindlizard; Jul 8th, 2004 at 02:48 PM.
-
Jul 8th, 2004, 02:46 PM
#2
Thread Starter
Frenzied Member
PHP Code:
I found the answer, you have to use   insted of in XSLT
-
Sep 14th, 2004, 02:46 AM
#3
What's the difference between XSL and XSLT??? 
Woof
-
Sep 14th, 2004, 03:23 AM
#4
Fanatic Member
The W3C XSL (Extensible Stylesheet Language) standard consists of two actual standards.
1) XSLT (the T means "transformation"), with which you can transform the structure of an XML file in some other XML file (or just ASCII).
2) XSL-FO (the FO means "formatting objects"), which is a page description language. The Apache FOP project is an open source project with which you can convert a FO-document into PDF (and other formats). FO unfortunately never really took off (at least I hardly know any implementations, except FOP).
So, when you mean the XSL transformations, it's better to refer to XSLT, instead of XSL (the entire standard).
-
Sep 14th, 2004, 04:31 AM
#5
So...when I add an XSLT file to my web project, I am infact adding an XSL file???
Woka
-
Sep 14th, 2004, 10:37 AM
#6
Fanatic Member
An XSLT-file usually has the extension .xsl, so I guess it is so.
BTW, what do you mean with "Adding XSLT to your web project"? Include one in an XML file, so the content of it will be shown as HTML?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|