Subject: [xsl] Applying external XML From: Rob Belics <rob_belics@xxxxxxxxxxx> Date: Tue, 02 Feb 2010 12:29:14 -0600 |
I'm trying to import xml data from other files on a remote server and apply templates to that data. Everything in my "restaurant.xsl" works and I've retrieved "menu.xml" which contains links (item-uri) to other xml files (item.xml) that contain more info about each item for sale on the menu (tuna and roast beef). However, I'm having problems trying to import the item.xml data. I tried <xsl:apply-templates select="document()" /> in between the 'for-each' with various combinations of xpath for the document() but that hasn't gotten results I need. restaurant.xsl: <xsl:template match="menu"> <menu> <xsl:for-each select="item-uri"> <!-- What goes here? Should I be using 'for-each'? --> </xsl:for-each> </menu> </xsl:template> menu.xml: <menu> <item-uri>tuna.xml</item-uri> <item-uri>roast-beef.xml</item-uri> </menu> item.xml: <order> <size> <name>Tuna</name> <price>5.00</price> </size> </order>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] COCOMO project cost metri, Dimitre Novatchev | Thread | Re: [xsl] Applying external XML, Israel Viente |
Re: [xsl] RE: XML View in IE, missi, Christopher R. Maden | Date | Re: [xsl] Applying external XML, Israel Viente |
Month |