angiras 01-30-2003, 02:17 PM <xsl:template match="description">
<meta name="description" content="{<xsl:value-of select="."/>}"/>
</xsl:template>
does not work , how can I do it ?
thank you
brothercake 01-30-2003, 02:31 PM You don't need the value-of if you're using {} - I think you can just go
<meta name="description" content="{.}"/>
If that doesn't fix it - consider the context of description - does it exist in the context of your template call?
angiras 01-30-2003, 03:36 PM I have tried
<xsl:for-each select="metas">
<title>
<xsl:value-of select="title"/>
</title>
<meta name="description" content="{description}"/>
<meta name="keywords" content="{keywords}"/>
</xsl:for-each>
but difficult to know if it works , the source of the page only shows xml
and the xml file of course
<metas>
<title>protection de dossier par web.config</title>
<keywords>
web.config,
protection,
protection web.config,
authentification,
authentification web.config,
authorization,
autorisation,
web.config authorization,
web.config autorisation
</keywords>
<description>protection de dossier par web.config mode Form, plateforme ASP NET</description>
</metas>
brothercake 01-30-2003, 03:59 PM I'm confused by what you're asking ...
but difficult to know if it works , the source of the page only shows xml
What do you have - an XML page, and XSL stylesheet? If you have them linked together, and your output method is correct, then you should see visual XHTML ....
Maybe you could let us see your whole stylesheet
angiras 01-30-2003, 04:49 PM I d'ont undestsand too
now all works ! the page look like I want, it works for Mozilla, Netscape, IE, not for Opera (no transformation... maybe version 10 :) ! )
it looks absolutly like a normal HTML page BUT !!!! :-(( if I look the source of tje page into the browser I only se ma xml file and not the transformation, is it right ??
if you want to have a look here is the code
http://aspalliance.com/aylar/ViewPasteCode.aspx?PasteCodeID=339
thank you so much !
brothercake 01-30-2003, 05:05 PM Yeah that's right - if you do client-side transformation using an xsl-stylesheet call in the XML doc, then the XML doc is what you'll see in the source code.
But if you do it server-side, you'll see the output XHTML.
Only IE6 and Mozilla properly support client-side XML; personally I've had no luck gettingc client-side transformation to work in mozilla - it just doesn't work for me. I've probably made some trivial mistake ... or possible my local Apache server is generating the wrong mime types.
But either way - if you can do the transformation server-side that's better IMO, because then all browsers can see the output, not just IE and gecko.
angiras 01-30-2003, 05:42 PM ok ! I was afraid !
yes of course I can transform it with asp net easily , but I find so exciting to be free from any other langage, and I'm falling in love with XML
I don't understand your problem with Mozilla or Netscape , because it works the same as IE (last version of course)
and have you any idea of what will get the motors like google , ect... for tilte keywords.... when the page source look only like xml ?
another personal question ? have you tried your brother cake menu working with xml file as dataSource ? I have an example of such a menu and it is very practicle
brothercake 01-30-2003, 06:36 PM yes of course I can transform it with asp net easily , but I find so exciting to be free from any other langage, and I'm falling in love with XML
Fair enough, but the native-code required is like 4 lines or something ... I wouldn't worry about that ... You still have platform independence.
I don't understand your problem with Mozilla or Netscape , because it works the same as IE (last version of course)
Neither do I - it's probably something really obvious I'm missing. I'll probably start a thread about it one of these days, but to be perfectly honest, I don't really care; I have basically no interest in client-side transformation at the moment.
and have you any idea of what will get the motors like google , ect... for tilte keywords.... when the page source look only like xml ?
No idea; but my guess is that the spider will index your actual output, not the XML.
another personal question ? have you tried your brother cake menu working with xml file as dataSource ? I have an example of such a menu and it is very practicle
Funny you should say that .... I have, and it's gonna be available with v3.8 - XML data / DTD for validation and XSL to transform it into javascript ... check my site at the end of this weekend :D
angiras 01-30-2003, 08:02 PM Funny you should say that .... I have, and it's gonna be available with v3.8 - XML data / DTD for validation and XSL to transform it into javascript ... check my site at the end of this weekend
super ! I'll not miss it , I am longing to see it, your menu was allready gread ! the only thing I was distrurbed with were compacted datas into javascript
thank you again and see you soon :-)
|
|