Reghu
October 11th, 2001, 11:01 AM
Hi,
I'm facing a small problem with xsl. I want to apply a xsl on a Ado Generated Xml file. I'm getting some strange errors. My Xsl looks like this:
// I removed the "" for correct display of xml code in discussion board.
?xml version='1.0'?
xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xsl:template match="/"
xsl:for-each select="/xml/rs:data/z:row[ARTID_NUM < 4 ]"
xsl:value-of select="ARTID_REFERENCE"/
/xsl:for-each
/xsl:template
/xsl:stylesheet
My xml file contains information about Articles from the database. I generated this xml using Ado Recordset's. Now as i cannot pass sql queries to open an xml file, i will have to use this (i suppose).
My problem is when try this xsl with TransformNode method of DOMDocument, it give me an error saying that the xml file is not good.
Thanks in advance
Initiative is to success what a lighted match is to a candle...
I'm facing a small problem with xsl. I want to apply a xsl on a Ado Generated Xml file. I'm getting some strange errors. My Xsl looks like this:
// I removed the "" for correct display of xml code in discussion board.
?xml version='1.0'?
xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xsl:template match="/"
xsl:for-each select="/xml/rs:data/z:row[ARTID_NUM < 4 ]"
xsl:value-of select="ARTID_REFERENCE"/
/xsl:for-each
/xsl:template
/xsl:stylesheet
My xml file contains information about Articles from the database. I generated this xml using Ado Recordset's. Now as i cannot pass sql queries to open an xml file, i will have to use this (i suppose).
My problem is when try this xsl with TransformNode method of DOMDocument, it give me an error saying that the xml file is not good.
Thanks in advance
Initiative is to success what a lighted match is to a candle...