473,466 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Processing XSD Schema File

2 New Member
In an earlier post that I am not able, for some reason, post a reply to, Martin Honnen responded to a Porthos question about processing XSDs using XSL.
I was able to get it to work as described. However, the following command is confusing me.

<xsl:template match="xsd:element">

Is there any other variation on this statement I can use? For example, I want to display a series of two elements and two corresponding parent attributes in a two column table from the XSD. But this above statement restricts me to just finding elements so far as I can tell. I've Googled this statement and can't find any other explanation for it.

Here's the original post.

=====================


Porthos wrote:
[color=blue]
> One of the virtues of using schemas is that they are XML documents
> themselves. I have several schema files (one imports the next, which
> imports the next, and so on) that describe/enforce the rules for XML
> instance documents that I create.
>
> I want to read and process these schema files using an XSL(T) document
> to produce a user friendly/more readable version of these rules. I can
> take care of the formatting, but how do I access the tags in the schema
> documents from my XSL(T) file to get the information in the first
> place?[/color]

That is not different from any XSLT task (well XSLT processing an XML
file with namespaces) e.g.:

Expand|Select|Wrap|Line Numbers
  1. <xsl:stylesheet
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. version="1.0">
  5.  
  6. <xsl:template match="xsd:element">
  7. ...
  8. </xsl:template>
  9. </xsl:stylesheet>
  10.  
  11.  
--

Martin Honnen
http://JavaScript.FAQTs.com/


It's likely you've seen this already Don, but I did find this link quite fetching. Care to give it a closer look!

http://www.stylusstudio.com/schema_aware.html#
Jun 22 '07 #1
2 1800
Dököll
2,364 Recognized Expert Top Contributor
Expand|Select|Wrap|Line Numbers
  1. <xsl:stylesheet
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. version="1.0">
  5.  
  6. <xsl:template match="xsd:element">
  7. ...
  8. </xsl:template>
  9. </xsl:stylesheet>
  10.  
  11.  
--

Martin Honnen
http://JavaScript.FAQTs.com/


It's likely you've seen this already Don, but I did find this link quite fetching. Care to give it a closer look!

http://www.stylusstudio.com/schema_aware.html#
Hopefully you are still looking for this, Don...I'll attempt to send you a PM if no news in a few days.

Dököll
Jun 24 '07 #2
Don Giroux
2 New Member
Thanks! I'm trying to make sense of it. I guess you're saying I could use StyleStudio to test with. I'll give it a try.
Jul 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: wooks | last post by:
<?xml version='1.0'?> <userlogin xmlns="urn:faster:userlogin" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <login>mick</login> <password>brown</password> </userlogin> Above is my...
0
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
1
by: Porthos | last post by:
One of the virtues of using schemas is that they are XML documents themselves. I have several schema files (one imports the next, which imports the next, and so on) that describe/enforce the rules...
0
by: Aaron P Frenger | last post by:
Hello All, I have a very large XML file that I would like to split up into a few smaller files, but still use only one schema. I am using Xerces C++ libraries. My idea is to have one schema...
1
by: Szaki | last post by:
I use a BulkLoad to import file.xml to my base MS Server 2000. To import this xml file I need schema file. Mayby you know how to do this file mechanicy f.g. mayby somebody have some script in .net...
6
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
4
by: Sindarian | last post by:
This just seems like the most basic thing, but I can't find a simple description of this process anywhere and in here, everone is talking about going the other way :( I had .NET create an XML...
1
by: ankit | last post by:
There are various packages availaible for XML processing using python. So which to choose and when. I summarized some of the features, advantages and disadvantages of some packages int the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.