Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...

AspDotNetStorefront
DotFeed

Just a blank xmlpackage to hold HTML

Thanks man! That seems to work, but I just want to bring back a bulleted list.

Ideally, I would like to bring back that list from a table, but right now, I don't mind having it there statically. How would I just bring back a bulleted list? Everything in storefront has a bunch of stuff. I basically need a blank slate (XMLPackage) to enter some HTML in.

Cheers,

~D
asked Oct 9, 2013 in MultiStore by donato (870 points)

1 Answer

0 votes
 
Best answer

Here you go :-
 

<?xml version="1.0" encoding="UTF-8"?>
<package version="2.1" displayname="Empty xmlpackage" debug="false" includeentityhelper="false" allowengine="true">
   <PackageTransform>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" version="1.0" exclude-result-prefixes="aspdnsf">
         <xsl:output method="html" omit-xml-declaration="yes" />
         <xsl:template match="/">
            <ul>
               <li>This is a simple xmlpackage</li>
               <li>that just has this bulleted list</li>
               <li>and nothing else</li>
            </ul>
         </xsl:template>
      </xsl:stylesheet>
   </PackageTransform>
</package>
answered Oct 9, 2013 by BFG 9000 (1,050 points)
selected Oct 10, 2013 by donato
Thank you, but, I am still only seeing this on the page:

<p><img src="images/plus-icon.jpg"> spend $399 or more and receive an additional 10% off </p><br><p><img src="images/plus-icon.jpg"> get 72 month financing with $999 or more using your Levin Card </p><br><p><img src="images/plus-icon.jpg"> see store associate for details </p>

and this is what is displayed with the bulleted list:

<ul> <li>This is a simple xmlpackage</li> <li>that just has this bulleted list</li> <li>and nothing else</li> </ul>

The HTML is not parsing.
Ahhh..

Now I see your problem.
Call the xmlpackage like this instead :-

<xsl:value-of select="aspdnsf:XmlPackage('yourpackage.xml.config')" disable-output-escaping="yes"/>
Thank you so much! Now, a related question that was part of my original question:

How can I place a dataobject, like a DataGrid inside this blank XMLPackage?

Thanks again!

~D
...