binarysins
New member
- Joined
- Oct 1, 2005
- Messages
- 2
- Programming Experience
- Beginner
I have a typed dataset that I have converted to XML with the schema, and I am trying to run a transform on it to convert portions to HTML. Basically, it's eventually going to be one row from the main table in the dataset and then any childrows from a couple of other tables. Right now I'm just playing around teaching myself the ropes. So far I think I've done the easy part - convert the dataset to HTML and load the XSLT (I even learned about memory streams in the process).
What is making me loopy is this:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl
utput method="html"/>
<xsl:template match="/*">
<head></head>
<body>Hi!</body>
</xsl:template>
</xsl:stylesheet>
This will return "Hi!" in the resulting HTML document. Change that to anything else, even elements I know should be there, and I get nothing.
The dataset is named VCSDS and I guess what I really need to know is what is the root? How do I format the template matches if there were, say, a tables in the dataset named "production", "movement" and "designs"? I'm having a hell of a time with this...if I change the template match to "VCSDS" I get nothing..."//designs" I get nothing. I know it's all context related, it's just I'm getting really frustrated...
Returns "Hi!" in the resulting HTML document. SO, what I really need answered is: if the dataset is named VCSDS and there are child elements named "designs" and "movement", what do I need to match to get those nodes back. Basically, what is the best way to structure this XSLT file?
What is making me loopy is this:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl
<xsl:template match="/*">
<head></head>
<body>Hi!</body>
</xsl:template>
</xsl:stylesheet>
This will return "Hi!" in the resulting HTML document. Change that to anything else, even elements I know should be there, and I get nothing.
The dataset is named VCSDS and I guess what I really need to know is what is the root? How do I format the template matches if there were, say, a tables in the dataset named "production", "movement" and "designs"? I'm having a hell of a time with this...if I change the template match to "VCSDS" I get nothing..."//designs" I get nothing. I know it's all context related, it's just I'm getting really frustrated...
Returns "Hi!" in the resulting HTML document. SO, what I really need answered is: if the dataset is named VCSDS and there are child elements named "designs" and "movement", what do I need to match to get those nodes back. Basically, what is the best way to structure this XSLT file?