Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Name Collision - I believe

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
US
New to XML/XSD/XSL stuff...

I am working with an XML file provided to me to create an XSL; and it appears that he may have an XML design issue. Is ttl a name collision? How would I be able to reference ttl in an XSL file? tia,

Code:
	<cart_footer>

		<merch_subtotal>Merchandice Subtotal </merch_subtotal>
		<ttl>659.99</ttl>

		<ship_hdlng>Shipping and Handling</ship_hdlng>
		<ttl>15.00</ttl>

		<sales_tx>Sales Tax</sales_tx>
		<ttl>15.00</ttl>

		<total>Total</total>
		<ttl>714.99</ttl>
	</cart_footer>


Steve Medvid
IT Consultant & Web Master

Chester County, PA Residents
Please Show Your Support...
 
> Is ttl a name collision?
There is no name collision issue for the document on its own.

>How would I be able to reference ttl in an XSL file?
The absolute path to them (indexed with their position) is:
[tt] /cart_footer/ttl[/tt]
Relative paths can be anything depending on the starting point. (If you have problem referring to them, maybe checking tt-elle or tt-one? Can't see it clear on the screen.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top