Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 98893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:17:00+00:00 2026-05-11T00:17:00+00:00

I want to create the following element: <exercises xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mySchema.xsd"> If I use something

  • 0

I want to create the following element:

<exercises xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mySchema.xsd"> 

If I use something like this:

<xsl:element name="excercises"> <xsl:attribute name="xmlns:xsi" namespace="http://www.w3.org/2001/XMLSchema-instance"/> 

Then it creates soemthing like this:

<excercises xp_0:xsi="" xmlns:xp_0="http://www.w3.org/2001/XMLSchema-instance"> 

Which doesn’t look like what I want…

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:17:01+00:00Added an answer on May 11, 2026 at 12:17 am

    Try the following instead:

    <?xml version='1.0' encoding='utf-8'?> <xsl:stylesheet version='1.0'      xmlns:xsl='http://www.w3.org/1999/XSL/Transform'      xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>      <xsl:output method='xml' indent='yes'/>      <xsl:template match='@* | node()'>         <xsl:apply-templates select='xml'></xsl:apply-templates>     </xsl:template>      <xsl:template match='xml'>         <xsl:element name='exercises'>             <xsl:attribute name='xsi:noNamespaceSchemaLocation'>mySchema.xsd</xsl:attribute>             some value         </xsl:element>     </xsl:template> </xsl:stylesheet> 

    The key concern is to declare the xsi namespace in the declaration.

    I’ve just made up the template match on just to test.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this XML schema: <xs:schema attributeFormDefault=unqualified elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element name=Log> <xs:complexType> <xs:sequence minOccurs=0
I have a scheme that looks like <?xml version=1.0 ?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element name=RequestResponseBase
I want to create URL re-write rules for following URL in htaccess. http://example.com/vedios/category/fun/ ->
I want to create a rule to target the a element in the following:
I want to create the following T-SQL statement: SELECT SUM (sa.Amount) as 'SumAmount', SUM(sa.Cost)
I want to create a view from the following two tables: Entry: entry_id entry_date
I want to create a C++ class with the following type: It can be
I want to create a calendar with the following features in picture I want
I want to create a strongly typed multidimensional array or collection containing the following
I want to create a new Rally user with the following C# code DynamicJsonObject

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.