Re: Using variables to select nodes by attribute for an XSLT template
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Never mind, I found the problem...the variable $selcategory wasn't
being set correctly because the root node wasn't being matched
properly. The XSLT should be:
<root SELCAT='1'>
<skills>
<skill id='1' CAT='1'>English</skill>
<skill id='2' CAT='1'>French</skill>
<skill id='3' CAT='2'>Latin</skill>
</skills>
</root>
<!-- following processes ids 1,2,3 -->
<xsl:template match="/root">
<xsl:variable name="selcategory" select="@SELCAT"/>
<xsl:apply-templates select="//skills/skill[@CAT = $selcategory]">
</xsl:apply-templates>
.
Relevant Pages
- Re: XML to RTF parsing
... > I want to see this in the RTF-document like a set of tables. ... XSLT is one of those skills IMHO that has a ... you can take those parsed tokens and use a RTF writer ... steps back and focus on XSLT, you'll have a clean elegant solution + you'll ... (microsoft.public.dotnet.framework.adonet) - Re: [XSLT] Performance issue
... issue with xslt. ... just selecting direct children of the root node of each file). ... My problem is that my catalog file has more than 100,000 elements. ... Without such an extension the XSLT spec more or less force the processors to hold your documents in memory as they need to guarantee that you get the same doument back if you call documenttwice on the same URI, even if it has changed on the server during the process. ... (comp.text.xml) - Re: Using Custom XSLT in Message Construction Shape
... There are limitiations in Matts technique, ... XSLT i.e the root node and 2 nodes, ... If your XSLT is self contained, ... Create a map - specify the input and output schemas ... (microsoft.public.biztalk.general) - XML to CSV
... xslt. ... the root node has a subtree but not the ... Any advice will be greatly appreciated. ... Prev by Date: ... (comp.text.xml) - Re: Sharepoint Admin Skills
... What is the going Salary for these skills? ... XML ... XSLT ... CAML ... (microsoft.public.sharepoint.portalserver) |
|