Jump to content

hibou57

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by hibou57

  1. Hi all,I'm a newbie with xml/xslt, so forgive me if my question is foolish.I have wrote this code as an xslt file : <?xml version="1.0" encoding="ISO-8859-1" ?><xsl:transform version = "1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/test"> <html> <xsl:value-of select="current-dateTime()"/><br/> </html> </xsl:template></xsl:transform> I have wrote with it, an xml document with link to the xslt style-sheet.I open the source with a web-browser (firefox), but it fail to evaluate this expression. It tells something like « Error while loading a style-sheet file : invalid XSLT/XPath function ».So, as it work fine for some other (a very few number of) functions (position, last, ...), I still insite and try again inserting « fn: », so using <xsl:value-of select="fn:current-dateTime()"/>But the result is very similare to the preceding. I.e. it tells something like « Error while loading a style-sheet file : (null) »What about it ? What is the reason of this failure to evaluate some expressions ?I have check the cours at w3school, but it doesn't help me for this stuff. No more answers elsewhere.Thanks for all
  2. hibou57

    predicat

    Thanks for this answer Boen,I've already tryed a way like this one. It work, of course. But the questions were about a most proper and explicit way of doing that. WXell, as you said, it seems that there is no explicit way to do this, and I did not found any on the web. So xslt lack logical consistencies. I will do with the state of it.Thanks for allP.S. I'm sorry for having asked this at a bad location, I will take more care the next time.
  3. hibou57

    predicat

    hi all,using xslt (for exemple), one may check that an « id » attribut exist, using [@id]. But in my opinion, it lakes logical consistency , while there is no (in the state of my knowlegde) a predicat for testing the non-existence of a particular attribut, for exemple.Do someone know about it ?Is there a way to bypass this feature lacking ? (with very light coding)Best regards and thanks
×
×
  • Create New...