XML – XSLT output to HTML

In my XSLT file, I have the following content:

>

This is an error because it violates the XML rules.

What I really want is to assign to Get the value from the XML file of the’value’ parameter. What should I do? Thank you

It’s completely unnecessary to use xsl:element; I don’t know why so many people made this suggestion .This will work:





…but it’s better to use attribute value templates:

In my XSLT file, I It has the following content:

>

This is an error because it violates the XML rules.

What I really want is to get the value from the XML file assigned to the’value’ parameter in the HTML output. What should I do? Thank you

There is no need to use xsl:element; I don’t know why so many people put forward this suggestion. This will work:



< br />

…but it’s better to use attribute value templates:

< input type="button" value="{name}"/>

Leave a Comment

Your email address will not be published.