Ok, so I have product.xml and product.xsl
In product.xml they say that I have two bits of data
<productInfo productID="Product1">
<title>Product One</title>
</productInfo>
<productInfo productID="Product2">
<title>Product Two</title>
</productInfo>
In my product.xsl, can I only display one data set depending on the productID parameter?
So, if product.xml was loading as product.xml? productID = Product1 , how can I show only Product1 data?
I tried to get the productID value from the url but this does not work.
<xsl:param name="productID" />
<xsl:value-of select="$productIDParam"/>
Am I trying to do this simply using XML and XSLT?
source
share